Automation library · Lead generation

Extract B2B lead emails from Google results with SerpAPI

Started by a clock, and works across Gmail and Telegram. It hands the judgement calls to Claude. 17 steps, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: Claude

17 stepsMedium: a working afternoon
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 5Service 8

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Anthropic Chat ModelLm Chat AnthropicModel
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4Set Your TopicSetLogic
  5. 5AI (Extract Email from webpage)AgentModel
  6. 6SerpApi (Search Google (11-20))Serp ApiService
  7. 7SerpApi (Search Google (top 10))Serp ApiService
  8. 8HTTP (Get Lead Data Using SerpApi)Http RequestService
  9. 9Loop Over ItemsSplit In BatchesLogic
  10. 10Code (Extract Url From SerpAPI 11-20)CodeLogic
  11. 11Code (Extract Url From SerpAPI 0-10)CodeLogic
  12. 12Send a Telegram messageTelegramService
  13. 13Gmail ReportGmailService
  14. 14Rapiwa (Send a WhatsApp message)RapiwaService
  15. 15HTTPS (Scrape URL with Apify)Http RequestService
  16. 16Get last runApifyService
  17. 17Merge (Append All Results)MergeLogic

How it's built

Starts on
A clock
Steps
17, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Gmail, Telegram
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for Claude. 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 Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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