Monitor & Manage Docker Containers with Telegram Bot & AI Log Analysis

Go to Workflow
5 views
Built by Malte Sohns Malte Sohns
Created on June 07, 2026

Description

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 remotely. When you request logs, they're automatically analyzed by an LLM so you get a clear, structured breakdown instead of raw terminal output.

Who it's for

Anyone running a self-hosted environment who wants quick visibility and control without SSHing into a server. Perfect for homelab enthusiasts, self-hosters, and DevOps folks who want a lightweight on-call assistant.

What it does

Receives container heartbeat alerts via webhook

Sends Telegram notifications for status changes or failures

Lets you request logs or restart services from chat

Analyzes logs with GPT and summarizes them clearly

Supports manual “status” and “update all containers” commands

Requirements

Telegram Bot API credentials

SSH access to your Docker host

How to set it up

Create a Telegram bot and add its token as credentials
Enter your server SSH credentials in the SSH node
Deploy the workflow and set your webhook endpoint
Tailor container names or heartbeat logic to your environment

Customize it

Swap SSH commands for Kubernetes if you're on k8s

Change the AI model to another provider

Extend with health checks or auto-healing logic

Nodes Used (3)

Code
n8n-nodes-base.code
OpenAI
@n8n/n8n-nodes-langchain.openAi
Telegram
n8n-nodes-base.telegram