Monitor & manage Docker containers with Telegram bot & AI log analysis
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI and Telegram.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Switch: routes items into 2 branches
- Switch: routes items into 4 branches
- Extract the Service Name (Code): runs custom Python code
- OK Message (Telegram): uses Telegram
- ERROR Message (Telegram): uses Telegram
- Merge: merges the data from its input branches
- Merge: merges the data from its input branches
- docker ps (SSH): uses SSH
- Update Msg (Telegram): uses Telegram
- get logs (SSH): uses SSH
…plus 12 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - SSH
n8n-nodes-base.ssh - Code
n8n-nodes-base.code
From the author
Monitor and manage Docker containers from Telegram with AI log analysis This workflow gives you a smart Telegram command center for your homelab. It lets you monitor Docker containers, get alerts the moment something fails, view logs, and restart services…