How vidhuson/ai-banking-copilot works
The product is a conversational layer over an existing banking API: a user submits a request in Streamlit, the FastAPI chat handler classifies it, performs supported backend operations, and turns returned data into a customer-facing response. Profile retrieval, profile updates, and account details are wired; statements and deposits are recognized as intents but are not integrated in the chat handler. The README describes broader backend and UI capabilities, but the sampled implementation does not show them. Edges reflect shown calls or documented relationships; no database access by this app is shown.
Main entry points: main.py Chat API · intent_engine.py Intent engine · app.py Streamlit UI · ollama_client.py Ollama client
Components 11
User interface
- Streamlit UI
streamlit/app.py
Chat orchestration
- Chat API
app/main.py - Unintegrated intents
app/main.py
AI processing
- Intent engine
app/ai/intent_engine.py - Command validation
app/ai/intent_engine.py - Ollama client
app/ai/ollama_client.py - Response generator
app/ai/response_generator.py
Banking integration
- Node client
app/backend/node_client.py
Other components
- Customer
- Ollama runtime
- Banking API
Connections 13
- Customer → Streamlit UI: enters request
streamlit/app.py - Streamlit UI → Chat API: posts message
streamlit/app.py - Chat API → Streamlit UI: returns JSON
streamlit/app.py - Chat API → Intent engine: classifies request
app/main.py - Intent engine → Ollama client: requests generation
app/ai/intent_engine.py - Intent engine → Command validation: validates JSON
app/ai/intent_engine.py - Command validation → Intent engine: returns command
app/ai/intent_engine.py - Ollama client → Ollama runtime: sends prompt
app/ai/ollama_client.py - Chat API → Node client: requests banking data
app/main.py - Node client → Banking API: calls API
app/backend/node_client.py - Chat API → Response generator: formats response
app/main.py - Response generator → Ollama client: requests generation
app/ai/response_generator.py - Chat API → Unintegrated intents: leaves unhandled
app/main.py