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
Problem

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.

Architecture

How the workflows fit together

  1. 01Booking request
  2. 02Validate date, weekday, hours (Europe/Helsinki)
  3. 03Store in n8n Data Tables
  4. 04PostgreSQL atomic slot reservation
  5. 05Google Calendar check
  6. 06Private demo calendar event
  7. 07Status update
  8. 08Gmail confirmation or rejection

Reminder workflow

  1. 01Scheduled reminder run
  2. 0224-hour and 2-hour windows
  3. 03PostgreSQL unique delivery claim
  4. 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
Video

Watch the narrated demo

Edited narrated demo (3:29) cut from an authentic combined OBS recording. Shows the booking architecture, a validated acceptance and rejection, and a synthetic Google Calendar event. Fictional clinic with synthetic data; reminder and fault-injection testing are covered separately in the evidence table.
Watch North Harbour Clinic demo (3:29) on GitHub (opens in a new tab)
Evidence

Recorded test executions

Recorded n8n test executions
ExecutionTestRecorded result
#400 vs #401Successful booking, then same-slot rejectionSecond request rejected
#409 / #410Concurrent collision on one slotExactly one calendar event created
#404Reminder deliveryReminder sent
#406Repeat reminder runDuplicate suppressed
#408Manual recovery auditNo open issues in that test
#419 / #420Recorded walkthrough booking and rejectionVerified with Google Calendar check
Limitations

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
Source

Inspect the full case study