Traditional hospital appointment booking systems are often inefficient, time-consuming, and inaccessible for many patients. Patients frequently encounter long waiting times, busy phone lines, manual booking errors, and limited access to appointment information. Hospital staff spend significant time managing appointment requests, leading to increased operational workload and reduced efficiency.
Backend API: https://asha-voice-based-appointment-system.onrender.com
Swagger Docs: https://asha-voice-based-appointment-system.onrender.com/docs
- Long waiting times on calls and at reception desks
- Manual appointment booking prone to human errors
- Limited appointment availability information
- High dependency on hospital staff
- Lack of 24/7 support for patients
- Increased operational workload and cost
- Poor patient experience and satisfaction
The objective of ASHA is to build an AI-powered voice assistant that enables patients to:
- Book appointments through natural voice conversations
- Retrieve appointment information instantly
- Cancel appointments easily
- Check doctor availability in real-time
The system aims to reduce manual effort, improve accessibility, and provide a faster and more efficient appointment management experience.
ASHA is an AI-powered voice-based hospital appointment assistant built using Vapi, FastAPI, SQLAlchemy, and SQLite. The system allows patients to interact using voice commands while the backend handles appointment scheduling and database operations.
PATIENT
โ
โผ
Phone Call / Visit
โ
โผ
Reception Desk
โ
โผ
Manual Availability Check
โ
โผ
Manual Appointment Entry
โ
โผ
Hospital Database
โ
โผ
Appointment Confirmation
โ Long waiting times
โ Busy phone lines
โ Human errors
โ Limited working hours
โ High staff workload
โ Poor scalability
โโโโโโโโโโโโโโโโ
โ Patient โ
โโโโโโโโฌโโโโโโโโ
โ
Voice Conversation
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ASHA (VAPI) โ
โ Voice AI Assistant โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ
API Request
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FastAPI Backend โ
โ Business Logic & APIs โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ
SQLAlchemy ORM
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SQLite Database โ
โ Appointment Data โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. Patient Speaks
โ
โผ
2. ASHA (Voice Assistant)
โ
โผ
3. Understand User Intent
โ
โผ
4. Call FastAPI Endpoint
โ
โผ
5. Backend Processes Request
โ
โผ
6. SQLite Database Operation
โ
โผ
7. JSON Response Generated
โ
โผ
8. ASHA Converts Response to Voice
โ
โผ
9. Patient Receives Response
- ๐๏ธ Voice-Based Appointment Booking
- ๐ Appointment Retrieval
- โ Appointment Cancellation
- ๐ Availability Checking
- ๐ค Conversational AI Experience
- โก Real-Time API Integration
- ๐๏ธ Persistent Appointment Storage
- ๐ Public API Access using ngrok
- ๐ Automated Appointment Management
| Method | Endpoint | Description |
|---|---|---|
| POST | /book | Book Appointment |
| GET | /list_appointments | Retrieve Appointments |
| GET | /availability | Check Availability |
| POST | /cancel | Cancel Appointment |
| Field | Type |
|---|---|
| id | Integer |
| patient_name | String |
| reason | String |
| start_time | DateTime |
| canceled | Boolean |
| created_at | DateTime |
- FastAPI
- SQLAlchemy
- Pydantic
- Uvicorn
- SQLite
- Vapi
- Python
- ngrok
- Git
- GitHub
ASHA-Voice-Based-Appointment-System/
โโโ backend.py
โโโ database.py
โโโ main.py
โโโ schemas.py
โโโ appointment_db.db
โโโ requirements.txt
โโโ README.md
โโโ .gitignoregit clone https://github.com/ananyag309/ASHA-Voice-Based-Appointment-System.git
cd ASHA-Voice-Based-Appointment-Systempip install -r requirements.txtuvicorn main:app --reloadhttp://localhost:8000/docs
Patient: I want to book an appointment tomorrow.
ASHA: Sure. May I know your name?
Patient: Ananya Gupta.
ASHA: What is the reason for your visit?
Patient: General Checkup.
ASHA: Your appointment has been successfully booked.
|
|
|
|
- Faster appointment booking
- No waiting on calls
- 24/7 assistance
- Better user experience
- Reduced staff workload
- Fewer manual errors
- Improved operational efficiency
- Scalable appointment management
- SMS Notifications
- WhatsApp Reminders
- Email Confirmations
- PostgreSQL Integration
- Streamlit Admin Dashboard
- Doctor-wise Scheduling
- Multi-language Support
- Symptom Collection Agent
- Cloud Deployment on Render
B.Tech Computer Science Engineering
Bennett University
GitHub: https://github.com/ananyag309
โญ If you found this project useful, consider starring the repository.





