Skip to main content

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

Workflow preview

Workflow preview
100%
Create SEO-optimised content from Google Sheets keywords with DataForSEO and Ollama preview
Open on n8n.io

1. Workflow Overview

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

Best for

  • Content Creation automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.memorymongodbchat, @n8n/n8n-nodes-langchain.lmchatollama, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.filter, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Shivang.

Original n8n.io source

1.1 Workflow description

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

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 any other SERP API) to fetch top results, AI Overview, related searches, PAA, etc., and compile them for a prompt.
  3. Feed the SERP Data and SEO Guidelines to an AI Agent with a locally run LLM Model (to save cost) to create the content.
  4. Add the data in the same Google Sheet in the column header 'Output'.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - MongoDB Chat Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryMongoDbChat - memoryMongoDbChat
Config choices
Version 1

Block 3 - Ollama Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOllama - lmChatOllama
Config choices
Version 1

Block 4 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Update row in sheet1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - Fetch Rows from your Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - Filter rows that are already populated

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 12 - Fetch SERP Results + AI Mode Answers

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 13 - Error Handling

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 14 - Compile SERP Data into one Output for Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Compose SEO-optimised Content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 16 - Clean output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Update Row with HTML Output

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

3. Summary Table

Workflow Create SEO-optimised content from Google Sheets keywords with DataForSEO and Ollama
Complexity advanced
Nodes 17
Categories Content Creation, AI RAG
Author Shivang
Published 12 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14999/14999.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create SEO-optimised content from Google Sheets keywords with DataForSEO and Ollama do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, AI RAG use case.