An AI-powered workflow that automates SEO content production — from keyword to publish-ready first draft in under 5 minutes.
Built with n8n, Claude (Anthropic), and SerpAPI.
You give it a keyword. It:
- Pulls live SERP data — top 10 organic results for your target keyword via SerpAPI
- Analyzes the competitive landscape — Claude reads what's ranking and identifies the gap no one is filling
- Generates a differentiated content brief — title options, H2 structure, key points, CTA strategy, word count target
- Writes a complete first draft — full blog post following the brief, written in a natural B2B voice
- Outputs to Google Docs — draft lands in a new doc, ready for editing
One keyword in, one publish-ready draft out.
[Manual Trigger] → [Set Test Data] → [SerpAPI Search] → [Claude: SERP Analysis + Brief] → [Claude: Draft Generator] → [Google Docs: Create + Write]
| Node | Purpose |
|---|---|
| Set Test Data | Input: keyword, target persona, company context, competitive angle |
| SerpAPI Search | Pulls top 10 organic results (titles, URLs, snippets) |
| SERP Analysis + Brief | Claude analyzes ranking content, identifies gaps, outputs structured brief |
| Draft Generator | Claude writes full draft from brief — SEO-optimized, differentiated, actionable |
| Create Google Doc | Creates new doc with dynamic title |
| Write Draft to Doc | Inserts the draft content into the doc |
Most SEO content workflows start with a blank page. This one starts with competitive intelligence.
The SERP analysis step is the key differentiator — instead of generating generic content about a topic, Claude first understands what's already winning for that keyword and produces something specifically designed to outrank it. The brief enforces strategic discipline before a single word of the draft is written.
- n8n instance (cloud or self-hosted)
- SerpAPI account (free tier: 250 searches/month)
- Anthropic API key
- Google account with Docs access
- Import
seo_content_engine_workflow.jsoninto n8n (⋯ menu → Import from File) - Configure three credentials:
- SerpAPI: Replace
YOUR_SERPAPI_KEYin the SerpAPI Search node URL - Anthropic: Add API key → assign to both Claude nodes
- Google Docs OAuth2: Connect Google account → assign to both Google Docs nodes (enable both Drive and Docs scopes)
- SerpAPI: Replace
- Update the Set Test Data node with your keyword and company context
- Hit "Execute Workflow"
Replace the Manual Trigger + Set Test Data nodes with a Google Sheets Trigger pointing at a spreadsheet with columns: keyword, target_persona, company_context, competitor_angle. Each new row triggers a content run.
Input keyword: identify anonymous website visitors
What the engine produces:
- SERP analysis identifying that most ranking articles are generic listicles comparing tools by feature count
- Differentiated angle focusing on speed-to-action (how fast can a rep act on the signal, not how many visitors you can identify)
- ~2,000 word draft with meta description, structured sections, natural CTAs, and internal link suggestions
The prompts are the engine. Two places to customize:
- SERP Analysis + Brief system prompt — adjust the strategic lens (e.g., focus on technical depth vs. business impact)
- Draft Generator system prompt — adjust voice, tone, banned words, formatting preferences
The workflow is company-agnostic. Change the company_context and competitor_angle fields in Set Test Data to point it at any company.
- Batch processing: Loop through multiple keywords in one run
- Keyword research node: Add a Phase 0 that pulls keyword suggestions from SerpAPI auto-suggest
- Content scoring: Add a third Claude node that grades the draft against the brief
- Alternative outputs: Notion, Airtable, or WordPress instead of Google Docs
- Competitor monitoring: Schedule weekly SERP checks and flag ranking changes
Tarik Watts — GTM strategist and builder. Currently building AI-powered go-to-market systems.