# IP extractor with Gemini and Telegram: n8n workflow template

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

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

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

# IP extractor with Gemini and Telegram

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to Gemini. 22 steps, 4 branches: 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%2Fip-extractor-with-gemini-and-telegram)

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

**4** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 4 Logic 8 Service 9

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

- 1 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 2 **Telegram Trigger** Telegram trigger *Starts it*
- 3 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 4 **AI Agent1** Agent *Model*
- 5 **Switch** Switch *Logic*
- 6 **checkDomainNameStatus** Agent *Model*
- 7 **Switch3** Switch *Logic*
- 8 **Start** Telegram *Service*
- 9 **Edit Fields** Set *Logic*
- 10 **Edit Fields1** Set *Logic*
- 11 **Edit Fields2** Set *Logic*
- 12 **Edit Fields3** Set *Logic*
- 13 **Switch1** Switch *Logic*
- 14 **Start2** Telegram *Service*
- 15 **Start3** Telegram *Service*
- 16 **Start4** Telegram *Service*
- 17 **pleaseTryAgain** Telegram *Service*
- 18 **Execute Command1** Execute Command *Service*
- 19 **Start1** Telegram *Service*
- 20 **Switch2** Switch *Logic*
- 21 **Execute Command2** Execute Command *Service*
- 22 **pleaseTryAgain1** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 22, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Telegram account, 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 22 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 22 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%2Fip-extractor-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.

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

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Employee attendance tracker with Telegram Bot** 22 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/employee-attendance-tracker-with-telegram-bot)
- [**Track and assess wildlife sightings with GBIF and Gemini** 22 steps · Email, Google Sheets](https://millionrounds.com/workflow/track-and-assess-wildlife-sightings-with-gbif-and-gemini)
- [**From Google Drive to Instagram, TikTok & YouTube with Airtable** 24 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/from-google-drive-to-instagram-tiktok-and-youtube-with-airta)
- [**Smart calorie tracker with Gemini and Google Sheets** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/smart-calorie-tracker-with-gemini-and-google-sheets)
- [**Place real estate AI outbound calls with Vapi** 20 steps · Airtable, Gmail](https://millionrounds.com/workflow/place-real-estate-ai-outbound-calls-with-vapi)
- [**Personalized evening wind-down system with Telegram and Notion** 19 steps · calls a model · Email, Notion](https://millionrounds.com/workflow/personalized-evening-wind-down-system-with-telegram-and-noti)
