Automation library · Lead generation

Agentic B2B lead enrichment from Google Search to Google Sheets

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 27 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 1Model 6Logic 14Service 6

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

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Google Gemini Chat Model1Lm Chat Google GeminiModel
  4. 4Google Gemini Chat Model3Lm Chat Google GeminiModel
  5. 5Edit FieldsSetLogic
  6. 6Home Page AnalystChain LlmModel
  7. 7Contact Page Scan AgentChain LlmModel
  8. 8Linked In AgentChain LlmModel
  9. 9Serper SearchHttp RequestService
  10. 10Format outputCodeLogic
  11. 11output combinerCodeLogic
  12. 12Linked in DetailsCodeLogic
  13. 13parse search resultsCodeLogic
  14. 14filter redirecting linksIfLogic
  15. 15MergeMergeLogic
  16. 16Merge1MergeLogic
  17. 17Normalize leadsCodeLogic
  18. 18HTTP Request1Http RequestService
  19. 19Filter Linked In specific linkIfLogic
  20. 20Format for SheetsCodeLogic
  21. 21Loop Over ItemsSplit In BatchesLogic
  22. 22convert scrapable linkCodeLogic
  23. 23Append row in sheetGoogle SheetsService
  24. 24Send a messageGmailService
  25. 25WaitWaitLogic
  26. 26LinkedIN scraperHttp RequestService
  27. 27Fetch HomepageHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
27, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
Gemini

Questions

What does it need to run?

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

Yes. It calls Gemini. 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.