# AI-powered Google Maps business scraper with OpenRouter: n8n workflow

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

Source: https://millionrounds.com/workflow/ai-powered-google-maps-business-scraper-with-openrouter (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)

# AI-powered Google Maps business scraper with OpenRouter

Started by a clock, and works across Google Sheets. It hands the judgement calls to OpenRouter. 24 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-google-maps-business-scraper-with-openrouter)

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

**1** Branch: places the flow splits

**3** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 2 Logic 14 Service 6

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

- 1 **Starts scraper workflow** Execute Workflow trigger *Starts it*
- 2 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 3 **Schedule Trigger** Schedule trigger *Starts it*
- 4 **Search Google Maps with query** Http Request *Service*
- 5 **AI Agent** Agent *Model*
- 6 **Get row(s) in sheet** Google Sheets *Service*
- 7 **Scrape URLs from results** Code *Logic*
- 8 **convert string to json object** Code *Logic*
- 9 **Loop over queries** Split In Batches *Logic*
- 10 **Filter irrelevant URLs** Filter *Logic*
- 11 **Save DATA to Google Sheet1** Google Sheets *Service*
- 12 **Execute scraper for query** Execute Workflow *Logic*
- 13 **Remove Duplicate URLs** Remove Duplicates *Logic*
- 14 **Loop over URLs** Split In Batches *Logic*
- 15 **Update row in sheet** Google Sheets *Service*
- 16 **Merge** Merge *Logic*
- 17 **get records if exist** Google Sheets *Service*
- 18 **Wait between executions** Wait *Logic*
- 19 **If** If *Logic*
- 20 **Aggregate1** Aggregate *Logic*
- 21 **use APIFY** Http Request *Service*
- 22 **Code1** Code *Logic*
- 23 **Aggregate** Aggregate *Logic*
- 24 **Code** Code *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 24, with 1 branch, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets
- **Model:** OpenRouter

## Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 24 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 24 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%2Fai-powered-google-maps-business-scraper-with-openrouter)
- **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.

- [**Automate lead enrichment & personalized outreach with HubSpot** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-lead-enrichment-and-personalized-outreach-with-hubs)
- [**Digitize business cards with Thai OCR** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/digitize-business-cards-with-thai-ocr)
- [**Lead automation with OpenAI and Gmail** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/lead-automation-with-openai-and-gmail)
- [**Qualify real estate leads and answer EMI queries with Telegram** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/qualify-real-estate-leads-and-answer-emi-queries-with-telegr)
- [**Score, route, and reply to inbound leads with OpenAI and Gmail** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/score-route-and-reply-to-inbound-leads-with-openai-and-gmail)
- [**Capture website leads to HubSpot or Google Sheets with Slack** 24 steps · Google Sheets, HubSpot](https://millionrounds.com/workflow/capture-website-leads-to-hubspot-or-google-sheets-with-slack)
