Inspiration

A small studio pays its freelancers the same way every week: match approved work to invoices by hand, then pay each person one by one. It is slow, it is easy to get wrong, and a late payment costs a freelancer's trust. Meera, the studio owner in our demo, is an illustrative example, not a real user, but the grind is real: three hours every Friday on work a machine could do, with a human still in charge of every decision.

We built Settle because an agent that moves money needs two things at once: the freedom to do the boring work, and a hard limit it cannot talk its way past. The cap is the product. The agent proposes, the rules enforce, the owner decides.

What I learned

PayPal's sandbox behaves differently from its docs in small ways that matter. A payout item sits inside a nested field, not at the top of the response. Reporting shows payout amounts as negative, because they are money leaving. The payer field on a payout transaction holds the recipient. We learned to test against recorded real responses, not against what we assumed the API returns.

The bigger lesson is about the model. We gave it a fake $999 proposal to see what would happen. The decision rules refused it, because the rules live in code, not in the model. Then we ran the model against a rule-based baseline on the same jobs: both allocated the same $130. So the honest claim is narrower than the pitch. The model proposes which jobs fit the run budget and in what order. The eight decision rules check every proposal before any PayPal call. Whether the model allocates better than rules is still unproven, and we say so.

We also learned that reconciliation must use the batch ID you already know. A list endpoint that may not exist is not a proof. And that an audit log is only honest if it records refusals too, not just successes.

How I built it

Settle is TypeScript and Node.js, with a SQLite ledger. The owner approves jobs in one click. The agent (Groq, model openai/gpt-oss-20b, free tier, strict structured outputs) proposes which approved jobs fit the run budget and in what order, with a reason for each. Eight decision rules check every proposal: the job must be approved, the amount above zero, the recipient on the allowed list, the payment inside the cap, and not a duplicate. All 256 combinations of the eight rules are tested.

PayPal Payouts sends the money. Invoicing bills the client for the same work. Reporting is the independent check: the verifier reads transactions from PayPal and recomputes the grid, instead of trusting the app's own copy. The PayPal Agent Toolkit 1.11.0 (pinned) supplies list_transactions for that check. Payouts stays direct REST, because the Toolkit has no Payouts tool. The dashboard is AG Studio 3.1 with ag-grid-react 36.3.0 and AG Charts 14.3, showing live sandbox data, not a static table.

The guardrail, with numbers: $200 per payment, $1,500 per week combined on a 7-day rolling window. Worst case, the most that can leave in a week is $1,500. Approvals run out after 7 days. The agent holds no money and can only ask for a payment for an approved job, inside the cap. Only the owner can change the cap.

Proof, all in PayPal sandbox, no real money: 12 payout batches, 26 payments, $26.00. The latest live run, Nov 11, paid three $1.00 obligations and re-read each from PayPal: Brand refresh (RGAUGFN2X67DA), Urgent retouch (YLBUQWFANBVGW), Studio software (LYJB572WA48NS). One invoice sent, INV2-QZ27-GV5H-DM37-T8TH, $2.00. Over 300 server tests, 123 dashboard tests, 80 browser tests, all passing.

The demo sender is a US sandbox test account, not a real Indian studio. A real Indian studio would still be blocked from sending payouts in live use. The demo says so on screen.

Total build cost: $0 out of pocket.

Challenges I faced

The first sandbox Payouts test failed with a 403: PayPal does not allow payouts from an India sender account. The fix was a US sandbox test account, and the honest label that goes with it.

The forensic round hurt more. The payout item was read from the wrong level of the response. Reconciliation used a list URL that does not exist in the docs. The webhook filter missed the real event names. The demo dates were hard-coded. Each one was fixed by reading the real PayPal response and writing a test from it, not by guessing.

The hardest challenge was honesty about the AI. It is tempting to claim the model is smarter than rules. Our own live comparison tied. So the submission claims only what is proved: the model proposes, the rules enforce, and the ledger shows every decision, including the refusals.

The last challenge was time. The product surface, the screens a judge sees first, landed the night before the deadline, and a review the same night found the model was not on the main path. We relabelled the screens to say what they actually do instead of faking it.

Next: test it with a second studio, with real jobs, in sandbox only, and run the user check the caps still need.

Built With

Share this project:

Updates

Submission history