# Generate leads with Google Maps: n8n workflow template

> Started by a clock, and works across Google Sheets. 36 steps, 4 branches, 5 loops or waits: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/generate-leads-with-google-maps (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 leads with Google Maps

Started by a clock, and works across Google Sheets. 36 steps, 4 branches, 5 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-leads-with-google-maps)

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

**4** Branches: places the flow splits

**5** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Logic 27 Service 6

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

- 1 **When clicking "Execute Workflow"** Manual trigger *Starts it*
- 2 **Run workflow every hours** Schedule trigger *Starts it*
- 3 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 4 **Settings** Set *Logic*
- 5 **GS - Get Zip Codes** Google Sheets *Service*
- 6 **Zips** Set *Logic*
- 7 **Filter Zips** Filter *Logic*
- 8 **Set Row Number** Set *Logic*
- 9 **Split Out** Split Out *Logic*
- 10 **Limit** Limit *Logic*
- 11 **Loop Zips** Split In Batches *Logic*
- 12 **GS - Get Subcategory** Google Sheets *Service*
- 13 **Filter Subcategories** Filter *Logic*
- 14 **Subcategory** Set *Logic*
- 15 **Loop Subcats** Split In Batches *Logic*
- 16 **Set Zip** Set *Logic*
- 17 **GMaps API** Http Request *Service*
- 18 **If Empty** If *Logic*
- 19 **Place Array** Code *Logic*
- 20 **Set Place ID** Set *Logic*
- 21 **Remove Duplicates** Remove Duplicates *Logic*
- 22 **Add rows in Google Sheets** Google Sheets *Service*
- 23 **GS - Get Status** Google Sheets *Service*
- 24 **Exponential Backoff** Code *Logic*
- 25 **Update Status to Success** Google Sheets *Service*
- 26 **Exponential Backoff2** Code *Logic*
- 27 **Wait** Wait *Logic*
- 28 **Exponential Backoff1** Code *Logic*
- 29 **Wait2** Wait *Logic*
- 30 **Check Max Retries1** If *Logic*
- 31 **Wait1** Wait *Logic*
- 32 **Check Max Retries2** If *Logic*
- 33 **Stop and Error1** Stop And Error *Logic*
- 34 **Check Max Retries** If *Logic*
- 35 **Stop and Error2** Stop And Error *Logic*
- 36 **Stop and Error** Stop And Error *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 36, with 4 branches, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 36 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 36 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-leads-with-google-maps)
- **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 lead generation, with the same services where possible, closest in size first.

- [**Scrape & analyze Google Ads with Bright Data API** 36 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/scrape-and-analyze-google-ads-with-bright-data-api)
- [**Automate B2B lead generation with Google Places API** 35 steps · Google Sheets, SendGrid](https://millionrounds.com/workflow/automate-b2b-lead-generation-with-google-places-api)
- [**Speed-to-Lead AI Response Engine for WhatsApp, Web Forms** 37 steps · Email, Google Sheets](https://millionrounds.com/workflow/speed-to-lead-ai-response-engine-for-whatsapp-web-forms)
- [**Speed-to-Lead AI Response Engine for WhatsApp, Web Forms, Chat** 37 steps · Email, Google Sheets](https://millionrounds.com/workflow/speed-to-lead-ai-response-engine-for-whatsapp-web-forms-chat)
- [**Manage hotel guest requests and post-stay outreach** 35 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/manage-hotel-guest-requests-and-post-stay-outreach)
- [**Enrich leads from Google Sheets with ScraperCity** 38 steps · Google Sheets](https://millionrounds.com/workflow/enrich-leads-from-google-sheets-with-scrapercity)
