# Detect keyword cannibalization with OpenAI: n8n workflow

> Started by a change in a Google Sheet, and works across Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/detect-keyword-cannibalization-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

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

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-keyword-cannibalization-with-openai)

**22 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 3 Logic 11 Service 7

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

- 1 **OpenAI GPT-4o Model** Lm Chat Open Ai *Model*
- 2 **Parse AI Analysis to Structured JSON** Output Parser Structured *Model*
- 3 **Monitor Keywords Sheet for Changes** Google Sheets trigger *Starts it*
- 4 **Analyze Keyword Cannibalization Risk** Agent *Model*
- 5 **Fetch Client Website URLs** Google Sheets *Service*
- 6 **Fetch Target Keywords from Sheet** Google Sheets *Service*
- 7 **Save Cannibalization Analysis Results** Google Sheets *Service*
- 8 **Route to Client 1** If *Logic*
- 9 **Route to Client 2** If *Logic*
- 10 **Route to Client 3** If *Logic*
- 11 **Route to Client 4** If *Logic*
- 12 **Merge All Client GSC Data** Merge *Logic*
- 13 **Fetch GSC Data (Client 1)** Http Request *Service*
- 14 **Fetch GSC Data (Client 2)** Http Request *Service*
- 15 **Fetch GSC Data (Client 3)** Http Request *Service*
- 16 **Fetch GSC Data (Client 4)** Http Request *Service*
- 17 **Match Keywords from Sheet with GSC Data** Code *Logic*
- 18 **Group GSC Data by Keyword (Client 1)** Code *Logic*
- 19 **Group GSC Data by Keyword (Client 2)** Code *Logic*
- 20 **Group GSC Data by Keyword (Client 3)** Code *Logic*
- 21 **Group GSC Data by Keyword (Client 4)** Code *Logic*
- 22 **Filter Keywords Found in GSC** If *Logic*

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

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-keyword-cannibalization-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Automate customer retention with Stripe** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-customer-retention-with-stripe)
- [**Classify client intake forms with Gemini and Gmail** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/classify-client-intake-forms-with-gemini-and-gmail)
- [**Flexible currency rate uploads for SAP B1 with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/flexible-currency-rate-uploads-for-sap-b1-with-openai)
- [**Gate film and TV music cue rights clearance with Gmail** 22 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/gate-film-and-tv-music-cue-rights-clearance-with-gmail)
- [**LinkedIn carousel - Growth Elite with OpenAI and Google Sheets** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/linkedin-carousel-growth-elite-with-openai-and-google-sheets)
- [**Smart chat assistant with OpenAI and Google Sheets** 22 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/smart-chat-assistant-with-openai-and-google-sheets)
