Category: Automations › WhatsApp Appointments · Best for: Salons, clinics, tutors and consultants who book appointments over WhatsApp chat · Platform: n8n · Steps: 12
What it does
Customers message you on WhatsApp, tap a free time from a list of your real availability, and the appointment goes straight into your Google Calendar.
Booking by chat usually means back-and-forth about times. The bot offers only times that are really free, books the one they tap and confirms it.
Works with: WhatsApp, Google Calendar
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n. Other services need to reach your n8n, so a self-hosted n8n must be on a public HTTPS address. -
A WhatsApp Business Cloud API number from Meta (free to set up; Meta charges per conversation, see WhatsApp pricing). Your personal WhatsApp number can't be used.
-
These credentials in n8n (Credentials → Add credential):
- WhatsApp Business Cloud (
whatsAppApi): at developers.facebook.com make an app of type Business, add WhatsApp, then create a permanent access token for a system user in Business Settings. In n8n paste the token and your WhatsApp Business Account ID. n8n guide - WhatsApp (incoming messages) (
whatsAppTriggerApi): the App ID and App secret of the same Meta app (App settings → Basic). n8n uses it to hear replies. n8n guide - Google Calendar (
googleCalendarOAuth2Api): click Sign in with Google in n8n. n8n guide
- WhatsApp Business Cloud (
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or copy the file's contents and paste onto the empty canvas with Ctrl/Cmd + V. - Open each box with a red warning triangle and pick the matching credential from the list above.
- In every WhatsApp box, replace
YOUR_WHATSAPP_PHONE_NUMBER_IDwith your Phone number ID (WhatsApp Manager → API setup). - In Find free times, set
OPEN_HOUR,CLOSE_HOUR,SLOT_MINUTES,DAYS_AHEAD,CLOSED_WEEKDAYS(1 = Monday … 7 = Sunday) andTIME_ZONE. Set the sameSLOT_MINUTESandTIME_ZONEin Read the chosen time. - In Send the time list, replace
YOUR_WHATSAPP_PHONE_NUMBER_IDin the address with your Phone number ID.
Then click Save.
Test it
- Click Test workflow.
- From your personal WhatsApp, message your business number, tap a time and check your Google Calendar.
- Click each box to see its output. A green tick means the step worked. A red box is almost always a credential, a template name that doesn't match, or a number without its country code.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- New WhatsApp message hears every message to your business number.
- Picked a time? checks whether they tapped a time from the list.
- If not: Get the next few days reads your calendar, Find free times works out up to 10 free slots in your opening hours, and Send the time list sends them as a tap-to-pick list.
- If yes: Read the chosen time, then Still free? checks nobody took it meanwhile.
- Book it creates the event (with their WhatsApp number in the description) and Confirm the booking tells them; otherwise Sorry, just taken.
Good to know
- WhatsApp only lets a business message first with an approved template; replies within 24 hours of the customer's last message can be free text.
- Meta sends a WhatsApp number's incoming messages to one webhook at a time. If you run more than one workflow that starts with a WhatsApp trigger (COD replies, follow-up replies, the order bot, the booking bot, reminder replies), give each its own Meta app, or ask us how to merge them into one.
- The customer messages first, so the list and replies need no template.
- Pair it with our Appointment Reminders automation: bookings already carry the WhatsApp number it needs.