Automation library · Lead generation

Generate and enrich local business leads with Decodo

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 27 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 2Logic 14Service 10

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

  1. 1Schedule: Daily 10AMSchedule triggerStarts it
  2. 2Search ConfigSetLogic
  3. 3Decodo: Scrape Google MapsDecodoService
  4. 4Parse Leads from MarkdownCodeLogic
  5. 5Is Valid Lead?IfLogic
  6. 6Save Lead to Google SheetsGoogle SheetsService
  7. 7Split In BatchesSplit In BatchesLogic
  8. 8Get Enriched LeadsGoogle SheetsService
  9. 9Has Website?IfLogic
  10. 10Filter by Score ThresholdCodeLogic
  11. 11Decodo: Scrape Business WebsiteDecodoService
  12. 12Mark: No WebsiteSetLogic
  13. 13Qualified Leads Exist?IfLogic
  14. 14Merge Website ContentSetLogic
  15. 15Update Lead (No Website)Google SheetsService
  16. 16Split In Batches1Split In BatchesLogic
  17. 17AI: Score & Enrich LeadOpen AiModel
  18. 18Decodo: Deep Scrape WebsiteDecodoService
  19. 19Parse AI ResponseCodeLogic
  20. 20Merge Lead + ContentSetLogic
  21. 21Update Lead (Enriched)Google SheetsService
  22. 22AI: Write Cold EmailOpen AiModel
  23. 23Parse Email ContentCodeLogic
  24. 24Valid Email Address?IfLogic
  25. 25Gmail: Send Cold EmailGmailService
  26. 26Mark: Invalid EmailGoogle SheetsService
  27. 27Mark as ContactedGoogle SheetsService

How it's built

Starts on
A clock
Steps
27, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for OpenAI. 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 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.