Automation library · Chat assistants

Build a comprehensive multimodal assistant on Telegram

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

LargeCalls a model: OpenAIRetrieval

33 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 17Logic 10Service 5

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

  1. 1Receive MessageTelegram triggerStarts it
  2. 2Window Buffer MemoryMemory Buffer WindowModel
  3. 3Embeddings OpenAI1Embeddings Open AiModel
  4. 4Token SplitterText Splitter Token SplitterModel
  5. 5Image GeneratorTool Http RequestModel
  6. 6Basic Google SearchTool Serp ApiModel
  7. 7Webpage ScraperTool Http RequestModel
  8. 8CalculatorTool CalculatorModel
  9. 9OpenAI Chat ModelLm Chat Open AiModel
  10. 10ThinkTool ThinkModel
  11. 11Embeddings OpenAIEmbeddings Open AiModel
  12. 12API SetupSetLogic
  13. 13J.A.R.V.I.S.AgentModel
  14. 14Simple Vector StoreVector Store In MemoryModel
  15. 15Default Data LoaderDocument Default Data LoaderModel
  16. 16Simple Vector Store1Vector Store In MemoryModel
  17. 17SwitchSwitchLogic
  18. 18If Audio ResponseIfLogic
  19. 19Format-doc-outputSetLogic
  20. 20Download ImageTelegramService
  21. 21Get Audio FileTelegramService
  22. 22Format-text-outputSetLogic
  23. 23Download DocumentTelegramService
  24. 24Split MSGCodeLogic
  25. 25Generate AudioOpen AiModel
  26. 26Fix File ExtensionCodeLogic
  27. 27TranscribeOpen AiModel
  28. 28Convert DocCodeLogic
  29. 29Text ResponseTelegramService
  30. 30Audio ResponseTelegramService
  31. 31Analyze ImageOpen AiModel
  32. 32Format-voice-outputSetLogic
  33. 33Format-image-outputSetLogic

How it's built

Starts on
An incoming Telegram message
Steps
33, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram, in-memory vectors
Model
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 and in-memory vectors accounts, and a key for 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 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 33 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 33 steps before you point it at anything that matters.