Automation library · Lead generation

Generate scored B2B leads from Google Maps websites

Started by an event in a connected app, and works across Google Sheets. 25 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

25 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Logic 20Service 4

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

  1. 1Run workflowManual triggerStarts it
  2. 2Loop over queriesSplit In BatchesLogic
  3. 3Search Google Maps with queryHttp RequestService
  4. 4Check for Next Page TokenCodeLogic
  5. 5Has Next Page?IfLogic
  6. 6Extract Places DataSetLogic
  7. 7Split Out PlacesSplit OutLogic
  8. 8Filter Operational BusinessesFilterLogic
  9. 9Check if Website ExistsIfLogic
  10. 10Merge Emails with Business DataMergeLogic
  11. 11Fetch Website HTMLHttp RequestService
  12. 12Merge All BusinessesMergeLogic
  13. 13Extract Contact LinksCodeLogic
  14. 14Combine Homepage and Contact HTMLCodeLogic
  15. 15Remove Duplicate BusinessesRemove DuplicatesLogic
  16. 16Filter Contact LinksFilterLogic
  17. 17Extract Emails from HTMLCodeLogic
  18. 18Append to Google SheetsGoogle SheetsService
  19. 19Fetch Contact Page HTMLHttp RequestService
  20. 20Filter Valid EmailsFilterLogic
  21. 21Group by BusinessAggregateLogic
  22. 22Score and Rank EmailsCodeLogic
  23. 23Sort by Email QualitySortLogic
  24. 24Keep Best Email OnlyLimitLogic
  25. 25Remove Duplicate EmailsRemove DuplicatesLogic

How it's built

Starts on
An event in a connected app
Steps
25, with 2 branches, 1 loop 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 an event in a connected app.

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 25 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 25 steps before you point it at anything that matters.