Project overview
A conversational booking service for doctor appointments: pick a hospital, see who is free and when, and book, move or cancel a slot, with an SMS reminder before the appointment.
Booking a doctor usually means a phone call during working hours or a form that asks for everything at once. This is the same task as a conversation: pick a hospital, see which doctors work there and when, choose a slot. Behind the chat window sits a Flask API with five endpoints covering the three things a patient actually wants, which are to book, to move a booking, and to cancel one.
The data model is a small relational one rather than a hardcoded list: hospitals, doctors and appointments as three tables, with each doctor keyed back to a hospital and carrying their specialty and available days and times, so the lookup is a real query. A scheduler thread runs alongside the server and sweeps for appointments coming up, sending a reminder through Twilio and marking the row so the same reminder never fires twice.
Project gallery
Click any image to enlarge.
