Skip to content

About

AI-powered financial advisor with invoice management, cashflow forecasting, and tax optimization

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

Repository files navigation

FinanceGhost πŸ‘»

AI-Powered Month-End Close Autopilot for CA Firms

AutonomousHacks Python React Gemini


🎯 Problem Statement

Chartered Accountant (CA) firms in India face overwhelming operational complexity during month-end close cycles. Managing dozens of clients, tracking GST compliance deadlines, validating invoice accuracy, and coordinating vendor communications consumes countless hours. Partners spend more time on administrative firefighting than strategic advisory work, leading to:

  • ❌ Missed compliance deadlines
  • ❌ GST filing penalties
  • ❌ Invoice processing backlogs
  • ❌ Burnout from manual operations

πŸ’‘ Solution

FinanceGhost is an autonomous AI-powered platform that transforms CA firm operations from reactive chaos to proactive intelligence. By deploying specialized AI agents that work 24/7, it automates the entire invoice-to-compliance pipeline while providing firm-level operational visibility.

Hero Feature: Month-End Close Autopilot

A single command center dashboard that answers the partner's daily question:

"What needs to be done TODAY to avoid problems?"


πŸ€– Autonomous/Agentic Architecture

FinanceGhost implements a multi-agent architecture where each agent operates autonomously with specific expertise:

Agent Responsibility
Extraction Agent Processes invoices (PDFs, images) using OCR and extracts structured data
Tax Validation Agent Validates GST calculations, GSTIN formats, and detects compliance issues
Compliance Risk Agent Monitors client portfolios and predicts GSTR filing issues
Communication Agent Drafts professional vendor correction emails autonomously
Client Workflow Agent Tracks month-end progress across all clients
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     FRONTEND (React + Vite)                  β”‚
β”‚  Dashboard β”‚ Ops Intelligence β”‚ Vendors β”‚ Audit β”‚ Voice     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              ↓ WebSocket + REST
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   BACKEND (FastAPI + Python)                 β”‚
β”‚  REST API β”‚ WebSocket β”‚ Voice Processing β”‚ Firm Intelligenceβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    AI AGENT ORCHESTRATOR                     β”‚
β”‚  Real-time logging β”‚ WebSocket broadcast β”‚ Pipeline mgmt    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ EXTRACTION β”‚    TAX     β”‚ COMPLIANCE β”‚   COMMS    β”‚WORKFLOW β”‚
β”‚   AGENT    β”‚   AGENT    β”‚   AGENT    β”‚   AGENT    β”‚  AGENT  β”‚
β”‚ OCR+Parse  β”‚GST Validateβ”‚Risk Predictβ”‚Email Draft β”‚Progress β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  FIRM INTELLIGENCE SERVICE                   β”‚
β”‚    Month-End Autopilot β”‚ AI Briefings β”‚ Urgent Actions      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Key Autonomous Features

🎯 Multi-Agent Orchestration

Specialized AI agents work autonomously on each invoice, coordinating through a central orchestrator.

πŸ‘» Ghost Mode (Live Agent Thinking)

Real-time WebSocket stream showing AI agent "thinking" process as it validates invoices.

πŸ“§ Autonomous Vendor Communication

AI drafts professional correction emails to vendors when invoice errors are detected.

πŸ›‘οΈ Predictive Compliance Risk

Agents continuously analyze client portfolios and predict GSTR filing issues before deadlines.

πŸ“Š Month-End Close Autopilot

Aggregates all agent insights into a Kanban-style dashboard showing client progress and bottlenecks.

πŸŽ™οΈ AI Daily Briefing with Voice

Generates spoken briefing summarizing firm state, risks, and priorities each morning.

⚑ One-Click Resolution

Urgent items include AI-suggested actions that can be executed with a single click.

πŸ’° Smart Vendor Negotiations

Builds vendor intelligence over time to identify negotiation opportunities with AI-generated scripts.


πŸ› οΈ Technology Stack

