# Search & enrich: Smart keyword analysis with Decodo and OpenAI: n8n workflow

> Started by an event in a connected app, and works across n8n data table. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/search-and-enrich-smart-keyword-analysis-with-decodo-and-ope (Millionrounds; every figure on the page links to its filing or article)

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

# Search & enrich: Smart keyword analysis with Decodo and OpenAI

Started by an event in a connected app, and works across n8n data table. It hands the judgement calls to OpenAI. 12 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsearch-and-enrich-smart-keyword-analysis-with-decodo-and-ope)

**12 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 2 Logic 5 Service 4

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

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **OpenAI Chat Model for Keywords and Topics** Lm Chat Open Ai *Model*
- 3 **Set the Input Fields** Set *Logic*
- 4 **Extract Keywords and Topics** Information Extractor *Model*
- 5 **Google Search with Decodo** Decodo *Service*
- 6 **If row exists** Data Table *Service*
- 7 **Return the Organic Search Results** Code *Logic*
- 8 **Create a Binary Response** Function *Logic*
- 9 **If** If *Logic*
- 10 **Loop Over Items** Split In Batches *Logic*
- 11 **Write the Structured Google Search Results to Disk** Read Write File *Service*
- 12 **Insert row on Data Table** Data Table *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 12, with 1 branch, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** n8n data table
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. 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 OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 12 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 12 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%2Fsearch-and-enrich-smart-keyword-analysis-with-decodo-and-ope)
- **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.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Build and enrich B2B company lead lists with CompanyEnrich** 12 steps · n8n data table](https://millionrounds.com/workflow/build-and-enrich-b2b-company-lead-lists-with-companyenrich)
- [**Send personalized B2B cold outreach emails with Gemini** 13 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/send-personalized-b2b-cold-outreach-emails-with-gemini)
- [**Enrich contacts with Wiza and HubSpot** 13 steps · Google Sheets, HubSpot](https://millionrounds.com/workflow/enrich-contacts-with-wiza-and-hubspot)
- [**Generate AI-powered roadmaps for new leads with OpenAI** 10 steps · calls a model · Email, Telegram](https://millionrounds.com/workflow/generate-ai-powered-roadmaps-for-new-leads-with-openai)
- [**Score and triage inbound leads with Groq and Slack** 10 steps · calls a model · Google Sheets, Google Tasks](https://millionrounds.com/workflow/score-and-triage-inbound-leads-with-groq-and-slack)
- [**Create an AI-powered Telegram customer support bot** 15 steps · calls a model · Telegram, n8n data table](https://millionrounds.com/workflow/create-an-ai-powered-telegram-customer-support-bot)
