Automation library · Lead generation

Automate B2B lead generation with Google Places API

Started by another system calling it, and works across Google Sheets and SendGrid. 35 steps, 1 branch, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large

35 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
4Loops or waits
2Services it connects to

The flow

Starts it 4Logic 18Service 13

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

  1. 1Daily TriggerSchedule triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3WebhookWebhookStarts it
  4. 4Generate Location Grid (ONE-TIME)CodeLogic
  5. 5Read Grid PointsGoogle SheetsService
  6. 6Get row(s) in sheetGoogle SheetsService
  7. 7Get row(s) in sheet1Google SheetsService
  8. 8Save Grid to Sheet (ONE-TIME)Google SheetsService
  9. 9Code in JavaScriptCodeLogic
  10. 10Filter: Remove Fake EmailsFilterLogic
  11. 11Filter: Remove Fake Emails1FilterLogic
  12. 12Read Grid Points1Google SheetsService
  13. 13Update row in sheet1Google SheetsService
  14. 14Assign Alternating TemplatesCodeLogic
  15. 15Respond to WebhookRespond To WebhookStarts it
  16. 16Filter & Randomize Daily BatchCodeLogic
  17. 17Loop Over Items1Split In BatchesLogic
  18. 18Google Nearby SearchHttp RequestService
  19. 19WaitWaitLogic
  20. 20Parse Nearby ResultsCodeLogic
  21. 21Update row in sheetGoogle SheetsService
  22. 22Get Place Details2Http RequestService
  23. 23Send an emailSend GridService
  24. 24Extract Contact Info2CodeLogic
  25. 25Split Places Array2Split OutLogic
  26. 26Filter: Has Website2FilterLogic
  27. 27Remove Duplicates: EmailsCodeLogic
  28. 28Loop Over ItemsSplit In BatchesLogic
  29. 29Extract Emails2CodeLogic
  30. 30Wait (Rate Limit)2WaitLogic
  31. 31Filter: Has Email2IfLogic
  32. 32Scrape Website2Http RequestService
  33. 33Append Leads (Dedupe by Place ID)1Google SheetsService
  34. 34Prepare Grid UpdateCodeLogic
  35. 35Mark Grid Points as SearchedGoogle SheetsService

How it's built

Starts on
Another system calling it
Steps
35, with 1 branch, 4 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, SendGrid
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Sheets and SendGrid accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

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