# namburivivek/voice-enabled-banking-assistant architecture

> Architecture diagram of the GitHub repository namburivivek/voice-enabled-banking-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/namburivivek/voice-enabled-banking-assistant
- Repository: https://github.com/namburivivek/voice-enabled-banking-assistant

## Overview

VoxaBank is a voice-first banking application with a React client and FastAPI backend. The main user journey runs from typed or spoken input through the voice API and dialog/AI handling to banking actions or RBI-grounded guidance, then returns a response; the client also supports account authentication and dashboard banking. The README documents broader capabilities such as transfers, cards, bill payments, analytics, and speech input/output. Some internal AI and dashboard connections are documented but their source was not sampled, so those links cite the README rather than implying inspected implementation details.

Main entry points: [`backend/routers/voice.py`](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/voice.py) (Voice chat API), [`frontend/src/App.jsx`](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/App.jsx) (Application shell), [`backend/main.py`](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/main.py) (FastAPI application), [`backend/ai/assistant.py`](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/assistant.py) (Dialog assistant)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client experience"]
  node_app["Application shell<br/>[App.jsx]"]
  node_auth_ui["Authentication screen<br/>[Auth.jsx]"]
  node_auth_state["Session state<br/>[AuthContext.jsx]"]
  node_dashboard["Banking dashboard<br/>[Dashboard.jsx]"]
  node_api_client["HTTP client<br/>[api.js]"]
  node_brand_logo["Voxa logo<br/>[VoxaLogo.jsx]"]
  node_flap_text["Split-flap display<br/>[SplitFlapText.jsx]"]
  node_logo_loop["Logo loop<br/>[LogoLoop.jsx]"]
end

