Templates / Create SEO-optimised content from Google Sheets keywords with DataForSEO and Ollama

Create SEO-optimised content from Google Sheets keywords with DataForSEO and Ollama

Ready for 3.0

by Shivang · 38 views · created 2026-04-12 · Content Creation, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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”.

  1. Fetch Rows from your Google Sheet (Google Sheets): uses Google Sheets
  2. Filter: keeps only the items that match a condition
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Fetch SERP Results + AI Mode Answers (HTTP Request): calls api.dataforseo.com (POST)
  5. Error Handling (If): checks a condition and branches into true / false
  6. Compile SERP Data into one Output for Prompt (Code): runs custom JavaScript code
  7. Update row in sheet (Google Sheets): update
  8. Compose SEO-optimised Content (AI Agent): runs an AI agent, with model: Ollama Chat Model; memory: MongoDB Chat Memory
  9. Clean output (Code): runs custom JavaScript code
  10. Update Row with HTML Output (Google Sheets): update

Services it uses

MongoDB Chat MemoryOllama Chat ModelGoogle Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

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…

Excerpt from Shivang's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.