WhatsApp to Google Calendar Appointments: n8n Workflow Guide
Back to blog
Practical Guide 6 min 2925 wordsOctober 22, 2026

WhatsApp to Google Calendar Appointments: n8n Workflow Guide

A 6-node n8n flow receives the message, checks availability, and creates the appointment. Includes importable JSON and privacy basics.

⚡SEE LIVE DEMOS

To book appointments from WhatsApp into Google Calendar you need three pieces: a WhatsApp Business number connected to the Cloud API, an n8n workflow that receives the message and checks availability, and a calendar used only for appointments. Then the patient texts, the system checks the slot, and the event is created in seconds.

To book appointments from WhatsApp into Google Calendar you need three pieces: a

What do you need before you start?

First, a WhatsApp Business number that is not tied to a personal account and that you can verify with Meta. Second, an n8n instance (cloud or self-hosted) reachable from the internet so it can receive the webhook. Third, a Google Calendar used only for appointments: do not mix the clinic schedule with personal calendars, because availability rules get confusing. Fourth, decide simple rules: appointment length, opening hours, closed days, and the buffer between patients. If a practice in Katy or Sugar Land has two doctors, the cleanest setup is one calendar per doctor. Once that is clear, the technical part is short; the time goes into deciding the rules, not into connecting the tools.

First, a WhatsApp Business number that is not tied to a personal account and tha

How does the flow work from start to finish?

The patient texts the clinic number. Meta forwards that message to your n8n webhook; a code node reads it and extracts the phone number and requested time; a Google Calendar node checks whether that slot is free; if it is, it creates the event and WhatsApp replies with a confirmation. According to Meta's WhatsApp Cloud API documentation, when a customer messages you a 24-hour window opens in which you can reply with free-form text; outside that window you can only send approved templates. For booking that is enough, because the whole conversation happens within minutes.

The patient texts the clinic number. Meta forwards that message to your n8n webh
Clinic reception desk with a smartphone showing a chat and a wall calendar
One entry channel (WhatsApp) and one calendar prevent double bookings.

Step 1: receive the patient's message

In n8n create a Webhook node with the POST method and paste its production URL into the webhook settings of your Meta app, subscribing to the messages field. Meta also runs an initial verification with a GET request that must return a challenge value; in production you should add a second webhook for that. Then a Code node turns Meta's payload into usable data: phone number, date, and time. In the example below the patient types something like 2026-11-03 10:00, to keep it minimal. In a real build the bot usually offers slots as buttons or a list and the patient just taps one, which removes formatting errors.

In n8n create a Webhook node with the POST method and paste its production URL i

Step 2: check availability and create the event

This is the heart of the flow. Before creating anything, check availability: the Google Calendar API offers a free/busy method that returns the busy intervals of a calendar, and the n8n node exposes it as an availability operation. Only if the slot is free do you create the event; otherwise the flow should offer other options. Below is the full workflow: the Webhook receives, the Code node prepares the dates (30-minute appointment), the Google Calendar node checks the slot, the IF decides, another node creates the event, and an HTTP Request confirms on WhatsApp. Change TU_CALENDAR_ID, PHONE_NUMBER_ID, and TU_TOKEN, and connect your Google credential inside n8n.

