Inspiration
Freelancers who bill international clients lose hours writing invoices and chasing late payments, and getting the tone of a reminder right is awkward. I wanted PayPal + AI to do the busywork while the freelancer stays in control.
What it does
InvoicePilot turns a plain-language note ("did 5 hrs of logo work for Ravi, $40/hr, due in 2 weeks") into a real PayPal invoice. AI extracts the details and flags anything missing; the user reviews and approves; the invoice is created and sent through the PayPal Invoicing API. A live dashboard shows outstanding, overdue and paid totals, a Bryntum calendar shows invoices on their due dates, and an AI briefing says what to chase first. For late invoices, AI drafts a reminder in a tone matched to how overdue it is (friendly, firm or final notice), which the user edits and sends through PayPal or Gmail.
How we built it
Node.js/Express backend calling PayPal Invoicing API v2 in the sandbox (generate number, create draft, send, list, show, remind). Google Gemini with structured JSON output handles note parsing, reminder drafting and the briefing. All numbers in the briefing are computed in code and only narrated by the AI. Deployed on Render, with a Bryntum Calendar and a Postman collection of the PayPal calls.
Challenges we ran into
PayPal blocks invoices to customers inside India, so we tested with US sandbox accounts and framed the product for freelancers billing clients abroad. PayPal's docs also say reminder wording may be replaced with its standard text, so I added Gmail and copy options for the exact AI-written message. I kept AI inside guardrails: facts only, no invented fees or threats, and a human approval step.
What we learned
Structured outputs make AI dependable enough for money workflows, and computing numbers in code while the AI only writes the explanation avoids the most serious class of mistakes.
What's next for GigLedger
PayPal webhooks for instant status updates, scheduled automatic scans for overdue invoices, and multi-currency support.
Built With
- api
- bryntum
- express.js
- node.js
- paypal
- saas