-
-
Fifteen heard, fifty usual. Send is held.
-
One tap. Code redoes the math, to the cent.
-
It knows his habits: 7 of 9 jobs like this added a thermal fuse. He forgot it.
-
Nothing sends until he approves the exact amount.
-
PayPal creates and sends the invoice. Every line, right there on PayPal.
-
The reminder AI tried to offer a discount. Code said no.
-
The customer pays as a guest. Paid, and PayPal confirms it.
Inspiration
There are 2.9 million US construction businesses with no employees. The person who does the job also writes the bill, often in the van. One wrong number can cost a customer. In our testing, an AI model stated a wrong total on 6 of 20 spoken jobs. We wanted the speed of saying the job out loud without trusting the AI with the numbers.
What it does
A roofer finishes a leak repair, climbs into the van and presses record: hours, parts, prices, tax. The customer comes from contacts, never from speech. ElevenLabs Scribe writes the words down and Claude pulls out the line items. On the confirm screen, the words sit beside every number.
- If a price is far from what that item usually costs on the trade's own PayPal invoices, the send holds. Fifteen said for a part that has always been fifty stops before the customer sees it, and the trade picks the price.
- Send waits for approval of the exact total. Nothing reaches the customer before that.
- PayPal creates and sends the invoice, and the customer can scan a QR code to pay.
- If it goes unpaid, a reminder agent drafts a note from what PayPal says is owed.
- When the customer pays, PayPal's webhook marks the job paid.
How we built it
All four of our entries share an open starter kit: Next.js, the PayPal Agent Toolkit behind a Guard that enforces money limits and human approval, and a timeline of every PayPal call. This entry's own work is everything under the speech, extraction, money, price book, tax and reminder code, plus the record, confirm, result and prices screens.
- ElevenLabs Scribe v2 turns the recording into text. Claude Sonnet 5.5 reads it into line items, and Claude Haiku 5.5 writes the job description and the reminder.
- The price book is read from the trade's past invoices with
GET /v2/invoicing/invoices. - Invoices are made and sent with the Toolkit's
create_invoice,send_invoiceandsend_invoice_reminder. - Before sending, code compares PayPal's total on the draft with the approved one and deletes the draft if they differ by a cent.
The PayPal ledger and the activity log are AG Grid (Community) tables, and the app is hosted on Render.
Challenges we ran into
- Speech-to-text mixes up sound-alike numbers like fifteen and fifty, and one wrong price on an invoice costs a real customer real money. So every spoken price is checked against what the trade has charged for that item on past PayPal invoices, and the send waits when it is far off.
- An item with no history yet still gets a question about any price that could be a sound-alike, instead of a guess.
- People say "plus tax" without a rate. Rather than let the AI guess one, the app names the state it heard and offers one-tap rates from a table in code. The trade picks.
- The reminder agent writes whatever it is asked to. Ask it to add a "$25 late fee" and code blocks any amount that is not on the actual PayPal invoice, and shows what it blocked.
Accomplishments that we're proud of
- Two real jobs, said out loud by the people who did them, went out as sandbox invoices: a $600 roof repair and a $472.03 dryer repair, with what was fixed on every line.
- A bare "Labor" line holds the send until the trade adds a few words.
What we learned
Keeping the AI to listening, and letting code add every cent, made the checks simple. Customers want to know what was fixed, so every line carries a description.
What's next
Local tax rates beyond statewide, a wrong-quantity check and longer recordings.
Built With
- ag-grid
- anthropic-sdk
- claude
- claude-haiku-5.5
- claude-sonnet-5.5
- elevenlabs
- next.js
- paypal
- paypal-agent-toolkit
- paypal-invoicing-v2
- paypal-webhooks
- playwright
- react
- render
- tailwindcss
- typescript
- zod