Spenzo
by Arav-Arun
README.md
# Spenzo - your personal finance buddy on WhatsApp
Spenzo lives in WhatsApp. Track what you spend, split bills with friends, save for goals and keep an eye on your investments, all by chatting. No app, no forms, no passwords: your WhatsApp number is your account.
## Features
<table>
<tr>
<td width="33%" valign="top"><img src="assets/readme/ticks.jpg" width="100%" alt="Quick spends get a tick"><br><b>Log a spend in a second</b><br><sub>“chai 20” is logged and Spenzo just reacts ✅</sub></td>
<td width="33%" valign="top"><img src="assets/readme/statement.jpg" width="100%" alt="A forwarded bank statement imported"><br><b>Forward your bank statement</b><br><sub>The whole month in one go; locked PDFs ask for the password</sub></td>
<td width="33%" valign="top"><img src="assets/readme/bill.jpg" width="100%" alt="A bill photo read and logged"><br><b>Snap the bill</b><br><sub>Bills and payment screenshots are read and logged</sub></td>
</tr>
<tr>
<td width="33%" valign="top"><img src="assets/readme/split.jpg" width="100%" alt="A split bill and who owes what"><br><b>Split with friends</b><br><sub>Your share is logged and everyone else’s is tracked</sub></td>
<td width="33%" valign="top"><img src="assets/readme/goal.jpg" width="100%" alt="A goal reached with a Baaz sticker"><br><b>Goals that cheer you on</b><br><sub>Baaz sends a sticker halfway and at the finish</sub></td>
<td width="33%" valign="top"><img src="assets/readme/wrapped.jpg" width="100%" alt="The monthly Wrapped card"><br><b>Your month, Wrapped</b><br><sub>A shareable card of last month’s highlights</sub></td>
</tr>
</table>
## How it works
```mermaid
flowchart LR
WA["WhatsApp"] -->|"signed webhook"| BOT["bot.py · FastAPI"]
WEB["Dashboard"] -->|"magic-link session"| API["api.py"]
BOT --> CONV["conversation.py"]
CONV -->|"button taps"| REPLIES["replies.py · no AI"]
CONV -->|"text · photo · voice · PDF"| AGENT["agent.py · GPT tool loop"]
AGENT --> TOOLS["tools.py"]
API --> TOOLS
TOOLS --> SPEND["spend.py"] & SPLIT["split.py"] & SAVE["save.py"] & SEE["insights.py"]
SPEND & SPLIT & SAVE & SEE --> DB[("Postgres · Neon")]
```
```
server/ the bot: WhatsApp webhook, agent and tools, dashboard API, pictures (Pillow)
website/ Vite + React + Tailwind: landing page, dashboard, pay page, privacy
assets/ every image: web/ for the site, readme/, brand/ for Baaz, cards/ for the bot's pictures
schema.sql the tables
```
## Run it locally
Needs Python 3.12+, uv and Node 22.
```bash
uv sync
cp .env.example .env # OPENAI_API_KEY is enough for the simulator
uv run python -m server.chat --memory # a WhatsApp-style chat in the terminal, throwaway database
cd website && npm install && npm run dev
```
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues