Automation library · Data collection

Detect keyword cannibalization with OpenAI

Started by a change in a Google Sheet, and works across Google Sheets. It hands the judgement calls to OpenAI. 22 steps, 5 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 3Logic 11Service 7

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

  1. 1OpenAI GPT-4o ModelLm Chat Open AiModel
  2. 2Parse AI Analysis to Structured JSONOutput Parser StructuredModel
  3. 3Monitor Keywords Sheet for ChangesGoogle Sheets triggerStarts it
  4. 4Analyze Keyword Cannibalization RiskAgentModel
  5. 5Fetch Client Website URLsGoogle SheetsService
  6. 6Fetch Target Keywords from SheetGoogle SheetsService
  7. 7Save Cannibalization Analysis ResultsGoogle SheetsService
  8. 8Route to Client 1IfLogic
  9. 9Route to Client 2IfLogic
  10. 10Route to Client 3IfLogic
  11. 11Route to Client 4IfLogic
  12. 12Merge All Client GSC DataMergeLogic
  13. 13Fetch GSC Data (Client 1)Http RequestService
  14. 14Fetch GSC Data (Client 2)Http RequestService
  15. 15Fetch GSC Data (Client 3)Http RequestService
  16. 16Fetch GSC Data (Client 4)Http RequestService
  17. 17Match Keywords from Sheet with GSC DataCodeLogic
  18. 18Group GSC Data by Keyword (Client 1)CodeLogic
  19. 19Group GSC Data by Keyword (Client 2)CodeLogic
  20. 20Group GSC Data by Keyword (Client 3)CodeLogic
  21. 21Group GSC Data by Keyword (Client 4)CodeLogic
  22. 22Filter Keywords Found in GSCIfLogic

How it's built

Starts on
A change in a Google Sheet
Steps
22, with 5 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a change in a Google Sheet.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

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 22 steps before you point it at anything that matters.