Create SEO-optimised content from Google Sheets keywords with DataForSEO and Ollama
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects MongoDB Chat Memory, Ollama Chat Model and Google Sheets. It also calls api.dataforseo.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Rows from your Google Sheet (Google Sheets): uses Google Sheets
- Filter: keeps only the items that match a condition
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Fetch SERP Results + AI Mode Answers (HTTP Request): calls api.dataforseo.com (POST)
- Error Handling (If): checks a condition and branches into true / false
- Compile SERP Data into one Output for Prompt (Code): runs custom JavaScript code
- Update row in sheet (Google Sheets): update
- Compose SEO-optimised Content (AI Agent): runs an AI agent, with model: Ollama Chat Model; memory: MongoDB Chat Memory
- Clean output (Code): runs custom JavaScript code
- Update Row with HTML Output (Google Sheets): update
Services it uses
Other Dataforseo + Google Sheets templates (32) · Other Google Sheets + Ollama templates (27) · Other MongoDB + Google Sheets templates (6)
HTTP calls to: api.dataforseo.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - MongoDB Chat Memory
@n8n/n8n-nodes-langchain.memoryMongoDbChat - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
This workflow creates content for your primary keywords in a Google Sheet by using SERP data and natural language skills of LLMs to create content at scale. Steps: 1) Fetch Rows from a Google Sheet with keywords in Column 'Keyword' 2) Use DataforSEO API (or…