# Generate and qualify B2B leads from Telegram with Google Maps: n8n workflow

> Started by an incoming Telegram message, and works across Gmail, Google Sheets and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/generate-and-qualify-b2b-leads-from-telegram-with-google-map (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)

# Generate and qualify B2B leads from Telegram with Google Maps

Started by an incoming Telegram message, and works across Gmail, Google Sheets and Telegram. It hands the judgement calls to OpenAI. 27 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-qualify-b2b-leads-from-telegram-with-google-map)

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

**2** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 16 Service 7

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

- 1 **Telegram Message Trigger** Telegram trigger *Starts it*
- 2 **Build Search Query** Function *Logic*
- 3 **Post to Maps API** Http Request *Service*
- 4 **Check for Next Page** Code *Logic*
- 5 **Split Out Places** Split Out *Logic*
- 6 **If More Pages Exist** If *Logic*
- 7 **Deduplicate All Fields** Remove Duplicates *Logic*
- 8 **Set Search Keys** Set *Logic*
- 9 **Post LinkedIn Search to API** Http Request *Service*
- 10 **Merge Email and Keys** Merge *Logic*
- 11 **Post Email Search to API** Http Request *Service*
- 12 **Set LinkedIn Results** Set *Logic*
- 13 **Merge LinkedIn and Email** Merge *Logic*
- 14 **Set Email Search Results** Set *Logic*
- 15 **Set Company Fields** Set *Logic*
- 16 **AI Research Agent** Open Ai *Model*
- 17 **Clean JSON Data** Code *Logic*
- 18 **Validate Contact Info** Code *Logic*
- 19 **Score Lead Data** Code *Logic*
- 20 **Check Lead Score** If *Logic*
- 21 **Append Lead to Sheets** Google Sheets *Service*
- 22 **Generate Email Content** Open Ai *Model*
- 23 **Send Initial Email** Gmail *Service*
- 24 **Wait 3 Days** Wait *Logic*
- 25 **Generate Follow-up Email** Open Ai *Model*
- 26 **Send Follow-up Email** Gmail *Service*
- 27 **Send Telegram Report** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 27, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

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

## 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%2Fgenerate-and-qualify-b2b-leads-from-telegram-with-google-map)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#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.

- [**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)
- [**Domain outbound: automate lead extraction, and targeted outreach** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/domain-outbound-automate-lead-extraction-and-targeted-outrea)
- [**Generate and enrich local business leads with Decodo** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-enrich-local-business-leads-with-decodo)
- [**Send AI-personalized outreach emails from HubSpot** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-ai-personalized-outreach-emails-from-hubspot)
- [**Audit CRM lead data quality with Google Sheets and NeverBounce** 27 steps · Google Sheets](https://millionrounds.com/workflow/audit-crm-lead-data-quality-with-google-sheets-and-neverboun)
