# Generate city-based business leads with Google Maps: n8n workflow

> Started by someone submitting a form, and works across Google Sheets. 20 steps, 3 loops or waits: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/generate-city-based-business-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 city-based business leads with Google Maps

Started by someone submitting a form, and works across Google Sheets. 20 steps, 3 loops or waits: a working afternoon to understand properly.

Medium

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

**20 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**3** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 13 Service 6

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **Set Initial Parameters** Set *Logic*
- 3 **Geocode Target City** Http Request *Service*
- 4 **Generate Dynamic Grid** Set *Logic*
- 5 **Split Locations** Split Out *Logic*
- 6 **Search Page 1** Http Request *Service*
- 7 **Save Page 1** Set *Logic*
- 8 **Wait for Page 2** Wait *Logic*
- 9 **Search Page 2** Http Request *Service*
- 10 **Save Page 2** Set *Logic*
- 11 **Wait for Page 3** Wait *Logic*
- 12 **Search Page 3** Http Request *Service*
- 13 **Merge All Pages** Set *Logic*
- 14 **Split All Results** Split Out *Logic*
- 15 **Collect All Place IDs** Aggregate *Logic*
- 16 **Split Places** Split Out *Logic*
- 17 **Loop Over Places** Split In Batches *Logic*
- 18 **Append row in sheet** Google Sheets *Service*
- 19 **Get Place Details** Http Request *Service*
- 20 **Map Fields** Set *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 20, 3 loops or waits
- **Size:** Medium: a working afternoon
- **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 someone submitting a form.

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?

Plan an afternoon. 20 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 20 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-city-based-business-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.

- [**Extract business email addresses with Serper.dev** 20 steps · Google Sheets](https://millionrounds.com/workflow/extract-business-email-addresses-with-serper-dev)
- [**Generate city business leads with Google Maps** 20 steps · Google Sheets](https://millionrounds.com/workflow/generate-city-business-leads-with-google-maps)
- [**Lead Status-Based Email Automation with Google Sheets** 20 steps · Email, Google Sheets](https://millionrounds.com/workflow/lead-status-based-email-automation-with-google-sheets)
- [**Score and route B2B website leads with Google Sheets and Gmail** 20 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/score-and-route-b2b-website-leads-with-google-sheets-and-gma)
- [**AI-powered cold email outreach with OpenAI and Gmail** 20 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-cold-email-outreach-with-openai-and-gmail)
- [**Auto-respond and classify WhatsApp leads with Ollama AI** 20 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/auto-respond-and-classify-whatsapp-leads-with-ollama-ai)
