Inspiration
Rotating savings circles (chit funds, committees, tandas, susus) serve hundreds of millions of people, yet they run on WhatsApp groups, notebooks and cash. Late payers, disputes and organizer fraud are common, and one default can collapse a circle. I grew up around chit funds in Tamil Nadu and wanted to give these circles a trustworthy, transparent treasurer.
What it does
SaveCircle runs a savings circle end to end on PayPal: Collects each round's contributions by sending a real PayPal invoice to every member (Invoicing API). Draws the payout order with a transparent, seeded SHA-256 shuffle (not AI), with the seed shown in a public audit log. Scores every member's reliability with a Bayesian model (prior of 8 on-time / 2 bad payments) and shows a confidence label. Advises: an AI treasurer explains the scores, proposes a risk-aware payout order (most reliable first, riskiest last), and drafts kind multilingual reminders. Pays out the pot to the round's winner through the PayPal Payouts API, only when every contribution is paid.
How I built it
Node.js and Express backend, PayPal Invoicing and Payouts APIs (sandbox, OAuth client credentials), and an AI agent using tool calling (openai/gpt-oss-120b on Groq) with tools to read the circle and propose orders and messages. The ledger UI uses AG Grid, and the app is hosted on Render.
Safety and guardrails
The AI never moves money: it only proposes, and the organizer approves each action. Payout is blocked until all contributions are paid, there is a pot cap, the payout order locks once collection starts, and every action is written to an audit log.
Challenges
Making the agent useful but safe: separating what the AI may decide (proposals, explanations) from what must be deterministic (the draw, payout rules). I also had to work around PayPal sandbox restrictions by using US sandbox accounts for Invoicing and Payouts.
What I learned
How to design human-in-the-loop agentic payments, how PayPal Invoicing and Payouts fit together, and how a simple Bayesian prior keeps risk scores honest for members with little history.
What's next
UPI and WhatsApp integration, multi-currency circles for diaspora families, recurring schedules, and licensing and compliance work, since chit funds are regulated in some countries.
SaveCircle is a sandbox prototype for informal, friends-and-family circles. It is not a licensed financial service.
Built With
- ag-grid
- express.js
- groq
- javascript
- node.js
- openai-gpt-oss
- paypal
- paypal-invoicing-api
- paypal-payouts-api
- render