How yar-malik/saudi-home-services-voice-agent works
This repository is a Saudi home-services voice-agent example: callers move through scripted scenarios, scenario tools produce business actions or replay recorded outcomes, and Voho supplies speech. The README documents booking, slot filling, technician routing, and two reference scenarios. The phone server and core Python modules were sampled; scenario data and example clients are represented from README claims, not inspected source. The documented container and tool-stub server are described as separately published, so they are not treated as implemented here.
Main entry points: agent.py Scenario engine · flows.json Scenario definitions · server.py Phone webhook · tools.py Tool registry
Components 17
Conversation runtime
- Scenario engine
agent.py
Service scenarios
- Scenario definitions
flows.json - Job booking
flows.json - Slot filling
flows.json - Technician routing
flows.json - Technician report
flows.json - Warranty capture
flows.json
Tools and integrations
- Tool registry
tools.py
Voice interfaces
- Phone webhook
server.py - Voho speech client
voho.py - Speech recognition options
stt.py - Python quick start
examples/python/main.py - Node quick start
examples/node/index.mjs
Other components
- Caller
- Twilio phone
- Business systems
- Voho Speech API
Connections 16
- Caller → Twilio phone: calls
README.md - Twilio phone → Phone webhook: posts speech turns
README.md - Phone webhook → Scenario engine: starts and replies
server.py - Scenario engine → Scenario definitions: loads scenarios
agent.py - Scenario engine → Tool registry: calls tools
agent.py - Scenario engine → Job booking: runs scenario
README.md - Scenario engine → Slot filling: runs scenario
README.md - Scenario engine → Technician routing: runs scenario
README.md - Scenario definitions → Technician report: documents scenario
README.md - Scenario definitions → Warranty capture: documents scenario
README.md - Tool registry → Business systems: can invoke
README.md - Phone webhook → Voho speech client: synthesizes replies
server.py - Voho speech client → Voho Speech API: requests speech
voho.py - Twilio phone → Speech recognition options: alternative recognition
README.md - Python quick start → Voho Speech API: requests speech
README.md - Node quick start → Voho Speech API: requests speech
README.md