Generate SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when someone submits an n8n form (“SEO Content Brief Generator”). Along the way it connects OpenAI Chat Model, Google Docs and Google Sheets. It also calls serpapi.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“SEO Content Brief Generator”).
- Fetch SERP Results (HTTP Request): calls serpapi.com
- Split Organic Search Results (Split Out): splits a list into separate items
- Limit: keeps the first few items
- Fetch Competitor Sites (HTTP Request): calls an HTTP API
- Extract Page Headings (HTML): parses or builds HTML
- Aggregate: combines items into one
- Check SERP Data Sufficiency (If): checks a condition and branches into true / false
- Generate SEO Content Brief (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Brief Model; output parser: Output Parser Schema
- Set Brief Format (Edit Fields (Set)): sets 2 fields: doc_title, brief_markdown
- Create SEO Document in Docs (Google Docs): create
…plus 2 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Google Docs templates (143) · Other Google Sheets + Google Docs templates (122)
HTTP calls to: serpapi.com
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (14)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Limit
n8n-nodes-base.limit - HTML
n8n-nodes-base.html - Aggregate
n8n-nodes-base.aggregate - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - Google Docs
n8n-nodes-base.googleDocs - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick Overview This workflow collects a keyword via an n8n form, pulls the top Google results using SerpApi, scrapes headings from competitor pages, and uses OpenAI to generate a structured SEO content brief, which it saves to Google Docs and logs to Google…