# Patient Appointment Booking WhatsApp Agent

**Category:** Healthcare  
**Tools:** Google Sheets, Gmail, Google Calendar  
**Nodes:** 12  
**Built by:** Forgent Systems

Patients book, check and reschedule appointments over WhatsApp. The AI agent checks Google Calendar availability, creates the event and records the booking in Google Sheets.

![Workflow](preview.webp)

## How it works

1. A patient messages the clinic on WhatsApp.
2. The AI agent checks calendar availability.
3. It creates or updates the calendar event and the booking row.
4. A confirmation is sent back on WhatsApp, with memory per patient number.

## Use cases

- Clinics and doctors' practices
- Dental and therapy centers
- Diagnostic labs

## Data setup

**Google Sheets** (tab: columns)

- **Patient Scheduling(Healthcare) → Patient Scheduling**: `Appointment ID`, `Event ID`, `Name`, `Email`, `Phone Number`, `Date`, `Time`

## Setup

1. In n8n open **Workflows → Import from File** and choose `workflow.json`.
2. Connect these credentials:
   - Google Calendar account
   - Google Sheets account
   - OpenRouter account
   - Twilio account
3. Point the Sheets / Airtable / Drive / Slack nodes at your own resources (structure above).
4. Replace placeholder emails, phone numbers and `YOUR-FORM-ID` links with your own.
5. Times use the America/New_York timezone and dates use MM/DD/YYYY. Adjust if needed.
6. Run a test execution, then activate.

## Nodes

- **Check Availability** — `n8n-nodes-base.googleCalendarTool`
- **Window Buffer Memory** — `@n8n/n8n-nodes-langchain.memoryBufferWindow`
- **Append Appointment Details** — `n8n-nodes-base.googleSheetsTool`
- **Re-schedule Appointment** — `n8n-nodes-base.googleSheetsTool`
- **Get booking details** — `n8n-nodes-base.googleSheetsTool`
- **Patient Appointment Scheduling** — `@n8n/n8n-nodes-langchain.agent`
- **Update event** — `n8n-nodes-base.googleCalendarTool`
- **Twilio Trigger** — `n8n-nodes-base.twilioTrigger`
- **Send an SMS/MMS/WhatsApp message** — `n8n-nodes-base.twilio`
- **Create event** — `n8n-nodes-base.googleCalendarTool`
- **Sticky Note** — `n8n-nodes-base.stickyNote`
- **OpenRouter Chat Model** — `@n8n/n8n-nodes-langchain.lmChatOpenRouter`
