Automation library · Content

Create SEO-optimised content from Google Sheets keywords

Started by an event in a connected app, and works across Google Sheets. It puts a local model behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 13 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: a local modelRetrieval

13 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 3Logic 5Service 4

The steps in the order they run, from what starts it.

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2MongoDB Chat MemoryMemory Mongo Db ChatModel
  3. 3Ollama Chat ModelLm Chat OllamaModel
  4. 4Fetch Rows from your Google SheetGoogle SheetsService
  5. 5Compose SEO-optimised ContentAgentModel
  6. 6Filter rows that are already populatedFilterLogic
  7. 7Clean outputCodeLogic
  8. 8Loop Over ItemsSplit In BatchesLogic
  9. 9Update Row with HTML OutputGoogle SheetsService
  10. 10Fetch SERP Results + AI Mode AnswersHttp RequestService
  11. 11Error HandlingIfLogic
  12. 12Compile SERP Data into one Output for PromptCodeLogic
  13. 13Update row in sheet1Google SheetsService

How it's built

Starts on
An event in a connected app
Steps
13, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
a local model
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, and a key for a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls a local model. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 13 steps before you point it at anything that matters.