Website Downtime Alert via LINE + Supabase Log
This workflow automatically checks the status of your websites using UptimeRobot API. If any site is down or unstable, it will: Generate a natural-language alert message using GPT-4o Push the message to a LINE group (with funny IT-style encouragement) Log all DOWN status entries into your Supabase database Wait 30 minutes before repeating
π§ How It Works Schedule Trigger β Runs on a fixed interval (every few minutes). UptimeRobot Node β Fetches website monitor data. Code Node (Filter) β Filters only websites with status 8 (may be down) or 9 (down). IF Node β If any site is down, proceed. LangChain LLM Node β Formats alert with a humorous message using GPT-4o. Line Notify (HTTP Request) β Sends the alert to your LINE group. Loop Over Items β Loops through all monitors. Filter Down (Status = 9) β Selects only βfully downβ sites. Supabase Node β Logs these into synlora_uptime_down table. Wait Node β Delays next alert by 30 minutes to avoid spamming.
βοΈ Setup Steps
Required: π UptimeRobot API Key π² LINE Channel Access Token and Group ID π§ OpenAI Key (GPT-4o Mini) ποΈ Supabase Project & Table
Step-by-step: Go to UptimeRobot β Get API key and ensure monitors are set up. Create a Supabase table with fields: website, status, uptime_id. Create a LINE Messaging API bot, join it to your group, and get: Access Token Group ID (userId or groupId) Add your OpenAI API Key for GPT-4o Mini (or switch to your preferred LLM). Import the workflow JSON into n8n. Set credentials in all necessary nodes. Activate the workflow.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments