# Generate and enrich local business leads with Decodo: n8n workflow

> Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/generate-and-enrich-local-business-leads-with-decodo (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)

# Generate and enrich local business leads with Decodo

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 27 steps, 4 branches, 2 loops or waits: 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%2Fgenerate-and-enrich-local-business-leads-with-decodo)

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

**4** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 14 Service 10

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

- 1 **Schedule: Daily 10AM** Schedule trigger *Starts it*
- 2 **Search Config** Set *Logic*
- 3 **Decodo: Scrape Google Maps** Decodo *Service*
- 4 **Parse Leads from Markdown** Code *Logic*
- 5 **Is Valid Lead?** If *Logic*
- 6 **Save Lead to Google Sheets** Google Sheets *Service*
- 7 **Split In Batches** Split In Batches *Logic*
- 8 **Get Enriched Leads** Google Sheets *Service*
- 9 **Has Website?** If *Logic*
- 10 **Filter by Score Threshold** Code *Logic*
- 11 **Decodo: Scrape Business Website** Decodo *Service*
- 12 **Mark: No Website** Set *Logic*
- 13 **Qualified Leads Exist?** If *Logic*
- 14 **Merge Website Content** Set *Logic*
- 15 **Update Lead (No Website)** Google Sheets *Service*
- 16 **Split In Batches1** Split In Batches *Logic*
- 17 **AI: Score & Enrich Lead** Open Ai *Model*
- 18 **Decodo: Deep Scrape Website** Decodo *Service*
- 19 **Parse AI Response** Code *Logic*
- 20 **Merge Lead + Content** Set *Logic*
- 21 **Update Lead (Enriched)** Google Sheets *Service*
- 22 **AI: Write Cold Email** Open Ai *Model*
- 23 **Parse Email Content** Code *Logic*
- 24 **Valid Email Address?** If *Logic*
- 25 **Gmail: Send Cold Email** Gmail *Service*
- 26 **Mark: Invalid Email** Google Sheets *Service*
- 27 **Mark as Contacted** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 27, with 4 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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 27 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 27 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%2Fgenerate-and-enrich-local-business-leads-with-decodo)
- **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.

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

## Workflows like it

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

- [**AI prospect researcher +ISCP only need company name and domain** 27 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/ai-prospect-researcher-iscp-only-need-company-name-and-domai)
- [**Agentic B2B lead enrichment from Google Search to Google Sheets** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/agentic-b2b-lead-enrichment-from-google-search-to-google-she)
- [**Domain outbound: automate lead extraction, and targeted outreach** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/domain-outbound-automate-lead-extraction-and-targeted-outrea)
- [**Generate and qualify B2B leads from Telegram with Google Maps** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-qualify-b2b-leads-from-telegram-with-google-map)
- [**Send AI-personalized outreach emails from HubSpot** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-ai-personalized-outreach-emails-from-hubspot)
- [**Audit CRM lead data quality with Google Sheets and NeverBounce** 27 steps · Google Sheets](https://millionrounds.com/workflow/audit-crm-lead-data-quality-with-google-sheets-and-neverboun)
