# Sync and enrich HubSpot leads from Google Sheets and Telegram: n8n workflow

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

Source: https://millionrounds.com/workflow/sync-and-enrich-hubspot-leads-from-google-sheets-and-telegra (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)

# Sync and enrich HubSpot leads from Google Sheets and Telegram

Started by an incoming Telegram message, and works across Google Sheets, HubSpot and Telegram. It hands the judgement calls to Gemini. 32 steps, 4 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%2Fsync-and-enrich-hubspot-leads-from-google-sheets-and-telegra)

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

**4** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Model 2 Logic 18 Service 10

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **New or Updated row** Google Sheets trigger *Starts it*
- 3 **Parse Telegram Message** Google Gemini *Model*
- 4 **Filter processed lines** Filter *Logic*
- 5 **Format Telegram Lead Data** Code *Logic*
- 6 **Get HubSpot data** Http Request *Service*
- 7 **Domain Resolver** Google Gemini *Model*
- 8 **Append Resolved Domain to Lead** Merge *Logic*
- 9 **Combine Lead with CRM Reference Data** Merge *Logic*
- 10 **Split HubSpot Search Results** Split Out *Logic*
- 11 **Match Lead to Existing Company** Code *Logic*
- 12 **Mark as HubSpot Reference Data** Code *Logic*
- 13 **Switch Logic** Switch *Logic*
- 14 **HubSpot: Update Company** Hubspot *Service*
- 15 **HubSpot: Create Company** Hubspot *Service*
- 16 **Switch on email field** Switch *Logic*
- 17 **Lusha Enrichment - email** Http Request *Service*
- 18 **Resolve Company ID** Code *Logic*
- 19 **Map Contact Enrichment Data** Code *Logic*
- 20 **Validate Company ID Status** Switch *Logic*
- 21 **Retry ID resolution** Wait *Logic*
- 22 **Add a Note to Hubspot company** Http Request *Service*
- 23 **Check for Existing Contact Email** Switch *Logic*
- 24 **Lusha Company Enrichment** Http Request *Service*
- 25 **Create or update a contact** Hubspot *Service*
- 26 **Identify Telegram triggered flow** Filter *Logic*
- 27 **Identify updated row** Filter *Logic*
- 28 **Prepare Firmographic Updates** Code *Logic*
- 29 **Update Telegram user** Telegram *Service*
- 30 **Acknowledge in sheet** Google Sheets *Service*
- 31 **Filter Leads with Data Changes** Filter *Logic*
- 32 **HubSpot: Update Enriched Company** Http Request *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 32, with 4 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, HubSpot, Telegram
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, HubSpot 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 32 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 32 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%2Fsync-and-enrich-hubspot-leads-from-google-sheets-and-telegra)
- **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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[HubSpot](https://millionrounds.com/workflows?service=HubSpot#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.

- [**Qualify real estate WhatsApp leads with Groq and Google Sheets** 32 steps · calls a model · Google Sheets, Twilio](https://millionrounds.com/workflow/qualify-real-estate-whatsapp-leads-with-groq-and-google-shee)
- [**Smart HubSpot lead matching and enrichment** 32 steps · calls a model · Google Sheets, HubSpot](https://millionrounds.com/workflow/smart-hubspot-lead-matching-and-enrichment)
- [**Nurture dental leads and manage appointments** 32 steps · Gmail, Google Calendar](https://millionrounds.com/workflow/nurture-dental-leads-and-manage-appointments)
- [**Reddit to Google Sheets: tracking freelance/job leads** 32 steps · Google Sheets, Reddit](https://millionrounds.com/workflow/reddit-to-google-sheets-tracking-freelance-job-leads)
- [**Automated lead generation & AI research with Apollo** 31 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/automated-lead-generation-and-ai-research-with-apollo)
- [**Extract sales leads from Google Jobs, LinkedIn & Indeed** 31 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/extract-sales-leads-from-google-jobs-linkedin-and-indeed)
