Automation library · Lead generation

Personalized cold email system with Gemini and Telegram

Started by an event in a connected app, and works across Email, Google Sheets and Telegram. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 28 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

28 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 1Model 13Logic 6Service 8

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 Model3Lm Chat Google GeminiModel
  4. 4Simple Memory1Memory Buffer WindowModel
  5. 5Google Gemini Chat Model1Lm Chat Google GeminiModel
  6. 6Filtered Leads UpdateGoogle Sheets ToolService
  7. 7Sent Leads AppendGoogle Sheets ToolService
  8. 8Google Gemini Chat Model2Lm Chat Google GeminiModel
  9. 9Google Gemini Chat Model4Lm Chat Google GeminiModel
  10. 10Google Gemini Chat Model5Lm Chat Google GeminiModel
  11. 11Add Email Draft to Google SheetGoogle Sheets ToolService
  12. 12Date & TimeDate TimeLogic
  13. 13AI AgentAgentModel
  14. 14Structured Output ParserOutput Parser StructuredModel
  15. 15AI Agent1AgentModel
  16. 16AI Agent2AgentModel
  17. 17AI Agent3AgentModel
  18. 18Structured Output Parser1Output Parser StructuredModel
  19. 19Get Lead from Google SheetGoogle SheetsService
  20. 20Merge Data and Agent output forMergeLogic
  21. 21Send message and wait for responseTelegramService
  22. 22Limit Sheets Get FunctionLimitLogic
  23. 23SwitchSwitchLogic
  24. 24Loop Over Items1Split In BatchesLogic
  25. 25Send emailEmail SendService
  26. 26Send message and wait for response1TelegramService
  27. 27Send a text message9TelegramService
  28. 28Wait3WaitLogic

How it's built

Starts on
An event in a connected app
Steps
28, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Email, Google Sheets, Telegram
Model
Gemini
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 Email, Google Sheets and Telegram 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. 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 28 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 28 steps before you point it at anything that matters.