Monitor website uptime and diagnose errors with Gemini and Slack alerts

Go to Workflow
0 views
Built by Oka Hironobu Oka Hironobu
Created on June 07, 2026

Description

Who is this for

DevOps engineers, site reliability teams, and business owners who need to know the moment their website goes down — and want AI-powered diagnostics instead of just a ping alert.

What this workflow does

A Schedule Trigger checks your website every 5 minutes by sending an HTTP Request to your target URL. A Code node evaluates the response status code and response time against your thresholds. When the site is down or degraded, Google Gemini analyzes the error pattern and provides a probable root cause diagnosis with recommended actions. Every health check is logged to Google Sheets for uptime history tracking. Downtime events trigger an immediate Slack alert that includes the AI diagnosis. A daily summary email is sent via Gmail so you have a record even when nothing goes wrong.

How to set up

Replace https://example.com in the "Check Website" node with your actual URL
Add your free Google Gemini API key from Google AI Studio
Create a Google Sheet called "Uptime Log" and connect it
Connect Slack and select your monitoring channel
Connect Gmail and set the recipient email address

Requirements

Google Gemini API key (free tier)
Google Sheets account
Slack workspace
Gmail account
n8n instance (self-hosted or cloud)

How to customize

Change the check interval in the "Check Every 5 Minutes" trigger node
Adjust the response time threshold in the "Evaluate Response" Code node (default: 3000ms)
Monitor multiple URLs by duplicating the HTTP Request and Code nodes

Nodes Used (7)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
Slack
n8n-nodes-base.slack