# Automated lead nurturing with Gemini and Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Email, Gmail, Telegram and n8n data table. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/automated-lead-nurturing-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)

# Automated lead nurturing with Gemini and Telegram

Started by an incoming Telegram message, and works across Email, Gmail, Telegram and n8n data table. It hands the judgement calls to Gemini. 42 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-lead-nurturing-with-gemini-and-telegram)

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

**2** Branches: places the flow splits

**1** Loop or waits

**4** Services it connects to

## The flow

Starts it 4 Model 12 Logic 10 Service 16

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

- 1 **Telegram Input - Agent Submits Lead** Telegram trigger *Starts it*
- 2 **Gemini Model - Parser** Lm Chat Google Gemini *Model*
- 3 **JSON Output Parser** Output Parser Structured *Model*
- 4 **Gemini Model - Email Generator** Lm Chat Google Gemini *Model*
- 5 **Email JSON Parser** Output Parser Structured *Model*
- 6 **Daily Reply Check (9 AM)** Schedule trigger *Starts it*
- 7 **Daily Follow-up Check (10 AM)** Schedule trigger *Starts it*
- 8 **Gemini Model - Email Generator1** Lm Chat Google Gemini *Model*
- 9 **Email JSON Parser1** Output Parser Structured *Model*
- 10 **Daily Follow-up Check (10 AM)1** Schedule trigger *Starts it*
- 11 **Gemini Model - Email Generator2** Lm Chat Google Gemini *Model*
- 12 **Email JSON Parser2** Output Parser Structured *Model*
- 13 **AI - Parse Lead Data** Chain Llm *Model*
- 14 **AI - Generate Personalized Email** Chain Llm *Model*
- 15 **Get row(s)** Data Table *Service*
- 16 **Get row(s)1** Data Table *Service*
- 17 **AI - Generate Personalized 2nd Follow Up Email** Chain Llm *Model*
- 18 **Get row(s)2** Data Table *Service*
- 19 **AI - Generate Personalized 3rd Follow Up Email** Chain Llm *Model*
- 20 **Insert row** Data Table *Service*
- 21 **Set Email** Set *Logic*
- 22 **Loop Over Items** Split In Batches *Logic*
- 23 **Initialize Lead Follow Up** Set *Logic*
- 24 **Set 2nd Follow Up** Set *Logic*
- 25 **If lastSentDate was 24 hours ago** If *Logic*
- 26 **Set 3rd Follow Up** Set *Logic*
- 27 **Initialize Lead Tracking** Set *Logic*
- 28 **Send email** Email Send *Service*
- 29 **Is This a Reply from Lead?** If *Logic*
- 30 **Get many messages** Gmail *Service*
- 31 **Send email 2** Email Send *Service*
- 32 **Initialize Lead 3rd Follow Up** Set *Logic*
- 33 **Send email 3** Email Send *Service*
- 34 **Update row(s)** Data Table *Service*
- 35 **Notify Agent - Reply Received** Telegram *Service*
- 36 **Update row(s)1** Data Table *Service*
- 37 **Update row(s) and Update Status** Data Table *Service*
- 38 **Notify Agent - Email Sent** Telegram *Service*
- 39 **Mark Lead as Replied** Set *Logic*
- 40 **Notify Agent - Email Sent1** Telegram *Service*
- 41 **Notify Agent - Sequence Complete1** Telegram *Service*
- 42 **Mark As Replied** Data Table *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 42, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Gmail, Telegram, n8n data table
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Email, Gmail 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 incoming Telegram message.

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 42 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 42 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%2Fautomated-lead-nurturing-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)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

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

- [**Capture and score multi-channel leads with Gmail** 39 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/capture-and-score-multi-channel-leads-with-gmail)
- [**Find high-mismatch local business leads with Firecrawl** 38 steps · calls a model · Slack, n8n data table](https://millionrounds.com/workflow/find-high-mismatch-local-business-leads-with-firecrawl)
- [**Instagram Post & Reel Comments Auto-Reply Lead DM Funnel Unipile** 38 steps · calls a model · n8n data table](https://millionrounds.com/workflow/instagram-post-and-reel-comments-auto-reply-lead-dm-funnel-u)
- [**Capture, qualify, and route real estate leads with WhatsApp** 37 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/capture-qualify-and-route-real-estate-leads-with-whatsapp)
- [**Speed-to-Lead AI Response Engine for WhatsApp, Web Forms** 37 steps · Email, Google Sheets](https://millionrounds.com/workflow/speed-to-lead-ai-response-engine-for-whatsapp-web-forms)
- [**Speed-to-Lead AI Response Engine for WhatsApp, Web Forms, Chat** 37 steps · Email, Google Sheets](https://millionrounds.com/workflow/speed-to-lead-ai-response-engine-for-whatsapp-web-forms-chat)
