How yar-malik/saudi-financial-services-voice-agent works
This is a self-hosted Saudi financial-services voice agent: it runs scripted Najdi Arabic conversations for onboarding, lead qualification, and account questions, with scenario-recorded tool results available until real integrations are registered. The phone workflow starts at Twilio, whose speech webhook reaches the Flask server; the server advances an Agent scenario, dispatches tools, synthesizes spoken turns with Voho, and returns audio for playback. Terminal examples and reference scenarios are documented capabilities too. The graph reflects sampled Python modules and README claims; unsampled scenario data and example implementations are represented only where their roles are documented.
Main entry points: server.py Phone Webhook · flows.json Scenario Flows · agent.py Conversation Agent · voho.py Voho Speech
Components 16
Ways to Run
- Phone Webhook
server.py - Terminal Runner
examples/play.py - Node Example
examples/node/index.mjs - Python Example
examples/python/main.py
Conversation Engine
- Conversation Agent
agent.py
Finance Scenarios
- Scenario Flows
flows.json - Client Onboarding
flows.json - Lead Qualification
flows.json - Statement Questions
flows.json - Reference Scenarios
flows.json
Voice and Tools
- Tool Registry
tools.py - Voho Speech
voho.py - STT Options
stt.py
Other components
- Caller
- Twilio Phone
- Voho Speech API
Connections 17
- Caller → Twilio Phone: calls
README.md - Twilio Phone → Phone Webhook: posts speech
README.md - Phone Webhook → Conversation Agent: starts and replies
server.py - Conversation Agent → Scenario Flows: loads flows
agent.py - Conversation Agent → Tool Registry: calls tools
agent.py - Phone Webhook → Tool Registry: lists stubbed tools
server.py - Phone Webhook → Voho Speech: synthesizes turns
server.py - Voho Speech → Voho Speech API: requests speech
voho.py - Phone Webhook → Twilio Phone: returns playback instructions
README.md - Terminal Runner → Conversation Agent: runs scenarios
README.md - Node Example → Voho Speech API: requests speech
README.md - Python Example → Voho Speech API: requests speech
README.md - Scenario Flows → Client Onboarding: defines
README.md - Scenario Flows → Lead Qualification: defines
README.md - Scenario Flows → Statement Questions: defines
README.md - Scenario Flows → Reference Scenarios: records
README.md - Caller → STT Options: audio input
README.md