# Scrape Google Maps by area & generate outreach messages: n8n workflow

> Started by someone submitting a form, and works across Postgres. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/scrape-google-maps-by-area-and-generate-outreach-messages (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)

# Scrape Google Maps by area & generate outreach messages

Started by someone submitting a form, and works across Postgres. It hands the judgement calls to Gemini and OpenAI. 27 steps, 4 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscrape-google-maps-by-area-and-generate-outreach-messages)

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

**4** Branches: places the flow splits

**3** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 5 Logic 15 Service 5

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 3 **scrape_as_markdown** Mcp Client Tool *Model*
- 4 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 5 **gpt-5-mini** Lm Chat Open Ai *Model*
- 6 **Extract latitude and logitude from URL** Set *Logic*
- 7 **Create Table** Postgres *Service*
- 8 **Scrape & Summarize** Agent *Model*
- 9 **Message Generator** Chain Llm *Model*
- 10 **Bright Data | Request data** Http Request *Service*
- 11 **Set Fields** Set *Logic*
- 12 **Supabase | Upsert row** Postgres *Service*
- 13 **Count1** Set *Logic*
- 14 **Merge** Merge *Logic*
- 15 **Loop Over Items** Split In Batches *Logic*
- 16 **No Operation, do nothing4** No Op *Logic*
- 17 **Company website exists** If *Logic*
- 18 **Check status of data extraction** Bright Data *Service*
- 19 **Request finished** If *Logic*
- 20 **Download the snapshot content** Bright Data *Service*
- 21 **Reached retry limit** If *Logic*
- 22 **Snapshot finished building** If *Logic*
- 23 **Wait5** Wait *Logic*
- 24 **Organize data** Set *Logic*
- 25 **Wait** Wait *Logic*
- 26 **Count Increment1** Set *Logic*
- 27 **Set Limit** Limit *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 27, with 4 branches, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Postgres
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Postgres account, and a key for Gemini and OpenAI. 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?

Yes. It calls Gemini and 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%2Fscrape-google-maps-by-area-and-generate-outreach-messages)
- **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.

[Postgres](https://millionrounds.com/workflows?service=Postgres#library)

## Workflows like it

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

- [**Enrich seller data with Bright Data and Google Search** 28 steps · Postgres](https://millionrounds.com/workflow/enrich-seller-data-with-bright-data-and-google-search)
- [**Multi-Channel Lead Enrichment & Scoring Pipeline with Clearbit** 29 steps · Asana, Email](https://millionrounds.com/workflow/multi-channel-lead-enrichment-and-scoring-pipeline-with-clea)
- [**Qualify and score real estate leads with WhatsApp and Gemini** 24 steps · calls a model · Postgres, WhatsApp](https://millionrounds.com/workflow/qualify-and-score-real-estate-leads-with-whatsapp-and-gemini)
- [**Capture CTO job leads from LinkedIn with Seamless** 22 steps · Postgres](https://millionrounds.com/workflow/capture-cto-job-leads-from-linkedin-with-seamless)
- [**AI-powered lead generation with Apollo and OpenAI** 21 steps · calls a model · Apify, Postgres](https://millionrounds.com/workflow/ai-powered-lead-generation-with-apollo-and-openai)
- [**Automate event follow-ups with OpenAI and LinkedIn** 20 steps · calls a model · Email, HubSpot](https://millionrounds.com/workflow/automate-event-follow-ups-with-openai-and-linkedin)
