How yar-malik/saudi-travel-voice-agent works
This is a self-hostable Saudi Arabic travel and hospitality voice-agent example. Its phone workflow receives a Twilio call, runs a scripted scenario, uses recorded or registered tool results, synthesizes spoken replies with Voho, and returns audio for playback. The README also documents terminal examples and optional speech-recognition and hotel-system integrations. Scenario definitions identify booking, change/cancellation and concierge conversations, plus document-capture and disruption reference scenarios. Some integrations are documented rather than implemented here; edges below reflect the sampled source or explicit README statements.
Main entry points: server.py Phone webhook · agent.py Conversation engine · flows.json Scenario definitions · tools.py Tool dispatch
Components 15
Phone interaction
- Twilio voice
- Phone webhook
server.py - Temporary audio clips
server.py
Conversation engine
- Scenario definitions
flows.json - Conversation engine
agent.py - Booking, change, concierge
flows.json - Document, disruption
flows.json
Scenario actions
- Tool dispatch
tools.py - Tool implementations
tools.py - Hotel systems
Speech services
- Speech recognition
stt.py - STT providers
- Voho speech client
voho.py - Voho API
Other components
- Caller
Connections 16
- Caller → Twilio voice: calls
README.md - Twilio voice → Phone webhook: posts voice
README.md - Phone webhook → Conversation engine: starts, replies
server.py - Conversation engine → Scenario definitions: loads
agent.py - Booking, change, concierge → Scenario definitions: defined in
README.md - Document, disruption → Scenario definitions: recorded in
README.md - Conversation engine → Tool dispatch: calls tools
agent.py - Tool dispatch → Tool implementations: dispatches to
tools.py - Tool implementations → Hotel systems: can integrate
README.md - Twilio voice → Phone webhook: posts transcript
server.py - Phone webhook → Voho speech client: synthesizes replies
server.py - Voho speech client → Voho API: requests speech
voho.py - Phone webhook → Temporary audio clips: stores audio
server.py - Twilio voice → Phone webhook: fetches playback
server.py - Phone webhook → Speech recognition: optional transcription
README.md - Speech recognition → STT providers: selects provider
stt.py