help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
finance-assistant-bot
RSK World
finance-assistant-bot
Finance Assistant Bot - Python + Flask + Banking APIs + Finance Bot + Account Management + Transaction Processing
finance-assistant-bot
  • static
  • templates
  • .gitignore712 B
  • ADVANCED_FEATURES.md7.9 KB
  • GITHUB_RELEASES.md3.7 KB
  • LICENSE1.3 KB
  • LICENSE_PROPRIETARY.txt1.9 KB
  • NEW_FEATURES.md9.2 KB
  • README.md6 KB
  • RELEASE_NOTES.md4.1 KB
  • app.py69.6 KB
  • requirements.txt567 B
config.jsINSTALLATION.mdPROJECT_INFO.mdmain.pyREADME.mdADVANCED_FEATURES.md
README.md
Raw Download

README.md

# Finance Assistant Bot

> Financial chatbot for account inquiries, transaction history, and financial advice.

## 📋 Project Information

**Category:** Custom Chatbots
**Difficulty:** Advanced
**Technologies:** Python, Banking APIs, Security, Database
**Year:** 2026

## 🎯 Description

This chatbot provides financial services including account inquiries, transaction history, bill payments, and financial advice. Perfect for banks and financial institutions.

## ✨ Features

### Core Features
- **Account Inquiries** - Check your account balance and details instantly
- **Multiple Accounts** - Manage multiple savings, checking, and investment accounts
- **Transaction History** - View your recent transactions and statements with categories
- **Bill Payments** - Manage and pay your bills seamlessly
- **Financial Advice** - Get personalized financial tips and advice
- **Secure Authentication** - Bank-level security for your financial data

### Advanced Features
- **Account Transfers** - Transfer funds between your accounts
- **Budget Tracking** - Set budgets by category and track spending against them
- **Spending Analysis** - Analyze spending patterns by category with visual reports
- **Savings Goals** - Set and track progress toward financial goals
- **Investment Tracking** - Monitor your investment portfolio and performance
- **Financial Reports** - Comprehensive financial summaries and net worth tracking
- **Transaction Categories** - Categorize transactions for better organization
- **Recurring Bills** - Set up and manage recurring bill payments
- **Export Data** - Export transaction history as CSV files
- **24/7 Available** - Access your financial assistant anytime

## 🚀 Installation

1. Clone the repository or extract the project files

2. Install Python dependencies:
```bash
pip install -r requirements.txt
```

3. Run the application:
```bash
python app.py
```

4. Open your browser and navigate to:
```
http://localhost:5000
```

## 🔐 Demo Credentials

**Username:** `demo`
**Password:** `demo123`

## 📁 Project Structure

```
finance-assistant-bot/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── finance_bot.db # SQLite database (created on first run)
├── static/
│ ├── css/
│ │ └── style.css # Stylesheet
│ └── js/
│ └── app.js # JavaScript application
└── templates/
└── index.html # Main HTML template
```

## 🛠️ Technologies Used

- **Python** - Backend programming language
- **Flask** - Web framework
- **SQLite** - Database for storing user and transaction data
- **HTML/CSS/JavaScript** - Frontend technologies
- **Flask-Session** - Session management
- **Werkzeug** - Password hashing and security

## 💡 Usage

1. **Login/Register**: Create an account or use the demo credentials
2. **Chat Interface**: Start chatting with the finance assistant
3. **Quick Actions**: Use the quick action buttons for common tasks
4. **Account Management**: Check balance, view transactions, pay bills

## 📝 API Endpoints

### Authentication
- `GET /` - Main page
- `POST /api/login` - User login
- `POST /api/logout` - User logout
- `POST /api/register` - User registration

### Chat & Account
- `POST /api/chat` - Chat with the bot
- `GET /api/account` - Get user account information
- `GET /api/accounts` - Get all user accounts

### Transactions & Payments
- `GET /api/transactions` - Get transactions with filtering (account, category, days)
- `GET /api/export-transactions` - Export transactions as CSV
- `POST /api/transfer` - Transfer funds between accounts

### Budgets & Analysis
- `GET /api/budgets` - Get all budgets
- `POST /api/budgets` - Create a new budget
- `GET /api/spending-analysis` - Get spending analysis by category

### Goals & Investments
- `GET /api/goals` - Get savings goals
- `POST /api/goals` - Create a savings goal
- `GET /api/investments` - Get investment portfolio
- `POST /api/investments` - Add an investment

### Reports & Analysis
- `GET /api/financial-report` - Get comprehensive financial report
- `GET /api/expense-trends` - Get spending trends over time
- `GET /api/account-statement` - Generate account statement
- `GET /api/search-transactions` - Search transactions by description

