Case studyTested demo / fictional clinic
North Harbour Clinic appointment booking automation
Tested fictional healthcare portfolio implementation. Not a real clinic or production client deployment. No real patients, names or personal data are shown.
n8nPostgreSQLGoogle CalendarGmailn8n Data Tables
No double bookings, no duplicate reminders
Appointment requests must never double-book a slot, must respect clinic hours, and reminders must not be sent twice, even when requests arrive at the same moment or a workflow is retried.
How the workflows fit together
- 01Booking request
- 02Validate date, weekday, hours (Europe/Helsinki)
- 03Store in n8n Data Tables
- 04PostgreSQL atomic slot reservation
- 05Google Calendar check
- 06Private demo calendar event
- 07Status update
- 08Gmail confirmation or rejection
Reminder workflow
- 01Scheduled reminder run
- 0224-hour and 2-hour windows
- 03PostgreSQL unique delivery claim
- 04Gmail reminder or suppressed duplicate
- Booking workflow validates a future date, a weekday and clinic hours in Europe/Helsinki before anything is stored
- Requests are stored in n8n Data Tables; PostgreSQL then claims the half-hour slot with a unique constraint, so only one reservation can win
- Google Calendar is checked, and a private demo calendar event is created only for an available slot
- Status is updated and Gmail sends a confirmation or a rejection
- A separate reminder workflow sends 24-hour and 2-hour reminders, using PostgreSQL unique delivery claims to suppress duplicates
- A manual recovery audit highlights unfinished reservations or uncertain email outcomes
Watch the narrated demo
Recorded test executions
| Execution | Test | Recorded result |
|---|---|---|
| #400 vs #401 | Successful booking, then same-slot rejection | Second request rejected |
| #409 / #410 | Concurrent collision on one slot | Exactly one calendar event created |
| #404 | Reminder delivery | Reminder sent |
| #406 | Repeat reminder run | Duplicate suppressed |
| #408 | Manual recovery audit | No open issues in that test |
| #419 / #420 | Recorded walkthrough booking and rejection | Verified with Google Calendar check |
What is not yet proven
- Not exhaustively fault-injection tested for Gmail or Google Calendar failures
- Production patient-data controls and a comprehensive regulatory and security review are outstanding
- A voice receptionist was only drafted and is not proven end-to-end