AI Voice Agent is a conversational AI system designed to simulate a hospital receptionist.
Users can interact using voice or text to schedule doctor appointments through a natural conversation.
The system collects patient details step-by-step, confirms the appointment, and stores the booking in a backend database. An admin dashboard allows real-time viewing and management of appointments.
| Conversation Interface | Admin Dashboard |
|---|---|
![]() |
![]() |
| Component | Technology |
|---|---|
| Frontend | |
| Backend | |
| Language | |
| Database | |
| LLM Provider | |
| Speech-to-Text | Whisper |
| Text-to-Speech | Edge TTS |
The AI agent collects appointment details in a natural dialogue format.
Speech input is converted to text and processed by the AI agent.
Appointments are stored and displayed instantly in the admin interface.
The agent verifies appointment availability before booking.
If a user provides an existing phone number, the system updates the appointment instead of creating duplicates.
Administrators can view and manage confirmed appointments.
User Voice / Text
│
▼
Frontend (React)
│
▼
FastAPI Backend
│
▼
Groq LLM Reasoning
│
▼
Appointment Processing
│
▼
SQLite Database
│
▼
Admin DashboardHospital-Voice-Agent
│
├── backend
│ ├── agent
│ │ ├── llm_engine.py
│ │ └── workflow.py
│ │
│ ├── voice
│ │ └── engines.py
│ │
│ ├── tools
│ │ └── appointment_tools.py
│ │
│ └── main.py
│
├── src
│ ├── App.tsx
│ └── main.tsx
│
├── hospital.db
├── requirements.txt
├── package.json
├── server.ts
└── README.mdgit clone https://github.com/yourusername/ai-voice-agent.git
cd ai-voice-agentpython -m venv venvWindows - venv\Scripts\activate
Mac/Linux - source venv\Scripts\activatepip install -r requirements.txtnpm installCreate .env file in root:
GROQ_API_KEY=your_api_key_hereuvicorn backend.main:app --reload --port 3000Backend Runs at
http://localhost:3000
http://localhost:3000/docsnpm run dev
opens at http://localhost:5173Arshath Farwyz | AI/ML Engineer
pip install -r requirements.txt
Last updated: 2026-08-13


