Quick overview
This workflow runs every five minutes to check a specified website URL with an HTTP request and sends an email alert via SMTP whenever the response status code is not 200.
How it works
- Runs every 5 minutes on a schedule.
- Sets the website URL to monitor and the email address to use for alerts.
- Sends an HTTP GET request to the monitored URL and captures the full response, including the status code.
- Checks whether the returned HTTP status code is not 200.
- Sends a plaintext downtime email with the URL, status code, and current timestamp to the configured address.
Setup
- Add an email/SMTP credential (Gmail, SendGrid, Postmark, or any provider supported by n8n's Send Email node) and select it in the Send Downtime Alert step.
- Open the Config node and update the monitorUrl and alertEmail values to match the website you want to monitor and the address that should receive alerts.
- Confirm the schedule interval in the trigger node (default: every 5 minutes), save, and activate the workflow so monitoring runs automatically in the background.
Requirements
- n8n instance (self-hosted or n8n Cloud)
- SMTP/email credential supported by n8n's Send Email node (Gmail, SendGrid, Postmark, or custom SMTP)
- A URL you want to monitor
Customization
- Change the check interval by editing the Schedule Trigger node (default: every 5 minutes)
- Swap the Send Email node for Slack/Telegram/Discord — reuse the same status code, URL, and timestamp values
- Monitor multiple URLs by duplicating the Config → Check Website → If branch