Demo Scenario

Clinic booking bot

Free slots from the clinic system, booking, rescheduling and reminders with an SMS fallback.

This is a demo scenario: how we would build the solution. Names and data are illustrative — it is not a specific client’s story.

01Task

Task

Let patients book any time and reduce no-shows without loading the front desk.

Constraints

  • Doctors’ schedules live in the clinic information system; two patients must never take the same slot.
  • Some patients don’t read Telegram notifications.
02Solution

Solution

  1. 01

    Slots are read from the clinic system at selection time; booking locks the slot and confirms it.

  2. 02

    Reminders a day and two hours before; if undelivered — SMS.

  3. 03

    Reschedule or cancel in two taps; the freed slot is available to others at once.

03Architecture

Architecture

Architecture: Clinic booking bot
  1. Patient → Booking bot
  2. Booking bot → Booking service
  3. Booking service → Clinic system · schedule, Reminder queue
  4. Clinic system · schedule
  5. Reminder queue → SMS gateway
  6. SMS gateway
Integrations
Clinic information system · SMS gateway
Stack
Node.js · TypeScript · PostgreSQL · BullMQ · Telegram Bot API
04What it demonstrates

What it demonstrates

Demonstrates: working with an external schedule without double booking, reminder queues and a fallback delivery channel.