Automation library · Content

Telegram multifunctional tool with Gemini and OpenAI

Started by an incoming Telegram message, and works across Telegram. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAIRetrieval

25 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 10Logic 4Service 10

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Google Gemini Chat Model1Lm Chat Google GeminiModel
  3. 3MCP ClientMcp Client ToolModel
  4. 4Simple MemoryMemory Buffer WindowModel
  5. 5OpenAI Chat ModelLm Chat Open AiModel
  6. 6Video Output ParserOutput Parser StructuredModel
  7. 7Image Output ParserOutput Parser StructuredModel
  8. 8OpenAI Chat Model1Lm Chat Open AiModel
  9. 9Input RouterSwitchLogic
  10. 10image prompterAgentModel
  11. 11AI AgentAgentModel
  12. 12video prompterAgentModel
  13. 13Image genHttp RequestService
  14. 14Telegram1TelegramService
  15. 15image gen for videoHttp RequestService
  16. 16Image DownloaderHttp RequestService
  17. 17image downloadHttp RequestService
  18. 18send image1TelegramService
  19. 19IfIfLogic
  20. 20video genHttp RequestService
  21. 21WaitWaitLogic
  22. 22HTTP RequestHttp RequestService
  23. 23SwitchSwitchLogic
  24. 24video downloadHttp RequestService
  25. 25send videoTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
25, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
Gemini, OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for Gemini and 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 Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 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 25 steps before you point it at anything that matters.