Templates / Build an SEO knowledge graph digital twin with Claude, Postgres, and Slack

Build an SEO knowledge graph digital twin with Claude, Postgres, and Slack

Ready for 3.0

by Oneclick AI Squad ✓ · 18 views · created 2026-09-24 · Market Research, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (11)

PostgresSlack

What it does

Quick overview This workflow crawls a website from its sitemap, extracts on-page content and links, uses Anthropic Claude to identify keywords and entities, stores everything as an SEO knowledge graph in Postgres, then posts crawl health stats to a Slack channel. How it works 1. Triggers manually or on a weekly schedule to start a crawl using the configured seed URL, sitemap URL, page limit, and Slack channel. 2. Fetches sitemap.xml, parses and deduplicates page URLs (optionally same-domain only), and batches them for processing up to the max page count. 3. For each page URL, downloads the HTML and extracts the title, meta description, H1s, body text, and outbound links. 4. Sends the page content to Anthropic Claude to return structured JSON for primary/secondary keywords, named entities, and topic categories. 5. Writes the page node plus keyword, entity, and link relationships into Postgres tables (seopages, seokeywords, seoentities, seopagekeywords, seopageentities, seopagelinks). 6. After all pages are processed, queries Postgres for digital-twin stats (pages, unique keywords, entities, internal links, orphan pages) and posts the summary to Slack. Setup 1. Create a Postgres database and add an n8n Postgres credential, then create the required tables and constraints used by the queries (seopages, seokeywords, seoentities, seopagekeywords, seopageentities, seopagelinks, including the ON CONFLICT keys). 2. Add an HTTP Header Auth credential for the Anthropic API (x-api-key) and ensure the selected model name in the config matches your Anthropic access. 3. Add a Slack credential, set or create the target channel, and update seedUrl, sitemapUrl, maxPages, sameDomainOnly, anthropicModel, and slackChannel in the crawl configuration.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.