Skip to content

dayscape/seo-content-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

SEO Content Engine

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.

What It Does

You give it a keyword. It:

  1. Pulls live SERP data — top 10 organic results for your target keyword via SerpAPI
  2. Analyzes the competitive landscape — Claude reads what's ranking and identifies the gap no one is filling
  3. Generates a differentiated content brief — title options, H2 structure, key points, CTA strategy, word count target
  4. Writes a complete first draft — full blog post following the brief, written in a natural B2B voice
  5. Outputs to Google Docs — draft lands in a new doc, ready for editing

One keyword in, one publish-ready draft out.

Architecture

[Manual Trigger] → [Set Test Data] → [SerpAPI Search] → [Claude: SERP Analysis + Brief] → [Claude: Draft Generator] → [Google Docs: Create + Write]

Node Breakdown

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

Why This Approach

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.

Setup

Prerequisites

  • n8n instance (cloud or self-hosted)
  • SerpAPI account (free tier: 250 searches/month)
  • Anthropic API key
  • Google account with Docs access

Installation

  1. Import seo_content_engine_workflow.json into n8n (⋯ menu → Import from File)
  2. Configure three credentials:
    • SerpAPI: Replace YOUR_SERPAPI_KEY in 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)
  3. Update the Set Test Data node with your keyword and company context
  4. Hit "Execute Workflow"

Switching to Automated Mode

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.

Example Output

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

Customization

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.

Extensions

  • 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

Built By

Tarik Watts — GTM strategist and builder. Currently building AI-powered go-to-market systems.

LinkedIn

About

AI-powered workflow that turns a keyword into a publish-ready blog draft in under 5 minutes. Built with n8n, Claude, and SerpAPI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors