Websites may become unreachable, return 404 / 500 / 503 errors, or fail silently without immediate awareness. Manual monitoring is unreliable and inefficient for production systems.
The Challenge: We needed a solution that runs automatically, detects issues instantly, and notifies the team immediately via Telegram without generating false alarms.
Goal: Build an automated workflow that checks website status every 5 minutes and sends a Telegram alert only if the site returns an error status code (≥ 400).
The workflow is built in n8n following a linear logic: Cron Trigger → HTTP Request (HEAD) → IF Node → Telegram Alert. It uses a HEAD request for lightweight checking and evaluates status codes to determine if the site is down.
🚨 WEBSITE INCIDENT DETECTED
🔗 URL: {{$node["Check Website"].parameter.url}}
📡 Status Code: {{$node["Check Website"].json.statusCode}}
🕒 Timestamp: {{$now}}
⚠ The website is currently unreachable or responding with an error.
Please review server availability, hosting status, and application logs.
Download the ready-to-use n8n workflow JSON file. Import it directly into your n8n instance.