How vnkrthk08/ai-banking-agent works
KURAL AVA is a banking voice-assistance and operations platform. A customer speaks through the voice channel; the voice orchestrator coordinates speech recognition and the deterministic conversation engine, which screens sensitive input, interprets intent, selects approved responses, and records conversation state. Operational APIs expose call, case, callback, campaign, and reporting capabilities to a role-aware dashboard. The graph includes the major documented product areas; source excerpts are incomplete, so some dashboard-to-backend and provider wiring is intentionally omitted where direct evidence was unavailable.
Main entry points: engine.py Conversation FSM · api_operations.py Operations API · database.py Database · api.py Conversation API
Components 28
Channels and API
- Conversation API
kural/api.py - Operations API
kural/api_operations.py - Voice Orchestrator
kural/voice/orchestrator.py
Conversation Decisioning
- Conversation FSM
kural/conversation/engine.py - Conversation Session
kural/conversation/session.py - Intent Classifier
kural/nlu/classifier.py - AI and Speech Providers
kural/providers - Safety Policy
kural/policy/safety.py - Transcript Privacy
kural/privacy/transcript.py - Approved Knowledge
kural/knowledge
Banking Operations
- Case Management
kural/services/case_service.py - Callback Scheduling
kural/services/callback_service.py - Customer Registry
kural/services/customer_service.py - Campaign Management
kural/services/campaign_service.py - Call Operations
kural/services/call_service.py - Reports and Recording
kural/services/report_service.py
Persistence and Audit
- Database
kural/persistence/database.py - Conversation Repository
kural/persistence/repository.py - Operational Tables
kural/persistence/models.py - Audit Events
kural/audit/events.py
Operations Dashboard
- Dashboard Application
frontend/src/App.tsx - Dashboard State
frontend/src/hooks/DashboardContext.tsx - Dashboard API Client
frontend/src/services/dashboardApi.ts - Operations Workspaces
frontend/src/pages - Browser Speech Input
frontend/src/providers/BrowserSTTProvider.ts - Browser Speech Output
frontend/src/providers/BrowserTTSProvider.ts
Other components
- Customer
- Browser Voice
Connections 35
- Customer → Browser Voice: speaks to
README.md - Browser Voice → Voice Orchestrator: streams audio
README.md - Conversation API → Voice Orchestrator: routes voice
kural/api.py - Voice Orchestrator → Conversation FSM: submits turns
kural/voice/orchestrator.py - Voice Orchestrator → AI and Speech Providers: uses speech contracts
kural/voice/orchestrator.py - Conversation FSM → Safety Policy: screens input
kural/conversation/engine.py - Conversation FSM → Transcript Privacy: sanitizes transcript
kural/conversation/engine.py - Conversation FSM → Intent Classifier: proposes intent
- Intent Classifier → AI and Speech Providers: requests classification
kural/nlu/classifier.py - Conversation FSM → Approved Knowledge: retrieves response
kural/conversation/engine.py - Conversation FSM → Conversation Session: updates conversation
kural/conversation/engine.py - Conversation API → Conversation FSM: processes turns
kural/api.py - Conversation FSM → Conversation Repository: persists turn
kural/conversation/engine.py - Conversation API → Conversation Repository: reads sessions
kural/api.py - Conversation API → Case Management: routes case actions
kural/api.py - Conversation API → Callback Scheduling: routes callbacks
kural/api.py - Operations API → Call Operations: serves call operations
kural/api_operations.py - Operations API → Case Management: serves cases
kural/api_operations.py - Operations API → Callback Scheduling: serves callbacks
kural/api_operations.py - Operations API → Campaign Management: serves campaigns
kural/api_operations.py - Operations API → Customer Registry: serves customers
kural/api_operations.py - Operations API → Reports and Recording: serves reports
kural/api_operations.py - Case Management → Database: reads and writes
kural/services/case_service.py - Callback Scheduling → Database: reads and writes
kural/services/callback_service.py - Campaign Management → Customer Registry: checks customer status
kural/services/campaign_service.py - Campaign Management → Database: reads and writes
kural/services/campaign_service.py - Customer Registry → Database: reads and writes
kural/services/customer_service.py - Conversation Repository → Database: opens sessions
kural/persistence/repository.py - Conversation Repository → Operational Tables: maps records
kural/persistence/repository.py - Database → Operational Tables: stores records
kural/persistence/database.py - Dashboard Application → Dashboard State: provides dashboard state
frontend/src/App.tsx - Dashboard Application → Operations Workspaces: routes workspaces
frontend/src/App.tsx - Dashboard State → Dashboard API Client: loads dashboard data
frontend/src/hooks/DashboardContext.tsx - Dashboard Application → Browser Speech Input: offers voice input
- Dashboard Application → Browser Speech Output: offers voice output