How yar-malik/saudi-logistics-voice-agent works
This repository is a scripted Saudi logistics voice-agent example: scenario definitions drive a conversation, tool calls replay recorded outcomes or invoke registered implementations, and Voho supplies speech. The terminal examples are the documented quick-start path; an included Flask/Twilio server provides a phone-webhook path. The README also documents optional speech-recognition choices and reference scenarios. The examples and flow data were not excerpted, so their internal behavior and detailed scenario-to-tool mappings are not inferred here.
Main entry points: server.py Phone server · agent.py Conversation engine · stt.py Speech recognition options · voho.py Voho speech client
Components 13
Conversation workflow
- Conversation engine
agent.py
Logistics scenarios
- Scenario catalog
flows.json
Voice and tools
- Tool registry
tools.py - Voho speech client
voho.py - Speech recognition options
stt.py
Run channels
- Python example
examples/python/main.py - Node example
examples/node/index.mjs - Phone server
server.py
Other components
- Caller
- Twilio phone
- Voho Speech API
- OpenAI Whisper
- Custom recognizer
Connections 13
- Python example → Voho Speech API: requests speech
README.md - Node example → Voho Speech API: requests speech
README.md - Caller → Phone server: calls
README.md - Twilio phone → Phone server: posts webhook
server.py - Phone server → Conversation engine: starts and replies
server.py - Conversation engine → Scenario catalog: loads scenarios
agent.py - Conversation engine → Tool registry: runs tools
agent.py - Phone server → Tool registry: lists stubbed tools
server.py - Phone server → Voho speech client: synthesizes replies
server.py - Voho speech client → Voho Speech API: requests speech
voho.py - Phone server → Twilio phone: returns TwiML audio
server.py - Speech recognition options → OpenAI Whisper: transcribes audio
stt.py - Speech recognition options → Custom recognizer: posts audio
stt.py