⚙️ Monitor if a page is alive and notify via Twilio SMS if not

2,850 views · ⚙️ DevOps & CI/CD

Description

Workflow Purpose

This workflow periodically checks a service’s availability and sends an SMS notification if the service is down.

High-Level Steps

Schedule Trigger: The workflow is triggered at a specified interval, such as every minute. HTTP Request: An HTTP request is sent to the URL of the service being monitored. If: The HTTP status code of the response is checked. If the status code is 200 (OK), the workflow ends. If the status code is not 200, indicating a potential issue, an SMS notification is sent using Twilio.

Setup

Setting up this workflow is relatively straightforward and should only take a few minutes:

  1. Create a new n8n workflow.
  2. Add the nodes: Schedule Trigger, HTTP Request, If, and Twilio.
  3. Configure the nodes:
  1. Twilio: Enter the Twilio account credentials and the phone numbers for sending and receiving the SMS notification.
  2. Connect the nodes: Connect the nodes as shown in the workflow diagram.
  3. Activate the workflow: Save the workflow and activate it.

Additional Notes

🔗 Nodes Used

HTTP Request, Twilio, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup