Automation library · Lead generation

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.

LargeCalls a model: OpenRouter

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
3Loops or waits
1Service it connects to

The flow

Starts it 2Model 2Logic 14Service 6

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

  1. 1Starts scraper workflowExecute Workflow triggerStarts it
  2. 2OpenRouter Chat ModelLm Chat Open RouterModel
  3. 3Schedule TriggerSchedule triggerStarts it
  4. 4Search Google Maps with queryHttp RequestService
  5. 5AI AgentAgentModel
  6. 6Get row(s) in sheetGoogle SheetsService
  7. 7Scrape URLs from resultsCodeLogic
  8. 8convert string to json objectCodeLogic
  9. 9Loop over queriesSplit In BatchesLogic
  10. 10Filter irrelevant URLsFilterLogic
  11. 11Save DATA to Google Sheet1Google SheetsService
  12. 12Execute scraper for queryExecute WorkflowLogic
  13. 13Remove Duplicate URLsRemove DuplicatesLogic
  14. 14Loop over URLsSplit In BatchesLogic
  15. 15Update row in sheetGoogle SheetsService
  16. 16MergeMergeLogic
  17. 17get records if existGoogle SheetsService
  18. 18Wait between executionsWaitLogic
  19. 19IfIfLogic
  20. 20Aggregate1AggregateLogic
  21. 21use APIFYHttp RequestService
  22. 22Code1CodeLogic
  23. 23AggregateAggregateLogic
  24. 24CodeCodeLogic

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.