How yar-malik/saudi-healthcare-voice-agent works
This repository is a self-hostable Saudi healthcare voice-agent example. Its primary phone workflow receives Twilio speech, runs a scripted scenario, dispatches recorded or replaceable tools, synthesizes the reply with Voho, and returns audio for playback. The README also documents booking, triage, reminders and reference workflows, plus optional speech-recognition and healthcare-system integration points. The map reflects sampled runtime code and explicit README claims; unsampled scenario details and example-client internals are not inferred.
Main entry points: flows.json Call scenarios · server.py Webhook server · agent.py Scenario agent · tools.py Tool registry
Components 16
Phone interface
- Webhook server
server.py - Audio clips
server.py
Conversation runtime
- Scenario agent
agent.py
Healthcare scenarios
- Call scenarios
flows.json - Booking
flows.json - Symptom triage
flows.json - Reminders
flows.json - Reference workflows
flows.json
Voice and systems
- Tool registry
tools.py - Voho speech client
voho.py - Speech recognition
stt.py
Other components
- Caller
- Twilio phone
- Clinic systems
- Voho API
- STT providers
Connections 15
- Caller → Twilio phone: calls
README.md - Twilio phone → Webhook server: posts speech
README.md - Webhook server → Scenario agent: starts and replies
server.py - Scenario agent → Call scenarios: loads scenarios
agent.py - Scenario agent → Tool registry: dispatches tools
agent.py - Webhook server → Voho speech client: synthesizes replies
server.py - Voho speech client → Voho API: requests speech
voho.py - Webhook server → Audio clips: stores audio
server.py - Twilio phone → Webhook server: fetches playback
server.py - Call scenarios → Booking: defines
README.md - Call scenarios → Symptom triage: defines
README.md - Call scenarios → Reminders: defines
README.md - Call scenarios → Reference workflows: records
README.md - Tool registry → Clinic systems: can integrate
README.md - Speech recognition → STT providers: transcribes with
stt.py