The flow
Starts it 1Logic 14Service 17
The steps in the order they run, from what starts it.
- 1Telegram TriggerTelegram triggerStarts it
- 2Variables TGSetLogic
- 3InitializationSetLogic
- 4Is Start?IfLogic
- 5Welcome MessageTelegramService
- 6SwitchSwitchLogic
- 7ButtonsSwitchLogic
- 8CommandsSwitchLogic
- 9Main MenuTelegramService
- 10For TestsSwitchLogic
- 11Get TestsPostgresService
- 12ErrorTelegramService
- 13Update Bot Status on startPostgresService
- 14Get TestPostgresService
- 15Update AnswerPostgresService
- 16Union Number with QuestionSetLogic
- 17TestTelegramService
- 18Get Non-Answered QuestionsPostgresService
- 19Union listSummarizeService
- 20Get Questions AND AnswersPostgresService
- 21Any questions?IfLogic
- 22List testsTelegramService
- 23Randomize questionsSortLogic
- 24Calculate answersPostgresService
- 25CodeCodeLogic
- 26VariablesSetLogic
- 27Result TestTelegramService
- 28MergeMergeLogic
- 29Upsert pred AnswerPostgresService
- 30QuestionTelegramService
- 31WaitWaitLogic
- 32Delete messageTelegramService
How it's built
- Starts on
- An incoming Telegram message
- Steps
- 32, with 6 branches, 1 loop or waits
- 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 32 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 itNothing 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 32 steps before you point it at anything that matters.