# Personalized cold email system with Gemini and Telegram: n8n workflow

> Started by an event in a connected app, and works across Email, Google Sheets and Telegram.

Source: https://millionrounds.com/workflow/personalized-cold-email-system-with-gemini-and-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# 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.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpersonalized-cold-email-system-with-gemini-and-telegram)

**28 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**2** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 13 Logic 6 Service 8

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

- 1 **When clicking 'Execute workflow'** Manual trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 4 **Simple Memory1** Memory Buffer Window *Model*
- 5 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 6 **Filtered Leads Update** Google Sheets Tool *Service*
- 7 **Sent Leads Append** Google Sheets Tool *Service*
- 8 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 9 **Google Gemini Chat Model4** Lm Chat Google Gemini *Model*
- 10 **Google Gemini Chat Model5** Lm Chat Google Gemini *Model*
- 11 **Add Email Draft to Google Sheet** Google Sheets Tool *Service*
- 12 **Date & Time** Date Time *Logic*
- 13 **AI Agent** Agent *Model*
- 14 **Structured Output Parser** Output Parser Structured *Model*
- 15 **AI Agent1** Agent *Model*
- 16 **AI Agent2** Agent *Model*
- 17 **AI Agent3** Agent *Model*
- 18 **Structured Output Parser1** Output Parser Structured *Model*
- 19 **Get Lead from Google Sheet** Google Sheets *Service*
- 20 **Merge Data and Agent output for** Merge *Logic*
- 21 **Send message and wait for response** Telegram *Service*
- 22 **Limit Sheets Get Function** Limit *Logic*
- 23 **Switch** Switch *Logic*
- 24 **Loop Over Items1** Split In Batches *Logic*
- 25 **Send email** Email Send *Service*
- 26 **Send message and wait for response1** Telegram *Service*
- 27 **Send a text message9** Telegram *Service*
- 28 **Wait3** Wait *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpersonalized-cold-email-system-with-gemini-and-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Automated lead research – from LinkedIn to ready-to-send report** 28 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/automated-lead-research-from-linkedin-to-ready-to-send-repor)
- [**Manage Patreon and Ko-fi leads with Gmail and OpenAI** 28 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-patreon-and-ko-fi-leads-with-gmail-and-openai)
- [**Scrape B2B leads from Apollo, generate Groq AI emails, and send** 28 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/scrape-b2b-leads-from-apollo-generate-groq-ai-emails-and-sen)
- [**Extract & enrich LinkedIn comments to leads** 28 steps · Google Sheets](https://millionrounds.com/workflow/extract-and-enrich-linkedin-comments-to-leads)
- [**AI prospect researcher +ISCP only need company name and domain** 27 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/ai-prospect-researcher-iscp-only-need-company-name-and-domai)
- [**Agentic B2B lead enrichment from Google Search to Google Sheets** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/agentic-b2b-lead-enrichment-from-google-search-to-google-she)
