How kikoyummy115-tech/ai-chatbot-financial works
CAVI AI is a conversational financial-information platform for Cambodia–Vietnam investment topics. Its implemented chat workflow runs from the web interface through Flask, which saves the user message, calls the Rasa REST webhook, and stores and returns assistant replies. Rasa’s configured workflows invoke custom financial actions, including investment appraisal, DCF scenarios, investment statistics, and educational calculations. The README also describes multilingual and future verified-data integrations as product direction, not confirmed live capabilities. Relationships involving unsampled Rasa configuration are cited only where documented; no external market-data connection is shown in the inspected code.
Main entry points: actions Custom actions · app.py Flask API · config.yml Rasa runtime · script.js Web chat
Components 16
Conversation orchestration
- Rasa runtime
config.yml - Flows and domain
data/flows - Custom actions
actions
Financial capabilities
- Investment appraisal
actions/financial_actions.py - NPV calculation
actions/investment_calculations.py - DCF scenarios
actions/actions.py - Financial models
actions/financial_model.py - Investment basics
actions/investment_basics.py - Investment statistics
actions/investment_statistics.py - Investment figures
knowledge/investment.json
Conversation storage
- Conversation database
flaskapi/db/db.py
Other components
- Investor
- PostgreSQL
- Trusted data sources
Connections 15
- Investor → Web chat: asks questions
ReadMe.md - Web chat → Flask API: sends requests
flaskapi/static/js/script.js - Flask API → Rasa runtime: posts messages
flaskapi/app.py - Rasa runtime → Flows and domain: orchestrates flows
ReadMe.md - Rasa runtime → Custom actions: invokes actions
ReadMe.md - Flask API → Conversation database: reads and writes
flaskapi/app.py - Conversation database → PostgreSQL: connects to
flaskapi/db/db.py - Custom actions → Investment appraisal: includes
actions/financial_actions.py - Investment appraisal → NPV calculation: calls
actions/financial_actions.py - Custom actions → DCF scenarios: includes
- Custom actions → Financial models: includes
- Custom actions → Investment basics: includes
- Custom actions → Investment statistics: includes
- Investment statistics → Investment figures: reads figures
actions/investment_statistics.py - Trusted data sources → Custom actions: future integration
ReadMe.md