Automation library · Lead generation

Lead generator + email hunter with Gemini and Google Drive

Started by another system calling it, and works across Google Drive and Google Sheets. It hands the judgement calls to Gemini. 21 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 2Model 2Logic 11Service 6

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

  1. 1WebhookWebhookStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3MergeMergeLogic
  4. 4WrappingCodeLogic
  5. 5Extract query from WebhookCodeLogic
  6. 6Basic LLM ChainChain LlmModel
  7. 7AudittingHttp RequestService
  8. 8Limit to oneSetLogic
  9. 9Extract Relevant ResultsCodeLogic
  10. 10FormattingCodeLogic
  11. 11Create New SheetGoogle SheetsService
  12. 12Formatting for ScriptCodeLogic
  13. 13make sheet publicGoogle DriveService
  14. 14Email ScriptHttp RequestService
  15. 15SerpAPI Lead ScraperHttp RequestService
  16. 16Filtering RAW HTMLCodeLogic
  17. 17Extract Business LeadsFunctionLogic
  18. 18Save Leads to CRMGoogle SheetsService
  19. 19Converting to Single JSONCodeLogic
  20. 20Build Sheet linkCodeLogic
  21. 21Respond to WebhookRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
21
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Google Drive 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 another system calling it.

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