### Calculators
- `POST /api/loan-calculator` - Calculate loan payments
- `POST /api/interest-calculator` - Calculate compound interest
- `POST /api/debt-payoff` - Calculate debt payoff strategies
- `GET /api/currency-convert` - Convert between currencies

### Alerts & Calendar
- `GET /api/alerts` - Get user alerts
- `POST /api/alerts` - Create new alert
- `POST /api/alerts/<id>/read` - Mark alert as read
- `GET /api/financial-calendar` - Get financial calendar

### Recurring Transactions
- `GET /api/recurring-transactions` - Get recurring transactions
- `POST /api/recurring-transactions` - Create recurring transaction

## 🔒 Security Features

- Password hashing using Werkzeug
- Session-based authentication
- SQL injection prevention with parameterized queries
- XSS protection in frontend

## 📞 Developer Information

**Founder:** Molla Samser
**Email:** help@rskworld.in
**Phone:** +91 93305 39277
**Address:** Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
**Website:** https://rskworld.in

## 📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

**Copyright (c) 2026 RSK World (Molla Samser)**

For proprietary licensing options, see [LICENSE_PROPRIETARY.txt](LICENSE_PROPRIETARY.txt) or contact help@rskworld.in

## 🙏 Acknowledgments

Developed by Molla Samser for RSK World.

---

**Note:** This is a demo project for educational purposes. For production use, implement additional security measures and integrate with real banking APIs.
ADVANCED_FEATURES.md
Raw Download

ADVANCED_FEATURES.md

# Finance Assistant Bot - Advanced Features Guide

> Comprehensive guide to all advanced features added to the Finance Assistant Bot

## Developer Information
**Founder:** Molla Samser
**Email:** help@rskworld.in
**Phone:** +91 93305 39277
**Address:** Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
**Website:** https://rskworld.in
**Year:** 2026

---

## 🚀 New Advanced Features

### 1. Multiple Account Management
- **Feature:** Users can now have multiple accounts (Savings, Checking, etc.)
- **Usage:**
- Chat: "Show all accounts" or "List accounts"
- API: `GET /api/accounts`
- **Benefits:** Separate finances for different purposes

### 2. Account Transfers
- **Feature:** Transfer funds between your own accounts
- **Usage:**
- Chat: "Transfer $X from ACCOUNT1 to ACCOUNT2"
- API: `POST /api/transfer`
- **Security:** Only transfers between user's own accounts

### 3. Budget Tracking
- **Feature:** Set monthly budgets by category and track spending
- **Database Table:** `budgets`
- **Usage:**
- Chat: "Budget status", "My budgets", "Show budgets"
- API: `GET /api/budgets`, `POST /api/budgets`
- **Features:**
- Category-based budgets (Food, Utilities, Entertainment, etc.)
- Monthly spending tracking
- Budget vs. actual spending comparison
- Over/under budget alerts

### 4. Transaction Categories
- **Feature:** Automatically categorize all transactions
- **Categories:** Income, Withdrawal, Payment, Transfer, Utilities, Food & Dining, etc.
- **Usage:**
- Transactions are automatically categorized
- Filter by category: `GET /api/transactions?category=Food`
- Chat: "Spending by category"

### 5. Spending Analysis
- **Feature:** Analyze spending patterns by category
- **Usage:**
- Chat: "Spending analysis", "Where did my money go", "Expenses"
- API: `GET /api/spending-analysis?days=30`
- **Features:**
- Spending breakdown by category
- Percentage calculations
- Time period filtering (days parameter)
- Budget comparison

### 6. Savings Goals
- **Feature:** Set and track financial goals
- **Database Table:** `savings_goals`
- **Usage:**
- Chat: "My goals", "Savings goals", "Show goals"
- API: `GET /api/goals`, `POST /api/goals`
- **Features:**
- Goal name and target amount
- Current progress tracking
- Target date tracking
- Progress percentage calculation

### 7. Investment Tracking
- **Feature:** Track investment portfolio
- **Database Table:** `investments`
- **Usage:**
- Chat: "My investments", "Investment portfolio", "Portfolio"
- API: `GET /api/investments`, `POST /api/investments`
- **Features:**
- Track multiple investment types (Stocks, Bonds, Mutual Funds, etc.)
- Purchase price vs. current value
- Gain/loss calculations
- Portfolio summary

### 8. Financial Reports
- **Feature:** Comprehensive financial overview
- **Usage:**
- Chat: "Financial report", "Report", "Summary"
- API: `GET /api/financial-report`
- **Includes:**
- Total account balance
- Total investments
- Net worth calculation
- Monthly spending summary
- Account count
- Goals progress