Layer Technologies
Backend Python, FastAPI, SQLite
AI/LLM Google Gemini API, Google ADK, LangChain
Frontend React, TypeScript, Vite, Framer Motion
Voice Web Speech API (text-to-speech)
Real-time WebSocket for live agent streaming
UX Polish Canvas Confetti, Dark/Light themes

πŸš€ Quick Start

Prerequisites

  • Python 3.10+
  • Node.js / Bun
  • Tesseract OCR (brew install tesseract)
  • Poppler (brew install poppler)
  • Google AI Studio API Key

Installation

# Clone repository
git clone https://github.com/AmrendraTheCoder/financeghost.git
cd financeghost

# Backend setup
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env with your GOOGLE_API_KEY

# Frontend setup
cd frontend
npm install  # or bun install

Running

Terminal 1 - Backend:

source venv/bin/activate
uvicorn app.main:app --reload --port 8000

Terminal 2 - Frontend:

cd frontend
npm run dev  # or bun run dev

Access:


πŸ“‘ API Endpoints

Endpoint Method Description
/firm/intelligence GET Complete firm-level operational intelligence
/firm/month-end GET Month-End Close Autopilot dashboard
/firm/urgent GET Items requiring immediate attention
/firm/briefing GET AI-generated daily briefing
/ws/agent-logs WebSocket Real-time agent activity stream
/voice/command POST Process voice commands
/cashflow/forecast GET Predictive cash flow forecast
/vendors/analysis GET Vendor spend analysis
/vendors/negotiations GET AI negotiation opportunities
/audit/report GET Compliance report
/audit/download GET Download audit pack ZIP

πŸ“ Project Structure

financeghost/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ agents/
β”‚   β”‚   β”œβ”€β”€ orchestrator.py          # Multi-agent coordination
β”‚   β”‚   β”œβ”€β”€ invoice_agent.py         # OCR + extraction
β”‚   β”‚   β”œβ”€β”€ tax_agent.py             # GST validation
β”‚   β”‚   β”œβ”€β”€ compliance_risk_agent.py # Risk prediction
β”‚   β”‚   └── client_workflow_agent.py # Workflow tracking
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ firm_intelligence.py     # Month-End Autopilot
β”‚   β”‚   β”œβ”€β”€ llm_service.py           # Gemini integration
β”‚   β”‚   β”œβ”€β”€ vendor_intelligence.py   # Negotiation AI
β”‚   β”‚   └── cashflow_predictor.py    # Forecasting
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   └── workflow.py              # Data models
β”‚   └── main.py                      # FastAPI app
β”œβ”€β”€ frontend/
β”‚   └── src/
β”‚       β”œβ”€β”€ pages/
β”‚       β”‚   β”œβ”€β”€ OpsIntelligencePage.tsx  # Hero dashboard
β”‚       β”‚   β”œβ”€β”€ VendorsPage.tsx
β”‚       β”‚   └── AuditPage.tsx
β”‚       └── components/
β”‚           β”œβ”€β”€ GhostTerminal.tsx    # Live agent view
β”‚           └── VoiceAssistant.tsx
β”œβ”€β”€ data/
β”‚   └── sample_clients.json          # Demo data
└── requirements.txt

πŸ† Why FinanceGhost Wins

Traditional Software FinanceGhost
Manual invoice processing Autonomous extraction + validation
Reactive error discovery Predictive risk alerts
Email drafting by hand AI-generated vendor communications
Spreadsheet tracking Real-time Kanban dashboard
No visibility into work Ghost Mode shows AI thinking
Text-based reports Voice briefings on page load

FinanceGhost transforms the CA firm from doing the work to overseeing AI that does the work.


πŸ“ License

MIT License


πŸ‘¨β€πŸ’» Team

Built with ❀️ for AutonomousHacks 2024

Amrendra Vikram Singh

About

AI-powered financial advisor with invoice management, cashflow forecasting, and tax optimization

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages