- Overview
- Problem Statement
- Our Solution
- Project Architecture
- Key Features
- Tech Stack
- Projects in This Repository
- Getting Started
- AI Agents
- Team
- Documentation
- License
Carinae is a comprehensive AI-powered financial intelligence platform developed for the Mumbai Hackathon 2025. Our solution addresses critical challenges faced by Small and Medium Enterprises (SMEs) and individual users in India through two specialized applications:
- MoneyFyi-Business: AI CFO for SMEs - Fraud detection, compliance tracking, and cashflow forecasting
- MoneyFyi-User: Personal finance management with agentic AI-powered investment recommendations
Small and medium enterprises in India, especially retail shops and local counters, struggle with:
- Financial Fraud: Unauthorized transactions and digital payment frauds in UPI/online payments
- Compliance Penalties: Delayed or incorrect GST/TDS compliance leading to penalties
- Cashflow Issues: Late payments, unexpected shortages, and poor financial planning
- Manual Processes: Traditional apps lack real-time analysis and proactive guidance
- Irregular Income: Gig workers and informal sector employees struggle with savings
- Generic Advice: Lack of personalized financial recommendations
- Language Barriers: Financial literacy content not available in regional languages
- Investment Complexity: Difficulty in choosing appropriate moderate-risk investments
We developed an AI-agent system that autonomously:
โ
Analyzes uploaded transaction data, statements, and invoices using OCR + NLP
โ
Detects anomalies, mismatches, fraud patterns, and compliance risks
โ
Predicts cash-flow forecasts and investment opportunities
โ
Provides proactive alerts and actionable insights in real-time
โ
Delivers recommendations via user-friendly dashboards and WhatsApp notifications
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ User Interface Layer โ
โ Web Dashboard (Next.js) + Mobile PWA + WhatsApp โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Document Processing Layer โ
โ OCR (Google Gemini Vision) + Parsing + Validation โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Multi-Agent AI Engine โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Data Normalizer Agent โ โ
โ โ โ โ โ
โ โ FraudGuard Agent โ Compliance Mate Agent โ โ
โ โ โ โ โ โ
โ โ Cashflow Oracle โ SmartPayment Agent โ โ
โ โ โ โ โ
โ โ Insight Agent (Recommendations) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Data & Storage Layer โ
โ Supabase PostgreSQL + AES-256 Encrypted Storage โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
User Data โ AES Encryption (Client) โ HTTPS/TLS 1.3 โ
FastAPI Backend โ Argon2 KDF โ Second-Layer AES-256 โ
PostgreSQL (Encrypted at Rest) โ Row Level Security (RLS)
Data Privacy Compliance: DPDP Act 2023, RBI Guidelines, ISO 27001 principles
- Real-time Fraud Scoring: Analyze transactions using 10+ fraud indicators
- Duplicate Payment Detection: UTR/reference number validation
- Velocity Checks: Detect rapid-fire transactions (potential attacks)
- Round-Amount Flagging: Identify suspicious payment patterns
- New Vendor Alerts: Flag first-time vendors for verification
- After-Hours Alerts: Detect unusual timing (weekends, late nights)
- GST Invoice Validation: GSTIN format checks, HSN/SAC code verification
- TDS Calculation: Automatic 10% TDS verification for services
- Filing Reminders: Quarterly GST deadlines with 3-day advance alerts
- Document Preparation: Auto-generate compliance reports
- Penalty Avoidance: Mismatch detection before filing
- 7-30 Day Predictions: AI-powered balance forecasting
- Seasonal Analysis: Pattern recognition for recurring cycles
- Shortage Alerts: Proactive warnings before cash crunch
- Vendor Risk Scoring: Payment delay analysis (0-100 scale)
- Budget Recommendations: Optimize spending based on forecast
- Vendor Verification: Background checks for new vendors
- Split Payment Logic: Partial payments based on cashflow stress
- Payment Prioritization: Rank payments by urgency and risk
- Fraud Prevention: Block/review high-risk transactions
- ๐ด Critical: Suspected fraud (immediate WhatsApp alert)
- ๐ High: Compliance deadline <3 days
- ๐ก Medium: Cashflow shortage forecast
- ๐ข Low: Weekly summary reports
- Personalized Portfolios: Based on income, risk profile, and goals
- Market Sentiment Analysis: FinBERT + IndicBERT for news analysis
- Stock & Mutual Fund Suggestions: Moderate-risk, data-driven picks
- Explainable AI: Clear reasoning for every recommendation
- FinAgent (FinBERT): English financial news sentiment extraction
- IndicAgent (IndicBERT): Regional language news & sentiment analysis
- VoxAgent (VoxMind ASR): Voice input in Indian languages
- TrendAgent (LSTM/Transformer): Price pattern forecasting
- FusionAgent (Reinforcement Learning): Adaptive learning from user behavior
- Expense Tracking: Automatic categorization and insights
- Savings Goals: Track progress toward financial milestones
- Investment Monitoring: Portfolio performance tracking
- Financial Literacy: Educational content in English + Hindi
- Voice Interaction: Speak queries in regional languages
{
"framework": "Next.js 16 (App Router)",
"language": "TypeScript 5.0",
"styling": "Tailwind CSS v4 + shadcn/ui",
"charts": "Recharts",
"state": "React Hooks + Context API",
"forms": "React Hook Form + Zod",
"auth": "Supabase Auth (JWT)",
"pwa": "Service Worker + Manifest"
}{
"framework": "FastAPI (Python 3.11+)",
"database": "Supabase (PostgreSQL + RLS)",
"ai_engine": "Google Gemini 1.5 Flash",
"nlp_models": ["FinBERT", "IndicBERT", "RoBERTa"],
"ocr": "Google Gemini Vision API",
"ml_forecasting": ["Prophet", "LSTM", "ARIMA"],
"storage": "Supabase Storage (AES-256)",
"notifications": "n8n Webhooks (WhatsApp via Twilio - planned)"
}NLP: FinBERT, IndicBERT, RoBERTa, VoxMind ASR
Vision: Google Gemini Vision, PaddleOCR
Forecasting: Meta Prophet, LSTM, Transformer, ARIMA
Anomaly Detection: Isolation Forest, DBSCAN, Z-score
Orchestration: LangChain
Hosting: Vercel (Frontend), Railway/Render (Backend)
Database: Supabase PostgreSQL (with RLS)
Cache: Redis (Upstash)
Task Queue: Celery (planned)
Monitoring: Sentry (planned)
Analytics: Vercel Analytics, PostHog (planned)
Purpose: AI CFO for small businesses - fraud detection, compliance, cashflow management
Structure:
MoneyFyi-Business/
โโโ Backend/
โ โโโ ai_engine/ # AI agents (fraud, cashflow, compliance)
โ โ โโโ fraudguard_agent.py
โ โ โโโ cashflow_oracle.py
โ โ โโโ compliance_mate_agent.py
โ โ โโโ smartpayment_agent.py
โ โ โโโ insight_agent.py
โ โโโ app/
โ โ โโโ routers/ # API endpoints
โ โ โโโ services/ # Business logic
โ โ โโโ models/ # Data models
โ โ โโโ main.py # FastAPI app
โ โโโ requirements.txt
โโโ Frontend/
โ โโโ app/ # Next.js pages
โ โโโ components/ # React components
โ โโโ package.json
โโโ tests/ # Automated tests
โโโ README.md
โโโ sample_analysis_output.json
Key APIs:
POST /api/v1/documents- Upload & process documentsGET /api/v1/transactions- Query transactionsGET /api/v1/alerts- Retrieve alertsGET /api/v1/insights/executive-summary- Get AI insights
Documentation: MoneyFyi-Business README
Purpose: Personal finance management with AI-powered investment recommendations
Structure:
MoneyFyi-User/
โโโ Backend/
โ โโโ app/
โ โ โโโ api/v1/ # API routes
โ โ โโโ models/ # User, transaction models
โ โ โโโ main.py
โ โโโ requirements.txt
โโโ Frontend/
โ โโโ app/ # Next.js App Router
โ โโโ components/
โ โโโ package.json
โโโ ML/
โโโ app/
โ โโโ agents/ # FinAgent, IndicAgent, etc.
โ โโโ main.py
โโโ notebooks/ # Jupyter notebooks for training
โโโ requirements.txt
Key Features:
- Agentic AI with 6 specialized agents
- Multilingual support (English + Hindi)
- Voice interaction (VoxMind ASR)
- Sentiment-driven recommendations
- Continuous learning from user behavior
Documentation: See individual README files in MoneyFyi-User/
- Node.js 18+ and npm/pnpm/yarn
- Python 3.11+
- Supabase account (free tier works)
- Google AI Studio account (for Gemini API key)
git clone https://github.com/yourusername/carinae.git
cd carinae/MoneyFyi-Businesscd Backend
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
pip install -r requirements.txt
# Create .env file
echo "SUPABASE_URL=your_supabase_url" > .env
echo "SUPABASE_SERVICE_ROLE_KEY=your_service_key" >> .env
echo "GEMINI_API_KEY=your_gemini_key" >> .env
echo "N8N_WEBHOOK_URL=your_webhook_url" >> .env
# Run backend
uvicorn app.main:app --reloadBackend runs at: http://localhost:8000
API Docs: http://localhost:8000/docs
cd ../Frontend
npm install
# Create .env.local
echo "NEXT_PUBLIC_SUPABASE_URL=your_supabase_url" > .env.local
echo "NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key" >> .env.local
# Run frontend
npm run devFrontend runs at: http://localhost:3000
- Go to Supabase Dashboard
- Create a new project
- Go to SQL Editor
- Run the migration scripts in
Frontend/scripts/in order:001_create_profiles.sql002_create_transactions.sql003_create_vendors.sql004_create_alerts.sql005_create_cashflow_forecasts.sql006_create_documents.sql
Follow similar steps for MoneyFyi-User project. See specific README files:
| Agent | Technology | Purpose | Key Features |
|---|---|---|---|
| Data Normalizer | Pandas, NumPy | Clean & structure data | Transaction categorization, amount normalization |
| FraudGuard | Isolation Forest, Rule Engine | Fraud detection | 10+ fraud indicators, risk scoring (0-100) |
| ComplianceMate | Rule Engine, GST API | Tax compliance | GST validation, TDS checks, filing reminders |
| Cashflow Oracle | Prophet, ARIMA | Cashflow forecasting | 7-30 day predictions, seasonal analysis |
| SmartPayment | Decision Tree, RL | Payment recommendations | Vendor risk scoring, split payment logic |
| Insight Agent | Google Gemini LLM | Natural language insights | Executive summaries, action items |
| Agent | Model | Purpose |
|---|---|---|
| FinAgent | FinBERT | English financial news sentiment |
| IndicAgent | IndicBERT | Regional language sentiment |
| InsightAgent | RoBERTa | User intent understanding |
| VoxAgent | VoxMind ASR | Voice-to-text (Indian languages) |
| TrendAgent | LSTM/Transformer | Price forecasting |
| FusionAgent | Reinforcement Learning | Adaptive recommendations |
Team Carinae - Mumbai Hackathon 2025
- Rajath U - Full Stack Development, AI Integration
- Niharika Trivedi - Backend Development, Database Design
- Aditya S Hegde - ML Engineering, AI Agent Development
- Jayesh RL - Frontend Development, UI/UX Design
- Hackathon Presentation (PDF)
- MoneyFyi-Business Technical Spec (PDF)
- MoneyFyi-User Technical Spec (PDF)
โ
Explicit user consent for data processing
โ
AES-256 encryption for sensitive data
โ
Right to erasure (data deletion API)
โ
Breach notification within 72 hours
โ
TLS 1.3 encrypted transmission
โ
Multi-factor authentication (planned)
โ
Audit logs for all data access
โ
No storage of bank credentials
โ
15-minute session timeout
- Encryption: AES-256 (at rest), TLS 1.3 (in transit)
- Authentication: JWT tokens, Argon2 password hashing
- Database: Row Level Security (RLS) on all tables
- API: Rate limiting, CORS policies, input validation
- Monitoring: Error tracking, access logs
| Tier | Price | Features |
|---|---|---|
| Free | โน0 | 10 docs/month, basic alerts |
| Starter | โน499/month | 100 docs/month, WhatsApp alerts |
| Pro | โน1,499/month | Unlimited docs, API access, multi-user |
| Enterprise | Custom | White-label, on-premise, dedicated support |
| Tier | Price | Features |
|---|---|---|
| Free | โน0 | Basic tracking, 5 recommendations/month |
| Premium | โน199/month | Unlimited recommendations, advanced analytics |
| Family | โน299/month | 5 users, shared goals, priority support |
- India-Specific: Built for GST/TDS compliance (not generic)
- WhatsApp-First: 500M+ WhatsApp users in India
- No Bank Integration: Works with uploaded documents (privacy-first)
- Multi-Agent AI: More accurate than single-model systems
- Agentic Approach: Autonomous decision-making, not just recommendations
- Privacy-Focused: AES-256 encryption, DPDP Act 2023 compliant
- Affordable: โน499/month vs โน10,000+ for enterprise solutions
- Multilingual: English + Hindi + regional languages (voice support)
cd MoneyFyi-Business/Backend
pytest tests/cd MoneyFyi-Business/Frontend
npm testWe welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Project Website: Coming soon
- Email: support@moneyfyi.com
- LinkedIn: Team Carinae
- GitHub Issues: Report a bug
- Next.js - React Framework
- FastAPI - Modern Python API
- Supabase - Backend Platform
- Google AI - Gemini API
- shadcn/ui - UI Components
- Vercel - Hosting Platform
- Tailwind CSS - CSS Framework
- RBI Authentication Mechanisms for Digital Payment Transactions (2025)
- RBI Master Direction on Regulation of Payment Aggregators (2025)
- India's DPDP Act (Digital Personal Data Protection Act, 2023)
- Information Technology Act, 2000 (with amendments)
- The Payment and Settlement Systems Act, 2007
- The Prevention of Money Laundering Act (PMLA), 2002
- "UPI Based Financial Fraud Detection Using Deep Learning"
- "FAMOS: Robust Privacy-Preserving Authentication"
- "Secure Use of the Agent Payments Protocol (AP2)"
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project useful, please consider giving it a โญ on GitHub!
MoneyFyi - Detect Problems Before They Hurt You
Made in India ๐ฎ๐ณ | Fintech Track | Agentic AI Challenge
Website โข Demo โข Documentation โข Support