Automation library · Customer support

Answer FAQs and route Telegram users to support with Postgres

Started by an incoming Telegram message, and works across Postgres 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
2Services it connects to

The flow

Starts it 1Logic 11Service 17

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Variables TGSetLogic
  3. 3InitializationSetLogic
  4. 4Starts?IfLogic
  5. 5Welcome MessageTelegramService
  6. 6Button?IfLogic
  7. 7Upsert bot status on STARTPostgresService
  8. 8ButtonsSwitchLogic
  9. 9Get Bot StatusPostgresService
  10. 10Main MenuTelegramService
  11. 11List FAQPostgresService
  12. 12Define FlowSwitchLogic
  13. 13Union Number with TextSetLogic
  14. 14Command OR Answer?IfLogic
  15. 15CommandsSwitchLogic
  16. 16Add User RequestPostgresService
  17. 17Union ListSummarizeService
  18. 18Get AnswersPostgresService
  19. 19Set FAQ StartSetLogic
  20. 20RequestTelegramService
  21. 21ErrorTelegramService
  22. 22Request Success for UserTelegramService
  23. 23List FAQ TelegramService
  24. 24Edit FieldsSetLogic
  25. 25Update bot status on MANAGERPostgresService
  26. 26Request Success for ManagerTelegramService
  27. 27Update bot status on FAQPostgresService
  28. 28AnswerTelegramService
  29. 29Update bot status on STARTPostgresService

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, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Postgres 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.