Spaces:
Running
A newer version of the Gradio SDK is available:
5.34.1
title: Expensynth
emoji: 🌖
colorFrom: pink
colorTo: green
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: true
short_description: Application for tracking personal spending habits
tags:
- agent-demo-track
GreenSmokeLabs-Expensynth
Overview
GreenSmokeLabs-Expensynth is an AI-powered financial management platform designed to transform the way users track, analyze, and understand their expenses. By leveraging artificial intelligence and natural language processing, the system automatically categorizes transactions, provides financial insights, and offers an intelligent assistant for financial queries.
Video Link
Watch our project demonstration:
System Architecture
The application is built on a robust three-tier architecture:
Database Schema
Key Components
Backend
The backend is built with FastAPI and provides the following key services:
- Transaction Parsing Service: Uses CrewAI to analyze and categorize financial transactions.
- User RAG Service: Provides question-answering capabilities through Retrieval Augmented Generation.
- Database Layer: PostgreSQL for structured data and Vector DB for embeddings.
- API Endpoints: RESTful endpoints for all system functionalities.
Frontend
The frontend is a Gradio-based web application with the following features:
- Financial Dashboard: Shows key financial metrics and summaries.
- Interactive Charts: Visualizes financial data through various charts and graphs.
- AI Assistant: Chat interface for natural language queries about financial data.
Mobile App
A mobile application will provide:
- Transaction Message Categorization
- Transaction Message Syncing
- Mobile dashboard access
Installation & Setup
Prerequisites
- Python 3.10-3.12
- PostgreSQL
- Node.js (for optional frontend development)
Backend Setup
- Clone the repository:
git clone https://github.com/yourusername/GreenSmokeLabs-Expensynth.git
cd GreenSmokeLabs-Expensynth
- Set up a Python virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install backend dependencies:
cd backend
pip install -e .
- Configure environment variables:
cp .env.example .env
# Edit .env with your configuration
- Run database migrations:
alembic upgrade head
- Start the backend server:
uvicorn green_smoke_labs_expensynth.main:app --reload
Frontend Setup
- Install frontend dependencies:
cd frontend
pip install -r requirements.txt
- Start the frontend server:
python server.py
Usage Guide
Transaction Processing
- Submit transaction messages through the API:
curl -X POST http://localhost:8000/transaction-parsing/parse-transaction \
-H "Content-Type: application/json" \
-d '{"transaction_message": "You spent $75.40 at Whole Foods Market on June 10th, 2025"}'
- The system will automatically:
- Parse the transaction details
- Categorize the transaction
- Store it in the database
- Update the vector embeddings for search
Financial Dashboard
Access the dashboard at http://localhost:7860 to:
- View financial summaries
- Explore interactive charts
- Analyze spending patterns
- Query your financial data using natural language
AI Assistant
Use the chatbot interface to ask questions such as:
- "What were my biggest expenses last month?"
- "How has my spending on groceries changed over time?"
- "What is my current balance?"
API Documentation
Transaction Parsing API
POST /transaction-parsing/parse-transaction
: Parse and process a new transactionGET /transaction-parsing/transactions
: Get all transactions
User Query API
POST /bot/query
: Submit a natural language query about financial data
Health Check API
GET /health
: Check system health status
Technologies Used
Backend:
- FastAPI
- SQLAlchemy
- CrewAI
- Modal (serverless deployment)
- Alembic (migrations)
- Pydantic
- PostgreSQL
Frontend:
- Gradio
- Plotly
- Pandas
AI & Machine Learning:
- Vector Embeddings
- LLM APIs
- CrewAI Agents
- Retrieval Augmented Generation
Future Roadmap
- Mobile Application Development
- Banking API Integrations
- Advanced Financial Planning Features
- Multi-currency Support
- Budget Management
- Export to Accounting Software
Contributors
- Shrijeeth S ([email protected])
- Sethuram SV ([email protected])
- Shankar Mahadevan ([email protected])
License
This project is proprietary and confidential. All rights reserved.
© 2025 Green Smoke Labs. All rights reserved.