Case studies 04 · Online booking
Case study · demo project
Visitors book a free time straight into the clinic's calendar and CRM.
Built so people can book at any hour without a phone call, the front desk doesn't type each booking in twice, and nothing is emailed to an address someone mistyped.
Demo build · sample clinic · sample data
01 / 08
The problem
When a clinic's website only offers "send us a message", someone who wants to book at night has to wait for office hours. Whoever takes the booking then checks the diary, types it into the calendar and types it again into the CRM. Two copies drift: a name spelt two ways, a booking that never reached the CRM.
Calendar invites add a risk of their own. An invite sent to a mistyped address gives a stranger a patient's appointment.
02 / 08
The workflow
The booking window on the clinic's site asks for a treatment, a practitioner, a time and the visitor's details. To show times, it asks the n8n workflow for 7 days of availability. n8n reads the calendar's free/busy times and returns free start times on a 30-minute grid, inside opening hours, where the whole treatment fits before closing.
On Confirm, the window posts the booking. n8n checks the time is still free, creates the calendar event, saves the contact in HubSpot with a booking note, and replies with each step's time, which the window plays back as a step log. The steps run one after another, in the order below.
-
01
n8n –
Webhook · booking → Normalise request → Route by action
→ POST /webhook/holloway-booking · create_booking · booking id HSL-1813
-
02
google-calendar 337 ms
Calendar · free/busy (booking) → Check slot → Slot free?
→ 11:00 on Fri 27 Nov is still free · yes
-
03
google-calendar 719 ms
Calendar · create event → After event
→ event in the private demo calendar · no guests · send updates: none
-
04
hubspot 1,465 ms
CRM route → HubSpot contact → CRM · contact id → HubSpot · booking note
→ contact saved, with a note: booking id, treatment, time, practitioner
-
05
n8n –
Build booking reply → Reply
→ ok: true, the booking, a sentence to read out, and each step's time
The request · test
check_availability for Friday 27 November
Sent by curl, 25 Nov 2026
The answer · spoken line
On Friday the 27th I have 9 am, 12 pm, 3:30 or 6:30 pm.
20 free slots · calendar free/busy 336 ms
The request · test
create_booking for 10:00 on Friday 27 November, a slot already booked, sent the way the voice agent would send it
Sent by curl, 25 Nov 2026
The answer · spoken line
Sorry, 10 am on Friday the 27th isn't free. I can do 9 am, 9:30 or 10:30 am instead.
ok: false · reason "slot_taken" · alternatives 09:00, 09:30, 10:30
03 / 08
The tools
- n8n
- Answers both requests, availability and booking, and holds every credential
- n8n Cloud · 22 nodes: Webhook, Code, Switch, IF, Google Calendar, HubSpot, HTTP Request, Telegram (off), Respond to Webhook · time zone America/New_York
- Google Calendar
- The clinic's diary: free/busy times, and the booking as an event
- A private "Holloway demo" calendar (America/New_York) · credential "Google Calendar (Holloway demo)", OAuth2
- HubSpot
- Finds or creates the contact, by email or by phone, and adds the booking note
- Free CRM · credential "HubSpot (Holloway demo)", the same as the lead flow · notes through the v3 notes API
- Telegram
- An optional alert to the owner for each booking
- Off in the file · when on, the owner's chat only
- The booking window
- Treatment, practitioner, time and details, then the step log and the confirmation, with an "Add to calendar" file
- Plain JavaScript, no build step · booking.js, booking.css · 15 s timeout
04 / 08
What's real and what's sample
Real
built- The workflow, running on n8n Cloud since 25 Nov 2026
- The free times in the booking window, read from the demo calendar each time; the window says "Live calendar" and how long the check took
- The calendar events and HubSpot contacts each booking creates, and the step times, measured by n8n
- The re-check that turns a taken slot into "slot_taken" with alternatives
Sample
sample- The clinic, Holloway Skin & Laser: a sample clinic with made-up treatments, practitioners and hours
- The calendar and the HubSpot account: demo accounts that hold only test bookings and test contacts
- The bookings: test runs with invented names. The test events and contacts were deleted afterwards
- The fallback: if the workflow doesn't answer, the window shows "Sample availability" and a confirm says "Sample replay · nothing was booked", with fixed step times that aren't measured
- Live tests
- 25 Nov 2026, by curl: availability for Fri 27 Nov returned 20 free slots. A booking at 10:00 came back ok as HSL-5935 (free/busy 292 ms, event 675 ms, 4.4 s round trip), with the CRM step failing (below). The same slot again returned "slot_taken" with three alternatives. After the fix, a booking at 11:00 had all five steps ok in 5.5 s. On the live clinic page, the booking window read the calendar in 328 to 361 ms.
- Built for, not live yet
- The voice agent (Retell) is meant to call this same webhook from its own server, for its two tools. The workflow already accepts that request shape and returns a sentence to read out, but the agent isn't connected yet. The owner alert is off.
- Not measured yet
- What it would change for a clinic: bookings made without staff, time from opening the window to a confirmed booking, retyping time saved per week, how often two people try for the same slot. Those need a real clinic's bookings, not test runs.
05 / 08
What broke, and the fix
The first test booking on 25 Nov came back ok, with one step marked "crm: error". The event was in the calendar, but the booking note had failed: n8n's HubSpot node no longer offers "note" as an engagement type, so the step in the file couldn't run as written.
The booking still completed. The HubSpot steps are set to continue on error, so a CRM problem never costs the visitor their booking, and the response says which step failed.
A second thing needed fixing on import. n8n set the workflow's time zone to the account's default, Asia/Singapore, instead of America/New_York from the file. Opening hours and slot times depend on that setting, so it was set back by hand.
- The fix
- The note step is now an HTTP Request to HubSpot's v3 notes API, linked to the contact (association type 202). The next test booking had all five steps ok.
- Worth knowing
- Check the time zone after any import. The workflow setting and the zone in the Code nodes have to match.
06 / 08
The limits
- It's a proof of concept. Only test bookings have gone through it.
- The webhook only takes browser calls from the site's own domains, but a script can still post to it: anyone with the address can read free times and create bookings. There's no rate limit, and the voice agent's request signature isn't checked. That's why the demo uses its own calendar.
- One calendar for all three practitioners: a booking blocks the slot for everyone. There are no rooms or separate diaries.
- Two bookings in the same second could both pass the re-check; there's no lock.
- It doesn't change or cancel bookings. The team does that in Google Calendar.
- HubSpot matches a phone number exactly as stored, so "+1 555…" and "555…" count as different people. An empty phone field on an email booking may clear a phone number saved earlier.
- The patch-test rule for a first laser treatment is written on the event, not enforced.
- The booking id is four random digits and isn't checked against earlier ones, so a repeat is possible.
- If a booking request fails or takes more than 15 seconds, the window falls back to the sample confirmation and says nothing was booked. A clinic's site would want a plain error message instead.
07 / 08
The handover
A clinic's team gets the workflow as a file to import into their own n8n, with a guide to set it up, a 2-minute test of three calls, and how to run it day to day. The calendar stays the diary: block time with a busy event and it stops being offered.
What the client gets
- SOP Setup, day to day, takeover and known limits demos/booking-workflow/SOP.md
- Runbook Calendar down: availability says it can't see the diary and no booking is made. HubSpot down: the booking still lands in the calendar and the reply marks the CRM step as an error; add the contact from the event description SOP.md · How your team takes it over
- Walkthrough video A booking in the clinic's window, from treatment to confirmation, alongside the voice agent's call Script written, not recorded yet
- Workflow files The booking flow, with credentials as names only and the calendar id as a placeholder, plus the 2-minute test booking-workflow.json · README.md
- Accounts they need
- n8n (cloud or self-hosted) that the website can reach over HTTPS, a Google account that can edit a calendar kept for bookings, and the HubSpot key from the lead flow with its lead_source field. Telegram only if they want the owner alert.
- What they'd change
- Opening hours (one block, in "Build slots" and "Check slot"); treatment lengths and who does what (in "Normalise request" and the window's list); the 30-minute grid; the time zone, in the setting and the Code nodes together; the allowed web domains.
- Weekly owner
- One named person on the clinic's team, agreed at handover. Day to day: changes and cancellations in Google Calendar with a line on the HubSpot note, and a patch test arranged for each first laser booking. Each week: the n8n run list for errors, and a few new events and contacts.
08 / 08
Run the demo
Open the sample clinic's booking window and pick a treatment: the free times come from the demo calendar. A confirmed booking goes into the demo calendar and the demo CRM; nothing is emailed or texted to what you type. If the workflow doesn't answer, the window shows sample times and says so.