### 9. Transaction Filtering & Export
- **Feature:** Advanced transaction filtering and CSV export
- **Usage:**
- API: `GET /api/transactions?account=ACC123&category=Food&days=30`
- API: `GET /api/export-transactions?days=30` (Downloads CSV)
- **Filter Options:**
- By account number
- By category
- By time period (days)
- Combined filters

### 10. Recurring Bills
- **Feature:** Mark bills as recurring for automatic management
- **Database Field:** `recurring` flag in bills table
- **Usage:** Bills can be marked as recurring during creation

### 11. Enhanced Chat Interface
- **New Quick Actions:**
- All Accounts button
- Budget button
- Goals button
- Investments button
- Analysis button
- Report button
- **Smart Responses:** Chatbot automatically suggests actions based on responses
- **Action Buttons:** Contextual buttons appear after relevant responses

---

## 📊 Database Schema Updates

### New Tables Added:
1. **budgets** - Budget tracking by category
2. **savings_goals** - Financial goals tracking
3. **investments** - Investment portfolio
4. **alerts** - Account alerts (prepared for future use)

### Updated Tables:
1. **transactions** - Added `category` field
2. **bills** - Added `recurring` field
3. **accounts** - Multiple accounts per user support

---

## 💡 Chat Commands Reference

### Account Commands
- "Check my balance" - Check single account balance
- "Show all accounts" - List all accounts with balances
- "Account details" - Detailed account information

### Transaction Commands
- "Transaction history" - Recent transactions
- "Show transactions" - View all transactions
- "Spending by category" - Category breakdown

### Budget Commands
- "Budget status" - View all budgets and spending
- "My budgets" - List budgets
- "Budget [category]" - Specific category budget

### Goal Commands
- "My goals" - List all savings goals
- "Savings goals" - Show goal progress
- "Show goals" - Display goals with progress

### Investment Commands
- "My investments" - View portfolio
- "Investment portfolio" - Investment summary
- "Portfolio" - Quick portfolio view

### Analysis Commands
- "Spending analysis" - Category spending breakdown
- "Where did my money go" - Spending summary
- "Expenses" - Monthly expenses

### Report Commands
- "Financial report" - Comprehensive report
- "Report" - Quick financial summary
- "Summary" - Overview of finances

---

## 🔧 API Usage Examples

### Get All Accounts
```javascript
fetch('/api/accounts')
.then(res => res.json())
.then(data => console.log(data.accounts));
```

### Transfer Funds
```javascript
fetch('/api/transfer', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
from_account: 'ACC001234567',
to_account: 'ACC001234568',
amount: 500.00
})
});
```

### Create Budget
```javascript
fetch('/api/budgets', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'Food & Dining',
budget_amount: 500.00,
period: 'monthly'
})
});
```

### Get Spending Analysis
```javascript
fetch('/api/spending-analysis?days=30')
.then(res => res.json())
.then(data => {
console.log('Total spent:', data.total_spent);
console.log('By category:', data.analysis);
});
```

### Export Transactions
```javascript
// This will download a CSV file
window.location.href = '/api/export-transactions?days=30';
```

---

## 🎯 Sample Data

The demo account comes pre-loaded with:
- 2 accounts (Savings and Checking)
- Sample transactions with categories
- 3 budgets (Food, Utilities, Entertainment)
- 2 savings goals (Emergency Fund, Vacation)
- 2 investments (Stocks, Bonds)
- 3 bills (Electricity, Internet, Credit Card)

---

## 🔐 Security Features

- All API endpoints require authentication (`@login_required`)
- Account transfers only allowed between user's own accounts
- SQL injection prevention with parameterized queries
- Session-based authentication
- Password hashing with Werkzeug

---

## 📈 Future Enhancement Ideas

- Monthly/yearly reports comparison
- Bill reminder notifications
- Automatic transaction categorization using ML
- Goal contribution tracking
- Investment performance charts
- Email/SMS alerts
- Multi-currency support
- Tax reporting features
- Loan calculator
- Credit score tracking

---

## 🐛 Known Limitations

- Transaction categories are basic (can be enhanced)
- Budget alerts not implemented (structure ready)
- Investment values must be updated manually
- No automatic recurring bill payments (structure ready)
- Export format is CSV only (can add PDF/Excel)

---

**Last Updated:** 2026
**Version:** 2.0 (Advanced Features)
🚀 Support RSK World

Subscribe to our YouTube channel for latest tutorials & updates!



Click subscribe & support our work ❤️

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer