Automation library · Data collection

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.

LargeCalls a model: Gemini

22 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 4Logic 8Service 9

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

  1. 1Google Gemini Chat Model1Lm Chat Google GeminiModel
  2. 2Telegram TriggerTelegram triggerStarts it
  3. 3Google Gemini Chat Model2Lm Chat Google GeminiModel
  4. 4AI Agent1AgentModel
  5. 5SwitchSwitchLogic
  6. 6checkDomainNameStatusAgentModel
  7. 7Switch3SwitchLogic
  8. 8StartTelegramService
  9. 9Edit FieldsSetLogic
  10. 10Edit Fields1SetLogic
  11. 11Edit Fields2SetLogic
  12. 12Edit Fields3SetLogic
  13. 13Switch1SwitchLogic
  14. 14Start2TelegramService
  15. 15Start3TelegramService
  16. 16Start4TelegramService
  17. 17pleaseTryAgainTelegramService
  18. 18Execute Command1Execute CommandService
  19. 19Start1TelegramService
  20. 20Switch2SwitchLogic
  21. 21Execute Command2Execute CommandService
  22. 22pleaseTryAgain1TelegramService

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.