Case study · 05 / 07

What it had to do
A shopkeeper doesn’t need another table of quantities. They need to know where their money is stuck, what will run out before the next delivery, and what to order. StockWaves works that out every morning with plain arithmetic on the sales and stock ledger, and sends it as one WhatsApp that can be approved with a tap. Supplier bills go into stock from a photo, and the whole app takes commands in English or Hinglish.
From input to result
How it works
- 01
Snap
a supplier bill; a vision model reads every line
- 02
Ledger
every stock change is an append-only entry
- 03
Radar
money stuck, what runs out, what to do today
- 04
Brief
one WhatsApp each morning, approved with a tap
- Paisa Radar: cash at cost, by days since each product last sold
- Command bar in English or Hinglish, with a preview and Undo
- WhatsApp morning brief with one-tap reorder
- Snap-a-Bill: a bill photo becomes stock, and it learns each supplier’s names
- Purchase orders straight from the reorder list
- Admin, manager and staff roles, checked by the API
- Excel and CSV import with row-level errors
Decisions
The calls that mattered
01
One door for stock
Only one service changes stock, and every change is an append-only ledger entry. A product’s quantity is always the sum of its entries, with who made each change and when.
02
Preview, then confirm
Every command — typed, or sent on WhatsApp — shows exactly what will change and waits for Confirm. Done actions can be undone, and the undo goes through the ledger too.
03
Arithmetic you can open
Paisa Radar’s figures are plain sums on the ledger, and every figure opens its formula with the shop’s real numbers and the rows behind it.
04
AI only where it helps
Everyday commands run on rules with no AI key at all. Claude or Groq read bill photos and free-form wording, and a bill’s totals are checked before anything goes into stock.
Built with
- Python 3.12
- FastAPI
- SQLAlchemy 2 (async)
- PostgreSQL
- React 18 + Vite
- JWT + bcrypt
- Claude / Groq
- WhatsApp webhooks
- Docker · Railway · Netlify