Automation library ยท Lead generation

Generate verified B2B leads with Google Search and OpenRouter

Started by a clock, and works across Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 29 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 2Model 9Logic 13Service 5

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

  1. 1โฐ Schedule Trigger (Every 4 Hours)Schedule triggerStarts it
  2. 2โ–ถ๏ธ Manual TriggerManual triggerStarts it
  3. 3๐Ÿง  OpenRouter Chat Model (FREE)Lm Chat Open AiModel
  4. 4๐Ÿ’พ Window Buffer MemoryMemory Buffer WindowModel
  5. 5๐Ÿ” Tool: Find Emails (Hunter)Tool Http RequestModel
  6. 6๐ŸŒ Tool: Scrape Website (Firecrawl)Tool Http RequestModel
  7. 7โœ… Tool: Verify Email (Snov)Tool Http RequestModel
  8. 8โœ… Tool: Verify Email (Backup - Free)Tool Http RequestModel
  9. 9๐Ÿ“ง Tool: Extract Emails (Regex)Tool CodeModel
  10. 10๐Ÿ‘ค Tool: Find Person Email (Hunter)Tool Http RequestModel
  11. 11โš ๏ธ Error HandlerCodeLogic
  12. 12โš™๏ธ Config Center (Countries & Categories)CodeLogic
  13. 13๐Ÿค– AI Agent - LeadHunter MasterAgentModel
  14. 14๐Ÿ”„ API Key Rotation ManagerCodeLogic
  15. 15๐Ÿงน Parse AI Agent OutputCodeLogic
  16. 16๐Ÿ” Google Custom Search APIHttp RequestService
  17. 17โ“ IF Has Valid EmailIfLogic
  18. 18๐ŸŒ Extract Website DomainsCodeLogic
  19. 19๐Ÿ” Check Duplicate EmailGoogle SheetsService
  20. 20๐Ÿ“ฆ Split in Batches (5 at a time)Split In BatchesLogic
  21. 21๐Ÿ” Check Duplicate URLs in SheetGoogle SheetsService
  22. 22โ“ IF Email is UniqueIfLogic
  23. 23โ“ IF Not DuplicateIfLogic
  24. 24๐ŸŽฏ Final Validation & FormattingCodeLogic
  25. 25๐Ÿ” Log Skipped DuplicateCodeLogic
  26. 26๐Ÿ’พ Save to Google Sheets (Leads)Google SheetsService
  27. 27๐Ÿ“ Save URL to HistoryGoogle SheetsService
  28. 28โฑ๏ธ Rate Limit Wait (3s)WaitLogic
  29. 29๐Ÿ“Š Run Statistics LoggerCodeLogic

How it's built

Starts on
A clock
Steps
29, with 3 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, 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. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 29 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 29 steps before you point it at anything that matters.