This is the heart of the flow. Before creating anything, check availability: the
Workflow n8n: WhatsApp appointments to Google Calendar — copy and paste into n8n (Import from clipboard)
{
  "name": "WhatsApp appointments to Google Calendar",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "citas-whatsapp",
        "responseMode": "onReceived"
      },
      "name": "Webhook WhatsApp",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "const msg = $input.first().json.body?.entry?.[0]?.changes?.[0]?.value?.messages?.[0];\nif (!msg || msg.type !== 'text') return [];\nconst match = msg.text.body.match(/(\\d{4}-\\d{2}-\\d{2})[ T](\\d{2}:\\d{2})/);\nif (!match) return [];\nconst start = new Date(Date.UTC(...[match[1].split('-')[0], match[1].split('-')[1] - 1, match[1].split('-')[2], match[2].split(':')[0], match[2].split(':')[1]].map(Number)));\nconst end = new Date(start.getTime() + 30 * 60000);\nconst fmt = d => d.toISOString().slice(0, 19);\nreturn [{ json: { telefono: msg.from, start: fmt(start), end: fmt(end) } }];"
      },
      "name": "Preparar cita",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "resource": "calendar",
        "operation": "availability",
        "calendar": {
          "__rl": true,
          "value": "TU_CALENDAR_ID",
          "mode": "id"
        },
        "timeMin": "={{ $json.start }}",
        "timeMax": "={{ $json.end }}",
        "options": {}
      },
      "name": "Revisar disponibilidad",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "hueco-libre",
              "leftValue": "={{ $json.available }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "name": "¿Hay hueco?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    },
    {
      "parameters": {
        "resource": "event",
        "operation": "create",
        "calendar": {
          "__rl": true,
          "value": "TU_CALENDAR_ID",
          "mode": "id"
        },
        "start": "={{ $('Preparar cita').item.json.start }}",
        "end": "={{ $('Preparar cita').item.json.end }}",
        "additionalFields": {
          "summary": "Appointment (booked via WhatsApp)"
        }
      },
      "name": "Crear evento",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [
        880,
        -80
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://graph.facebook.com/v21.0/PHONE_NUMBER_ID/messages",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer TU_TOKEN"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ messaging_product: 'whatsapp', to: $('Preparar cita').item.json.telefono, type: 'text', text: { body: 'Done, your appointment is confirmed for ' + $('Preparar cita').item.json.start.replace('T', ' at ') } }) }}",
        "options": {}
      },
      "name": "Confirmar por WhatsApp",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1100,
        -80
      ]
    }
  ],
  "connections": {
    "Webhook WhatsApp": {
      "main": [
        [
          {
            "node": "Preparar cita",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Preparar cita": {
      "main": [
        [
          {
            "node": "Revisar disponibilidad",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Revisar disponibilidad": {
      "main": [
        [
          {
            "node": "¿Hay hueco?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "¿Hay hueco?": {
      "main": [
        [
          {
            "node": "Crear evento",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Crear evento": {
      "main": [
        [
          {
            "node": "Confirmar por WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "timezone": "America/Chicago"
  }
}

The false branch of the IF is empty on purpose: it is your first exercise. Add an HTTP Request like the confirmation one with a message such as "That time is taken, would another work?". Also set the workflow time zone; in Houston it is America/Chicago, and the November clock change is the classic cause of appointments that land an hour off.

The false branch of the IF is empty on purpose: it is your first exercise. Add a

What patient data should stay out of the calendar?

The event title should be generic: "Appointment" and the time, with no reason for the visit, diagnosis, or full name unless needed. A calendar shared with reception, doctors, and sometimes outside vendors is not the place for health information. If your clinic is a HIPAA covered entity, every vendor that touches patient data (WhatsApp, n8n, Google) should be reviewed with your compliance lead, and you need the patient's consent to message them on this channel. This is not legal advice: it gives you a list of questions for your attorney. We go deeper in our guide on the AI receptionist and HIPAA.

The event title should be generic: "Appointment" and the time, with no reason fo

How long does it take to launch?

A basic flow like this can be built in an afternoon if your WhatsApp number is verified and the calendar is ready. What stretches the project is Meta business verification and the clinic's scheduling rules. Some context: in a Phreesia survey of about 14,000 US patients (from around 2019, so treat it as historical), only 18% preferred to book online and 65% preferred the phone, while 48% preferred text-message reminders. The channel matters less than offering an easy path without removing the option to call. Follow these steps:

A basic flow like this can be built in an afternoon if your WhatsApp number is v
  • 01Verified number: register a WhatsApp Business number with Meta and complete business verification.
  • 02Dedicated calendar: create a Google Calendar only for appointments, one per doctor or room.
  • 03Scheduling rules: define length, hours, closed days, and buffer between patients.
  • 04n8n webhook: publish the flow and connect its URL to the Meta app.
  • 05Availability check: query free/busy before creating any event.
  • 06Confirmation and alternatives: always reply, with success or with new options.
  • 07Human handoff: if the patient writes something off-script, pass the conversation to reception.
"

"A well-built booking bot does not try to answer everything: it books the simple cases fast and hands the rest to a person."

Equipo Davarion

Can the bot reschedule or cancel appointments?

Yes, with the same pattern. To cancel, the flow finds the event by phone number (store it in the event's extended properties) and deletes it or marks it cancelled. To reschedule, create the new event first and delete the old one after, so a failure never leaves the patient without an appointment. We recommend limiting automatic rescheduling to appointments more than 24 hours away; last-minute changes go to reception. With our WhatsApp automation service we set this up as part of the SPARK package.

Yes, with the same pattern. To cancel, the flow finds the event by phone number

Does it work if my clinic already uses practice management software?

It depends. If your system has an API or syncs with Google Calendar, the flow can write there. If it is closed and does not sync, avoid duplicating the schedule by hand: use Google Calendar as the source and revisit an integration later. To decide, start with one specialty or one doctor as a two-week pilot and measure how many appointments arrive through WhatsApp. You can see what these projects look like in our examples and try a chatbot in the demos.

It depends. If your system has an API or syncs with Google Calendar, the flow ca

Will older patients use WhatsApp?

Some will and some will not, and that is fine. Always keep the phone as a fallback and never force anyone to change habits. The same Phreesia study showed that 34% of patients aged 65 and over preferred text-message reminders, so a meaningful share does take advantage. Start by offering WhatsApp as an additional option, and look at the data after a month before adjusting reception hours or staffing.

Some will and some will not, and that is fine. Always keep the phone as a fallba

Want to book appointments by WhatsApp at your clinic?

Book a free 15-minute audit and we will review how appointments reach your clinic today, what to automate first, and what a realistic pilot looks like. Reach us from our AI automation in Houston page and we will tell you whether it makes sense for your case, no strings attached.

Book a free 15-minute audit and we will review how appointments reach your clini
#book appointments with WhatsApp#WhatsApp to Google Calendar#automate clinic appointments#n8n Google Calendar WhatsApp#medical appointment chatbot#WhatsApp Business appointment booking#automatic clinic scheduling Houston

Davarion Group & Labs

WANT TO SEE THE AI IN ACTION?

Try an AI chatbot configured with your business name — live, no signup required.