← All writing
5 min read

Automating technical SEO audits with n8n and GPT-4

How I built a hands-off pipeline that crawls a site, checks the technical essentials, and returns an AI-written audit with rewrite suggestions — every week, without anyone pressing a button.

Technical SEO audits are repetitive by nature: fetch the page, check the title, the meta description, the canonical tag, the robots.txt, and flag what's broken. Perfect work for a machine — the judgment calls are where a human (or a good LLM prompt) earns its keep.

So I split the problem: n8n handles everything deterministic — crawling, parsing, validating — and GPT-4 handles everything that needs language: prioritizing findings and writing actionable suggestions.

The pipeline

  • An HTTP node fetches the target page and robots.txt on a weekly schedule
  • Parsing nodes extract title, meta description, canonical, headings and status codes
  • A validation step compares them against a checklist (length, duplicates, missing canonicals)
  • Structured findings are passed to a GPT-4 agent with a strict JSON output contract
  • The agent returns a prioritized audit: severity, finding, suggested fix, sample rewrite

What made it work

The key decision was forcing the LLM into a JSON schema instead of letting it write prose freely. Structured output means the results land in a dashboard (or an inbox) in a consistent format, and the workflow can retry or alert on malformed responses instead of silently publishing garbage.

The second decision was separating crawl from judge. When a check is purely mechanical — a missing canonical, a 404 — the workflow flags it without calling the model at all. GPT-4 only sees the ambiguous cases. That kept token costs low enough to run the whole thing on a free-tier schedule.

Result

Zero manual steps after setup, an audit report that used to take an afternoon delivered every week, and rewrite suggestions that the marketing team could paste directly. The pattern generalizes: let the workflow be the hands and eyes, let the model be the judgment, and put a contract between them.

n8nOpenAIAutomationSEO

Keep reading