Automation library · Chat assistants

Telegram AI companion – Telegram chat, voice & image

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

LargeCalls a model: OpenAI, OpenRouterRetrieval

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

The flow

Starts it 1Model 9Logic 6Service 5

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

  1. 1Telegram Trigger1Telegram triggerStarts it
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3SerpAPITool Serp ApiModel
  4. 4Search in TavilyTavily ToolService
  5. 5Reasoning Tool (LangChain)Tool ThinkModel
  6. 6OpenAI Chat ModelLm Chat Open AiModel
  7. 7OpenRouter Chat ModelLm Chat Open RouterModel
  8. 8IfIfLogic
  9. 9AI AgentAgentModel
  10. 10Edit FieldsSetLogic
  11. 11MessageVoiceTelegramService
  12. 12Analyze OutputSetLogic
  13. 13Transcription audioOpen AiModel
  14. 14Check Image RequestIfLogic
  15. 15Extract Image PromptSetLogic
  16. 16Check Input TypeIfLogic
  17. 17Generate ImageOpen AiModel
  18. 18Create Voice Response1Open AiModel
  19. 19Send a text messageTelegramService
  20. 20Send ImageTelegramService
  21. 21Send Voice ResponseTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
21, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
OpenAI, OpenRouter
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 OpenAI and OpenRouter. 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 and OpenRouter. 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 21 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 21 steps before you point it at anything that matters.