Automation library · Content

Telegram messaging agent for text/audio/images with OpenAI

Started by another system calling it, and works across Telegram. It hands the judgement calls to OpenAI. 29 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 6Logic 6Service 16

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

  1. 1Listen for Telegram EventsWebhookStarts it
  2. 2gpt-4o-miniLm Chat Open AiModel
  3. 3gpt-4o-mini1Lm Chat Open AiModel
  4. 4Telegram Token & WebhooksSetLogic
  5. 5ValidationSetLogic
  6. 6Text Classifier AudioText ClassifierModel
  7. 7Text ClassifierText ClassifierModel
  8. 8Set Webhook Production URLHttp RequestService
  9. 9Set Webhook Test URLHttp RequestService
  10. 10Get Telegram Webhook InfoHttp RequestService
  11. 11Check User & Chat IDIfLogic
  12. 12Audio Task MessageTelegramService
  13. 13Audio Other MessageTelegramService
  14. 14Text Task MessageTelegramService
  15. 15Text Other MessageTelegramService
  16. 16Production Webhook StatusTelegramService
  17. 17Test Webhook StatusTelegramService
  18. 18Get Webhook StatusTelegramService
  19. 19Message RouterSwitchLogic
  20. 20Error messageTelegramService
  21. 21Get Audio FileTelegramService
  22. 22Edit FieldsSetLogic
  23. 23Image SchemaSetLogic
  24. 24Transcribe RecordingOpen AiModel
  25. 25Get ImageTelegramService
  26. 26Extract from File to Base64Extract From FileService
  27. 27Convert to Image FileConvert To FileService
  28. 28Analyze ImageOpen AiModel
  29. 29Image MessageTelegramService

How it's built

Starts on
Another system calling it
Steps
29, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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