AutomationFlowsGeneral › Send Automated Appointment Reminders via SMS with Twilio Webhook

Send Automated Appointment Reminders via SMS with Twilio Webhook

ByDavid Olusola @dae221 on n8n.io

The workflow is an automated appointment reminder system built on n8n. Here is a step-by-step breakdown of its process:

Webhook trigger★★★★☆ complexity3 nodesTwilio
General Trigger: Webhook Nodes: 3 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #6932 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "9e7a0fea-06bb-4067-9643-ade20a9b3e94",
      "name": "Reminder Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        80,
        240
      ],
      "parameters": {
        "path": "appointment-reminder",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 1
    },
    {
      "id": "670667bb-06eb-4db0-8976-1f7edcbd9f42",
      "name": "Extract Appointment Data",
      "type": "n8n-nodes-base.code",
      "position": [
        304,
        240
      ],
      "parameters": {
        "jsCode": "// This node extracts and formats the appointment data from the incoming webhook.\n// The expected webhook payload from your booking software should look something like this:\n// {\n//   \"customer_name\": \"John Doe\",\n//   \"customer_phone\": \"+1234567890\",\n//   \"appointment_id\": \"appt_12345\",\n//   \"appointment_service\": \"Consultation\",\n//   \"appointment_time\": \"2025-08-04 14:00:00\"\n// }\n\nconst webhookData = $input.item.json.body || {};\n\n// Basic data extraction and validation\nconst customerName = webhookData.customer_name || 'Valued Customer';\nconst customerPhone = webhookData.customer_phone;\nconst appointmentTime = webhookData.appointment_time || 'today';\nconst serviceName = webhookData.appointment_service || 'your appointment';\nconst appointmentId = webhookData.appointment_id || 'no-id-provided';\n\nif (!customerPhone) {\n  throw new Error('No customer phone number found in webhook data');\n}\n\n// Format the appointment time for the SMS message\n// You can customize the date formatting here if needed.\nconst formattedTime = new Date(appointmentTime).toLocaleString('en-US', {\n  weekday: 'short',\n  month: 'short',\n  day: 'numeric',\n  hour: 'numeric',\n  minute: 'numeric'\n});\n\nreturn {\n  json: {\n    customer_name: customerName,\n    customer_phone: customerPhone,\n    appointment_time: formattedTime,\n    service_name: serviceName,\n    appointment_id: appointmentId,\n    raw_data: webhookData\n  }\n};\n"
      },
      "typeVersion": 2
    },
    {
      "id": "a50e0125-c361-48b7-8f6c-b001e548ccfb",
      "name": "Send SMS Reminder",
      "type": "n8n-nodes-base.twilio",
      "position": [
        544,
        240
      ],
      "parameters": {
        "to": "={{ $json.customer_phone }}",
        "message": "={{ 'Hi ' + $json.customer_name + ', this is a friendly reminder for your ' + $json.service_name + ' appointment on ' + $json.appointment_time + '. We look forward to seeing you! - ' + $('Send SMS Reminder').parameters.from }}",
        "options": {}
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Reminder Webhook": {
      "main": [
        [
          {
            "node": "Extract Appointment Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Appointment Data": {
      "main": [
        [
          {
            "node": "Send SMS Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

The workflow is an automated appointment reminder system built on n8n. Here is a step-by-step breakdown of its process:

Source: https://n8n.io/workflows/6932/ — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

EMAIL-VALIDATION. Uses twilio. Webhook trigger; 2 nodes.

Twilio
General

A production-ready authentication workflow implementing secure user registration, login, token verification, and refresh token mechanisms. Perfect for adding authentication to any application without

Crypto, Data Table, Execute Workflow Trigger
General

Portfolio Orchestrator. Uses httpRequest. Webhook trigger; 59 nodes.

HTTP Request
General

This n8n template demonstrates how a simple Multi-Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key features, processed through a three-layer model.

General

github code Try yourself

Google Calendar