Shadman919/cfo-copilot-shadman
0
๐งฎ Mini CFO Copilot
An AI-powered FP&A assistant that answers finance questions directly from structured data (actuals, budget, fx, and cash).
โ Built as part of the final-round Software Engineering (AI) Internship assignment.
๐ Features
- Ask finance questions in natural language
- โWhat was June 2025 revenue vs budget in USD?โ
- โShow Gross Margin % trend for the last 3 months.โ
- โBreak down Opex by category for June.โ
- โWhat is our cash runway right now?โ
- โShow EBITDA trend.โ
- Deterministic workflow
- Interpret the CFO question (intent classification)
- Run the correct data function
- Return concise text + visualization
- Charts: inline with Streamlit (matplotlib/plotly)
- Optional: Export PDF (Revenue vs Budget, Opex breakdown, Cash trend)
๐ Metrics Implemented
- Revenue vs Budget (USD)
- Gross Margin % = (Revenue โ COGS) / Revenue
- Opex Breakdown by category (Sales, R&D, G&A)
- EBITDA = Revenue โ COGS โ Opex
- Cash Runway = Cash รท avg monthly net burn (last 3 months)
๐ Project Structure
app.py # Streamlit entry point
agent/ # Planner + tools (intent classifier + finance functions)
fixtures/ # data.xlsx (main source); CSVs kept as fallback
tests/ # Unit tests (pytest)
requirements.txt # Python dependencies
README.md # This file
Dockerfile # Hugging Face deployment
