How yar-malik/saudi-insurance-voice-agent works
This is a self-hostable Saudi insurance voice-agent example: scripted Najdi Arabic conversations for first notice of loss, claim status, and renewals, with recorded tool results until real integrations are registered. On the phone path, Twilio supplies speech transcripts to the Flask server; the server drives the conversation engine, which loads scenario flows and invokes tools, while Voho synthesizes spoken replies. The README also documents speech demos and optional STT and insurer-system integration points. Evidence is limited to the README and sampled Python files; the example clients and flow data were not inspected.
Main entry points: server.py Phone webhook · agent.py Conversation engine · tools.py Tool registry and replay · voho.py Speech API client
Components 14
Phone interface
- Phone webhook
server.py - Audio clip delivery
server.py
Conversation runtime
- Conversation engine
agent.py
Speech and integrations
- Speech recognition options
stt.py - Tool registry and replay
tools.py - Speech API client
voho.py - Python speech demo
examples/python/main.py - Node speech demo
examples/node/index.mjs
Insurance scenarios
- Insurance scenario catalog
flows.json - Scenario playback
examples/play.py
Other components
- Caller
- Twilio telephony
- Voho Speech API
- Insurer systems
Connections 16
- Caller → Twilio telephony: calls
README.md - Twilio telephony → Phone webhook: posts speech
README.md - Phone webhook → Conversation engine: starts and replies
server.py - Conversation engine → Insurance scenario catalog: loads scenarios
agent.py - Conversation engine → Tool registry and replay: runs tools
agent.py - Phone webhook → Tool registry and replay: lists stubs
server.py - Phone webhook → Speech API client: synthesizes replies
server.py - Speech API client → Voho Speech API: requests speech
voho.py - Phone webhook → Audio clip delivery: serves audio
server.py - Audio clip delivery → Twilio telephony: plays audio
server.py - Twilio telephony → Caller: plays replies
README.md - Speech recognition options → Phone webhook: optional recognition
README.md - Tool registry and replay → Insurer systems: custom actions
README.md - Python speech demo → Voho Speech API: speaks or replies
README.md - Node speech demo → Voho Speech API: speaks or replies
README.md - Scenario playback → Insurance scenario catalog: plays scenarios
README.md