Personal Finance Chatbot
An intelligent conversational AI system that provides personalized financial guidance using IBM's Granite AI model.
Features
π€ AI-Powered Financial Advisor
- Powered by IBM Granite 3.1-1b model
- Personalized financial advice
- Context-aware responses
- Demographic-specific guidance (students vs professionals)
π¬ Interactive Chatbot
- Natural language conversations
- Pre-built financial scenarios
- Chat history tracking
- Quick-start scenario buttons
π Budget Tracker
- Monthly income and expense tracking
- Visual expense breakdown
- 50/30/20 rule comparison
- Budget analysis and recommendations
π° Savings Goals
- Goal setting and tracking
- Progress visualization
- Savings projections
- Automated savings tips
π Investment Guide
- Investment basics education
- Risk assessment tools
- Portfolio recommendations
- Investment calculator
Financial Scenarios Covered
- Student Loan Repayment - Guidance for managing and paying off student loans
- Budget Summary - Help with creating and maintaining budgets
- Emergency Fund - Building emergency savings step by step
- Spending Analysis - Identifying and reducing unnecessary expenses
- Savings Recommendations - Practical savings strategies
- Financial Stress - Supportive guidance for financial anxiety
Quick Start
Option 1: Using the batch file (Windows)
- Double-click
run_app.bat
- Wait for installation to complete
- The app will open in your browser automatically
Option 2: Manual installation
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run app.py
-
Open your browser to http://localhost:8501
Usage
- Home Page: Overview of features and quick navigation
- Finance Chatbot:
- Click "Load AI Model" to initialize the IBM Granite model
- Use scenario buttons for quick starts
- Type custom questions in the chat interface
- Budget Tracker: Input your income and expenses for analysis
- Savings Goals: Set and track your financial goals
- Investment Guide: Learn about investing and portfolio allocation
Technologies Used
- Python: Core programming language
- Streamlit: Web application framework
- IBM Granite 3.1-1b: AI model for text generation
- Transformers: Hugging Face library for model integration
- Plotly: Interactive charts and visualizations
- PyTorch: Deep learning framework
This application uses IBM's Granite 3.1-1b-a400m-instruct model:
- Lightweight and efficient
- Optimized for instruction following
- Suitable for financial advice generation
- Runs locally for privacy
Notes
- First run may take longer due to model download (~2-3GB)
- Model loading requires adequate RAM (4GB+ recommended)
- Fallback responses available if model fails to load
- All data stays local - no external API calls for chat
Disclaimer
This application provides educational financial information only and should not be considered as professional financial advice. Always consult with qualified financial advisors for important financial decisions.