๐Ÿ’ฌ Book and confirm clinic appointments with WhatsApp, Google Calendar, and Gmail

โšก 699 views ยท ๐Ÿ’ฌ Support Chatbots

Description

Quick overview

Automate clinic appointment booking end to end. Patients submit a request via webhook, the workflow generates a unique Booking ID, routes online consultations to Google Meet and offline ones to the clinic address, then notifies both patient and doctor via Gmail and WhatsApp.

How it works

  1. A patient submits a booking request via webhook containing name, email, phone, date, time, and consultation type โ€” online or offline.
  2. The workflow extracts all fields and generates a unique Booking ID in the format CLN-YYYYMMDD-XXXXXX for tracking.
  3. The consultation type is checked โ€” if online, a Google Meet link is generated and attached to the calendar event.
  4. If offline, the clinic physical address is used instead of a meeting link.
  5. A confirmed appointment is created in the doctor Google Calendar with full patient details attached.
  6. The patient receives a confirmation email via Gmail and a WhatsApp message via Twilio with the Booking ID and appointment details.
  7. The doctor receives a full appointment notification via Gmail, then 24 hours before the appointment the patient is automatically sent a reminder via email and WhatsApp.

Setup

  1. Connect your Google Calendar credential in n8n and replace YOUR_DOCTOR_CALENDAR_ID with your Calendar ID found in Google Calendar Settings.
  2. Connect your Gmail credential in n8n โ€” used for patient confirmation, doctor notification, and reminder emails.
  3. Sign up at twilio.com, enable WhatsApp Sandbox, connect the Twilio credential in n8n, and replace YOUR_TWILIO_WHATSAPP_NUMBER with your sandbox number in format whatsapp:+14155238886.
  4. Replace YOUR_DOCTOR_EMAIL in the Notify Doctor via Email node with the doctor actual email address.
  5. Replace YOUR_CLINIC_ADDRESS in the Create Offline Calendar Event and Store Offline Event Data nodes with your clinic physical address.
  6. Test the workflow by sending a POST request to the webhook URL with this body: name, email, phone, date, time, and consultation_type set to online or offline.

Requirements

Customization

๐Ÿ”— Nodes Used

Twilio, Webhook, Google Calendar, Gmail

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup