Automation library · Customer support

Advanced Telegram bot, ticketing system, liveChat, user

Started by an incoming Telegram message, and works across Redis and Telegram. 31 steps, 7 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 15Service 15

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

  1. 1Telegram-BotTelegram triggerStarts it
  2. 2Bot-ConfigSetLogic
  3. 3FormatCodeLogic
  4. 4Bot-FieldsSetLogic
  5. 51stSwitchLogic
  6. 6Check User in DatabaseRedisService
  7. 7Support ForumIfLogic
  8. 8IF Verified ChannelIfLogic
  9. 9New User ?IfLogic
  10. 10From TicketIfLogic
  11. 11Retrieve all users in DBRedisService
  12. 12No Operation, do nothingNo OpLogic
  13. 13Save User DataRedisService
  14. 14Update User DataRedisService
  15. 15Forward Support Reply To UserHttp RequestService
  16. 16IF Topic CreatedIfLogic
  17. 17Format UsersCodeLogic
  18. 18Create Topic (Chat Ticket)Http RequestService
  19. 19Get User Chat TopicRedisService
  20. 20Send User Ticket Created NotificationTelegramService
  21. 21Filter Blocked UsersFilterLogic
  22. 22Save Topic IDRedisService
  23. 23Forward New MessageHttp RequestService
  24. 24Split In Batches1Split In BatchesLogic
  25. 25IF No Topic CreatedIfLogic
  26. 26Broadcast Channel Post into UsersHttp RequestService
  27. 27ReCreate Topic (Chat Ticket)Http RequestService
  28. 28Wait1WaitLogic
  29. 29Set Blocked MemberRedisService
  30. 30ReSave Topic IDRedisService
  31. 31Forward New Message to the recrated topicHttp RequestService

How it's built

Starts on
An incoming Telegram message
Steps
31, with 7 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Redis, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own 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 31 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 31 steps before you point it at anything that matters.