Skip to main content
When a doctor won’t come on a day, one call does everything:
  • closes the day in Docistra, so nobody (the AI agent, the booking page, reception) can book it
  • cancels every reserved booking that day
  • messages each patient on WhatsApp from the clinic’s own number: a normal message when the patient wrote in the last 23 hours, otherwise Docistra’s approved appointment_cancelled template. When WhatsApp can’t reach them, an SMS
  • tells the patients on the waiting list that places opened, and rings the clinic’s staff once

Options

Good to know

  • Paid visits are never cancelled automatically. They come back in not_cancelled with paid_locked, for reception to handle.
  • patient_notified.via is null with a reason when a patient couldn’t be messaged: no_phone, consent (they declined messages), test_org (the clinic is still in test mode in Docistra), no_channel.
  • Calling it again for the same day is safe: the day stays closed, and bookings already cancelled are skipped.
  • To reopen the day: DELETE /doctors/{id}/days/{date}/off. Bookings cancelled by the day off stay cancelled.
  • Running late instead of absent? Use POST /doctors/{id}/delay with minutes: every visit still ahead that day moves later and each patient is told the new time.
  • If the clinic closes a day in Docistra itself, you get a doctor.day_off webhook, plus appointment.cancelled for each booking reception cancels.