subgraph group_api["API and identity"]
  node_backend_app["FastAPI application<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_security["Token and password security<br/>[security.py]"]
end

subgraph group_voice["Voice intelligence"]
  node_voice_routes["Voice chat API<br/>[voice.py]"]
  node_assistant["Dialog assistant<br/>[assistant.py]"]
  node_nlu["Intent and slot parsing<br/>[nlu.py]"]
  node_rag["RBI guidance retrieval<br/>[rag.py]"]
  node_biometrics["Voice biometrics"]
end

subgraph group_banking["Banking services"]
  node_bank_routes["Banking routes<br/>[banking.py]"]
  node_bank_engine["Dialog and banking engine<br/>[banking.py]"]
  node_bank_common["Banking shared logic<br/>[common.py]"]
  node_db_client["Database client<br/>[database.py]"]
end

node_customer(("Customer"))
node_supabase[("Supabase database")]
node_speech["Browser speech services"]

node_customer -->|"uses"| node_app
node_app -->|"renders"| node_auth_ui
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_brand_logo
node_app -->|"renders"| node_flap_text
node_app -->|"renders"| node_logo_loop
node_auth_ui -->|"uses"| node_auth_state
node_auth_state -->|"calls"| node_api_client
node_api_client -.->|"sends requests"| node_backend_app
node_backend_app -->|"mounts"| node_auth_routes
node_backend_app -->|"mounts"| node_bank_routes
node_backend_app -->|"mounts"| node_voice_routes
node_auth_routes -->|"uses"| node_security
node_auth_routes -->|"queries"| node_db_client
node_db_client -.->|"connects"| node_supabase
node_dashboard -.->|"requests banking actions"| node_bank_routes
node_customer -->|"speaks or listens"| node_speech
node_speech -.->|"submits query"| node_voice_routes
node_voice_routes -->|"invokes"| node_assistant
node_voice_routes -->|"builds banking context"| node_bank_engine
node_voice_routes -->|"verifies speaker"| node_biometrics
node_voice_routes -->|"reads account state"| node_db_client
node_assistant -->|"classifies utterance"| node_nlu
node_assistant -->|"dispatches banking intent"| node_bank_engine
node_assistant -->|"retrieves regulations"| node_rag
node_bank_engine -->|"uses shared logic"| node_bank_common
node_bank_engine -->|"accesses ledger"| node_db_client
node_voice_routes -.->|"returns response"| node_customer

click node_app "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/App.jsx"
click node_auth_ui "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/Auth.jsx"
click node_auth_state "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/AuthContext.jsx"
click node_dashboard "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/Dashboard.jsx"
click node_api_client "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/api.js"
click node_brand_logo "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/components/VoxaLogo.jsx"
click node_flap_text "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/components/SplitFlapText.jsx"
click node_logo_loop "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/components/LogoLoop.jsx"
click node_backend_app "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/main.py"
click node_auth_routes "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/auth.py"
click node_security "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/security.py"
click node_voice_routes "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/voice.py"
click node_assistant "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/assistant.py"
click node_nlu "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/nlu.py"
click node_rag "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/rag.py"
click node_biometrics "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/voice_biometrics.py"
click node_bank_routes "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/banking.py"
click node_bank_engine "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/banking.py"
click node_bank_common "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/common.py"
click node_db_client "https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/database.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_auth_ui,node_auth_state,node_dashboard,node_api_client,node_brand_logo,node_flap_text,node_logo_loop,node_speech toneBlue
class node_backend_app,node_auth_routes,node_security,node_supabase toneAmber
class node_voice_routes,node_assistant,node_nlu,node_rag,node_biometrics toneMint
class node_bank_routes,node_bank_engine,node_bank_common,node_db_client toneRose
class node_customer toneIndigo
```

## Components

### Client experience

- [Application shell](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Authentication screen](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/Auth.jsx): `frontend/src/Auth.jsx`
- [Session state](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/AuthContext.jsx): `frontend/src/AuthContext.jsx`
- [Banking dashboard](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/Dashboard.jsx): `frontend/src/Dashboard.jsx`
- [HTTP client](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/api.js): `frontend/src/api.js`
- [Voxa logo](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/components/VoxaLogo.jsx): `frontend/src/components/VoxaLogo.jsx`
- [Split-flap display](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/components/SplitFlapText.jsx): `frontend/src/components/SplitFlapText.jsx`
- [Logo loop](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/frontend/src/components/LogoLoop.jsx): `frontend/src/components/LogoLoop.jsx`

### API and identity

- [FastAPI application](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/main.py): `backend/main.py`
- [Authentication routes](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/auth.py): `backend/routers/auth.py`
- [Token and password security](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/security.py): `backend/security.py`

### Voice intelligence

- [Voice chat API](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/voice.py): `backend/routers/voice.py`
- [Dialog assistant](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/assistant.py): `backend/ai/assistant.py`
- [Intent and slot parsing](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/nlu.py): `backend/ai/nlu.py`
- [RBI guidance retrieval](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/rag.py): `backend/ai/rag.py`
- [Voice biometrics](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/voice_biometrics.py): `backend/ai/voice_biometrics.py`

### Banking services

- [Banking routes](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/routers/banking.py): `backend/routers/banking.py`
- [Dialog and banking engine](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/banking.py): `backend/ai/banking.py`
- [Banking shared logic](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/ai/common.py): `backend/ai/common.py`
- [Database client](https://github.com/namburivivek/voice-enabled-banking-assistant/blob/main/backend/database.py): `backend/database.py`

### Other components

- **Customer**
- **Supabase database**
- **Browser speech services**

## Connections

- Customer → Application shell: uses
- Application shell → Authentication screen: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Banking dashboard: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Voxa logo: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Split-flap display: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Logo loop: renders (evidence: `frontend/src/App.jsx`)
- Authentication screen → Session state: uses (evidence: `frontend/src/Auth.jsx`)
- Session state → HTTP client: calls (evidence: `frontend/src/AuthContext.jsx`)
- HTTP client → FastAPI application: sends requests
- FastAPI application → Authentication routes: mounts (evidence: `backend/main.py`)
- FastAPI application → Banking routes: mounts (evidence: `backend/main.py`)
- FastAPI application → Voice chat API: mounts (evidence: `backend/main.py`)
- Authentication routes → Token and password security: uses (evidence: `backend/routers/auth.py`)
- Authentication routes → Database client: queries (evidence: `backend/routers/auth.py`)
- Database client → Supabase database: connects
- Banking dashboard → Banking routes: requests banking actions
- Customer → Browser speech services: speaks or listens
- Browser speech services → Voice chat API: submits query
- Voice chat API → Dialog assistant: invokes (evidence: `backend/routers/voice.py`)
- Voice chat API → Dialog and banking engine: builds banking context (evidence: `backend/routers/voice.py`)
- Voice chat API → Voice biometrics: verifies speaker (evidence: `backend/routers/voice.py`)
- Voice chat API → Database client: reads account state (evidence: `backend/routers/voice.py`)
- Dialog assistant → Intent and slot parsing: classifies utterance
- Dialog assistant → Dialog and banking engine: dispatches banking intent
- Dialog assistant → RBI guidance retrieval: retrieves regulations
- Dialog and banking engine → Banking shared logic: uses shared logic (evidence: `backend/ai/banking.py`)
- Dialog and banking engine → Database client: accesses ledger (evidence: `backend/ai/banking.py`)
- Voice chat API → Customer: returns response
