Generate SEO-optimized blog posts with Google Autocomplete & GPT-4
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs on Google Sheets events (row added). Along the way it connects Google Sheets and OpenAI Chat Model. It also calls serpapi.com and seo-api2.onrender.com over HTTP.
How it runs
Trigger: On Google Sheets events (row added).
- Read Rows (Google Sheets): uses Google Sheets
- Only Reads Empty Status (Code): runs custom JavaScript code
- Use Wait Node for Large Batches (Wait): pauses before continuing
- Broad Words (Code): runs custom JavaScript code
- PAA (SerpAPI) (HTTP Request): calls serpapi.com
- Autocomplete (HTTP Request): calls seo-api2.onrender.com (POST)
- Format PAA (SerpAPI) (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- All of the Information (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 3 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other SerpApi + Google Sheets templates (62) · Other SerpApi + OpenAI templates (50)
HTTP calls to: serpapi.com, seo-api2.onrender.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Generate Blog Post (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Generate Blog Post (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait
From the author
Try It Out! This n8n template helps you create SEO-optimized Blog Posts for your businesses website or for personal use. Whether you're managing a business or helping local restaurants improve their digital presence, this workflow helps you build…