The flow
Starts it 2Model 1Logic 7Service 14
The steps in the order they run, from what starts it.
- 1WebhookWebhookStarts it
- 2Telegram TriggerTelegram triggerStarts it
- 3Switch1SwitchLogic
- 4SwitchSwitchLogic
- 5Extract the Service NameCodeLogic
- 6OK MessageTelegramService
- 7ERROR MessageTelegramService
- 8MergeMergeLogic
- 9Merge1MergeLogic
- 10docker psSshService
- 11Update MsgTelegramService
- 12get logsSshService
- 13Restart MessageTelegramService
- 14Docker StatusTelegramService
- 15Update DockerSshService
- 16Status UpdateTelegramService
- 17restart containerSshService
- 18Code in Python (Beta)CodeLogic
- 19Message a modelOpen AiModel
- 20IfIfLogic
- 21Update Msg1TelegramService
- 22Log AnalysisTelegramService
- 23Success restartTelegramService
- 24Restart FailedTelegramService
How it's built
- Starts on
- An incoming Telegram message
- Steps
- 24, with 3 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 an incoming Telegram message.
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 24 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 24 steps before you point it at anything that matters.