Dues Banshee: they forgot your invoice. The taxman won’t.
An AI collections agent for Indian micro and small suppliers. It chases unpaid invoices over WhatsApp and a Hinglish voice call, and uses Indian payment law as leverage instead of just sending reminders. A rules engine owns every number, the model only drafts, and nothing goes out until the owner approves it.
- 5-step escalation ladder
- 11 specs 114 tasks, 373 subtasks
- 175 test files, 164 property tests
- 19 recorded guardrail evals
By Rohit Raj · · Live app · Source on GitHub
Why I built it
Indian law already favours small suppliers who get paid late, and almost none of them use it. If you’re registered on Udyam, your buyer has to pay within 45 days of accepting the goods (15 days with no written agreement) under MSMED Act s.15. After that they owe compound interest at three times the RBI bank rate under s.16.
The real lever is tax. If the buyer still hasn’t paid by 31 March, they lose that year’s deduction for the purchase (Income-tax s.43B(h), now s.37(2)(g) in the 2025 Act). A ₹4 lakh invoice they ignore becomes ₹4 lakh of extra taxable profit on their books. Most suppliers never bring it up, because the buyer is their biggest customer. So I wanted an agent that uses the law politely, one step at a time, and never acts without the owner saying yes.
What it does
Every unpaid invoice is a tombstone. Taller stone, more money. Moss for days overdue, cracks past 60 days, an ember past 45, a wisp when a promise to pay is pending.
Every morning a ladder decides what each buyer gets next:
- WhatsApp nudge
- WhatsApp pay link (Razorpay)
- Voice call in Hinglish
- Legal notice
- MSME ODR pack
The model drafts. It never writes the numbers.
An LLM drafts each message in Hinglish or English, but amounts, dates and interest come from a
rules engine, to the paisa. Every draft has to cite real rule IDs such as MSMED-15 or
IT-43BH, or it’s blocked. Drafts land in an approvals queue, and the app re-checks
the ladder right before anything goes out.
The guardrails have their own evals: 19 recorded model outputs, each labelled accept or block, checked for citations, tone and tense. They run offline, so no test or hook makes a live model call.
The Hinglish voice call
This was the part I was most nervous about. The owner clicks “Start call” and sends the buyer a link. An AI agent talks to them over WebRTC in Hinglish, or English if that’s what the buyer speaks. It says up front that it’s an AI and that the call is recorded. It looks up the invoice mid-call, reads the amount and date back, and records a promise to pay only after an explicit “haan”.
A promise pauses the ladder until its date. After the call, trying to send the next WhatsApp message is refused with “Not sent: Promise to pay active”. When the buyer pays the Razorpay link, an HMAC-verified webhook marks the invoice paid and the tombstone comes back to life.
How it was built
I built it with Kiro for Kiroween 2026 (Frankenstein category), using the spec workflow for every feature: requirements, design, a task list, then Kiro runs the tasks. For the riskier specs I had Claude Code review the result read-only and fed each fix back to Kiro as its own commit.
- 11 specs, 114 tasks, 373 subtasks, all ticked: legal engine, Tally and Excel import, the graveyard, the escalation ladder, WhatsApp and Razorpay, the voice call, guardrails and evals, and the 3D landing page.
- 175 test files (172 Vitest, 3 Playwright), with 164 fast-check property tests. Money is stored in exact paise.
- A companion Kiro Crew app (dues-banshee-crew) runs the ladder at 9 AM IST and shows the graveyard inside Crew. It only creates drafts.
The stack is a TypeScript pnpm monorepo: Next.js, Postgres with Drizzle, Razorpay, WebRTC voice and three.js for the landing hero.
Limits
- Legal rules are as of 7 Oct 2026. These are reminders a supplier sends to its own buyers, not legal advice.
- Razorpay runs in test mode and the demo data is fake. No real money moves.
- WhatsApp outbound is a wa.me link the owner sends from their own phone. Phone (PSTN) calls are on the roadmap.