Automation library · Alerts and monitoring

AI chatbot call center: Telegram call in with Postgres

Started by an incoming Telegram message, and works across Postgres, Redis and Telegram. 29 steps, 6 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 2Logic 20Service 7

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Test TriggerChat triggerStarts it
  3. 3Member CacheRedisService
  4. 4Test InputSetLogic
  5. 5If Member CacheIfLogic
  6. 6InputSetLogic
  7. 7Parse ServiceCodeLogic
  8. 8Load Memer DataPostgresService
  9. 9Demo Call CenterExecute WorkflowLogic
  10. 10If TelegramIfLogic
  11. 11MemberSetLogic
  12. 12If ActiveIfLogic
  13. 13Telegram Test OutputTelegramService
  14. 14Type SwitchSwitchLogic
  15. 15Save Member CacheRedisService
  16. 16Telegram InputSetLogic
  17. 17Download AudioTelegramService
  18. 18Extract from FileExtract From FileService
  19. 19SwitchSwitchLogic
  20. 20yue-Hant-HKSetLogic
  21. 21cmn-Hans-CNSetLogic
  22. 22cmn-Hant-TWSetLogic
  23. 23ja-JPSetLogic
  24. 24EnglishSetLogic
  25. 25Google STTGoogle SpeechService
  26. 26If TranscriptIfLogic
  27. 27Telegram Voice InputSetLogic
  28. 28No Transcript InputSetLogic
  29. 29Demo Call BackExecute WorkflowLogic

How it's built

Starts on
An incoming Telegram message
Steps
29, with 6 branches
Size
Large: read it before trusting it with anything live
Connects to
Postgres, Redis, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Postgres, Redis and Telegram accounts. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

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.