# Local business leads and run AI-powered cold email sequences: n8n workflow

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

Source: https://millionrounds.com/workflow/local-business-leads-and-run-ai-powered-cold-email-sequences (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)

# Local business leads and run AI-powered cold email sequences

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 62 steps, 9 branches, 8 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flocal-business-leads-and-run-ai-powered-cold-email-sequences)

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

**9** Branches: places the flow splits

**8** Loops or waits

**2** Services it connects to

## The flow

Starts it 5 Model 1 Logic 36 Service 18

The steps in the order they run, from what starts it. The first 60 of 62.

- 1 **Trigger: Generate AI Emails** Schedule trigger *Starts it*
- 2 **Trigger: Send Intro Emails** Schedule trigger *Starts it*
- 3 **Trigger: Send Follow Up 1** Schedule trigger *Starts it*
- 4 **Trigger: Send Follow Up 2** Schedule trigger *Starts it*
- 5 **Trigger: Lead Scraping (GMaps)** Schedule trigger *Starts it*
- 6 **Get row(s) in sheet** Google Sheets *Service*
- 7 **Get row(s) in sheet1** Google Sheets *Service*
- 8 **Get row(s) in sheet4** Google Sheets *Service*
- 9 **Get row(s) in sheet5** Google Sheets *Service*
- 10 **Settings** Set *Logic*
- 11 **Check: Intro Mail Empty** If *Logic*
- 12 **Check: Intro Ready & Not Sent** If *Logic*
- 13 **Check: Follow Up 1 Due** If *Logic*
- 14 **Check: Follow Up 2 Due** If *Logic*
- 15 **Get Zip Codes** Google Sheets *Service*
- 16 **Loop: Generate AI Emails** Split In Batches *Logic*
- 17 **Loop: Send Intro Emails** Split In Batches *Logic*
- 18 **Loop: Send Follow Up 1** Split In Batches *Logic*
- 19 **Loop: Send Follow Up 2** Split In Batches *Logic*
- 20 **Zips** Set *Logic*
- 21 **Email Writer** Google Gemini *Model*
- 22 **Send Intro Mail** Gmail *Service*
- 23 **Check Follow Up 1 Date** Code *Logic*
- 24 **Check Follow Up 2 Date** Code *Logic*
- 25 **Filter Zips** Filter *Logic*
- 26 **Update row in sheet** Google Sheets *Service*
- 27 **Generate Follow Up Dates** Code *Logic*
- 28 **Follow Up Mail 1** Gmail *Service*
- 29 **Follow Up Mail 2** Gmail *Service*
- 30 **Split Out** Split Out *Logic*
- 31 **Update Row with all Follow Up Mail Dates** Google Sheets *Service*
- 32 **Update row with follow up status 1** Google Sheets *Service*
- 33 **Update row in sheet3** Google Sheets *Service*
- 34 **Limit: Zips Per Run** Limit *Logic*
- 35 **Map Zip Field** Set *Logic*
- 36 **Get Category** Google Sheets *Service*
- 37 **Merge Zips & Categories** Merge *Logic*
- 38 **Build Zip × Category Matrix** Code *Logic*
- 39 **Set Zip** Set *Logic*
- 40 **Loop Subcats** Split In Batches *Logic*
- 41 **Set Zip1** Set *Logic*
- 42 **GMaps API** Http Request *Service*
- 43 **Check: GMaps Result Empty** If *Logic*
- 44 **Split Places Array** Code *Logic*
- 45 **Scrape URL** Http Request *Service*
- 46 **Extract Emails From Website** Code *Logic*
- 47 **Check: Email Found** If *Logic*
- 48 **Add rows in Google Sheets** Google Sheets *Service*
- 49 **Get Status** Google Sheets *Service*
- 50 **Calc Retry Delay (Add Rows)** Code *Logic*
- 51 **Update Status to Success** Google Sheets *Service*
- 52 **Calc Retry Delay (Get Status)** Code *Logic*
- 53 **Wait: Backoff Before Retry (Add Rows)** Wait *Logic*
- 54 **Calc Retry Delay (Update Status)** Code *Logic*
- 55 **Wait: Backoff Before Retry (Get Status)** Wait *Logic*
- 56 **Check: Retry Limit (Add Rows)** If *Logic*
- 57 **Wait: Backoff Before Retry (Update Status)** Wait *Logic*
- 58 **Check: Retry Limit (Get Status)** If *Logic*
- 59 **Stop and Error1** Stop And Error *Logic*
- 60 **Check: Retry Limit (Sheet Update)** If *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 62, with 9 branches, 8 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Gemini. 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 Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 62 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 62 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%2Flocal-business-leads-and-run-ai-powered-cold-email-sequences)
- **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.

- [**End-to-end B2B real estate lead enrichment & outreach** 58 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/end-to-end-b2b-real-estate-lead-enrichment-and-outreach)
- [**AI sales agent: fully email handling & lead scoring system** 57 steps · calls a model · Gmail, NocoDB](https://millionrounds.com/workflow/ai-sales-agent-fully-email-handling-and-lead-scoring-system)
- [**Smart email outreach sequence – AI-powered & customizable** 56 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/smart-email-outreach-sequence-ai-powered-and-customizable)
- [**Automate business partner outreach with Google Maps and OpenAI** 55 steps · calls a model · Apify, Google Drive](https://millionrounds.com/workflow/automate-business-partner-outreach-with-google-maps-and-open)
- [**Gmail Cold Email Sequence with Google Sheets Tracking** 55 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/gmail-cold-email-sequence-with-google-sheets-tracking)
- [**Run a full lead-to-meeting pipeline with Google Sheets** 52 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/run-a-full-lead-to-meeting-pipeline-with-google-sheets)
