WhatsApp appointment booking for clinics, with human takeover (n8n)
At a glance
- Setup estimate
- 4–6 h (ESTIMATE)
- Tools
- Industries
- Healthcare & wellness
Problem
Clinic front desks are flooded with WhatsApp messages about appointments, services and documents
Who it's for
n8n WhatsApp appointment booking for small clinics (dental, skincare, aesthetics) whose patients message on WhatsApp. The trigger: the front desk can't answer every service question, booking request and voice note as it arrives, and messages that need a person get lost among routine ones.
Skip it if you need English (or any language but Arabic) out of the box: prompts, transcription language, service names and alert emails are all in Arabic. Also skip it if you need a real calendar or practice-management system: bookings go to n8n Data Tables mirrored to Google Sheets.
Tools and what each does
- n8n Webhook + Respond to Webhook
- Receives WhatsApp Cloud API events and answers Meta's verification challenge.
- HTTP Request (Meta Graph API)
- Downloads voice notes, images and files and sends the bot's replies.
- OpenAI (whisper-1 transcription, gpt-4o-mini image analysis and chat)
- Transcribes Arabic voice notes, describes images, runs the main agent and two JSON extractors.
- Pinecone + OpenAI embeddings + Google Docs
- Indexes a clinic info document (run manually) and lets the agent search it for services, policies and prices.
- n8n Data Tables
- Store message history, leads, available slots, appointments and human-handoff requests.
- Gmail
- Emails staff when a patient needs a human or sends a document.
- Google Sheets (every minute)
- Mirrors the Data Tables into a 'CRM' spreadsheet.
Browse by tool: n8n, WhatsApp, OpenAI, Pinecone, Google Docs, Google Sheets, Gmail
Steps
- Load your clinic document into Pinecone once with the manual trigger.
- A patient sends a WhatsApp text, voice note, image or file; media is downloaded and turned into text (files are emailed to staff).
- The bot loads recent history, the patient's upcoming appointments and the free slots, then replies in Arabic using the clinic document.
- An extractor reads the reply; confirmed bookings or reschedules are saved, and requests for a human trigger an email alert.
- New contacts are summarised, categorised and saved as leads.
- Every minute, the tables are copied to Google Sheets.
Known problems in the source template
Found by reading the template's JSON, not by running it. Likely fails as shipped.
Problem: Simple Memory keeps a context window of 1, so the agent likely remembers only the last exchange (it partly relies on the message-history table instead).
Fix: Raise the window or rely on one memory source.
Problem: Image analysis is capped at 50 tokens, so descriptions and text in images are likely cut off.
Fix: Raise maxTokens.
Problem: Alert emails go to [email protected] with an empty attachment entry; 'Update Row' writes nothing to a table named 'test table'; the 'Booked Appointment' tool isn't attached to any agent.
Fix: Set your staff address and the binary property, and delete or wire up the leftover nodes.
Problem: The slot sync matches on 'service', so several slots for one service likely overwrite each other in the sheet.
Fix: Match on service + day + time.
Before you start
- A Meta WhatsApp Business Cloud app with webhook pointed at n8n and a bearer token.
- OpenAI and Pinecone API keys, Gmail, Google Docs and Google Sheets.
- An n8n version with Data Tables, and tables created to match the template.
- Setup estimate: 4–6 h (ESTIMATE), more if translating the prompts.
What can go wrong
Arabic-language template; bookings stored in n8n Data Tables, not a calendar. Patients may send health details, lab results and insurance documents, which this sends to OpenAI and stores in Sheets and Data Tables. In the US that raises HIPAA questions (business associate agreements, safeguards), so get compliance advice first. The bot must not give medical advice, and urgent symptoms need a clear "call us or emergency services" path. Needs WhatsApp Business API access, OpenAI and Pinecone accounts (costs UNKNOWN).
- Data privacyPatient messages, voice notes, images and documents go to OpenAI and are stored in Data Tables, Sheets and email. In the US, HHS's guidance names a third-party AI chatbot that handles appointment scheduling for a provider as an example of a business associate, so check HIPAA (or your local rules) and each vendor's terms first. The webhook doesn't verify Meta's request signature or the verify token.
- ReliabilityBookings are recognised only when the bot's own reply contains the exact Arabic confirmation phrase, and slot conflicts depend on the AI reading the slot list correctly. Have staff confirm bookings.
- CostThe every-minute sync means 1,440 executions a day before any messages; this may matter on plans that count executions.
- Modelgpt-4o-mini is listed for removal from OpenAI's API on Jan 14, 2027 (replacement gpt-6-luna), and whisper-1 on Feb 26, 2027 (replacements gpt-live-transcribe or gpt-transcribe), per OpenAI's deprecations page.
How to adapt it
- Translate the prompts, the confirmation phrases and the transcription language to your patients' language.
- Book into Google Calendar or your practice software instead of Data Tables.
- Sync to Sheets hourly, or only when something changes.
- Drop media handling at first and support text only.
Sources we checked
- Source template: n8n.io workflow 11605 checked
- Template JSON via n8n templates API checked
- Meta WhatsApp Cloud API: webhooks checked
- HHS: Business associates (HIPAA) checked
- OpenAI API deprecations checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.