Inspiration
Freelancers lose hours writing invoices and chasing late payments — and a lot of that money is never collected. Following up is awkward, so people just don't. We wanted an AI that doesn't just advise, but actually gets you paid.
What it does
- Invoice from anything: paste a WhatsApp message, email or note (or a photo of a job sheet). AI extracts the client, line items, amounts and due date (it understands "by Friday").
- Human-in-the-loop: review and edit the draft, then one click creates and sends a real PayPal invoice with a payment link and QR code.
- Live receivables dashboard: an AG Grid table pulls every invoice live from PayPal (Sent, Paid, Overdue) with sorting, filtering and one-click reminders.
- Collections agent: ask in plain English — "Remind every client with an unpaid invoice, politely". The agent reads your PayPal invoices, decides who to chase, writes a personalised note for each, and actually sends PayPal reminders. It never touches paid or cancelled invoices.
How we built it
- PayPal Invoicing API v2 (sandbox): create, send, list, get, remind and cancel invoices via OAuth2 client credentials.
- AI: MiniMax M3.1 Flash on NVIDIA NIM via an OpenAI-compatible API. Two uses: (1) extraction of messy text/images into structured invoice JSON, (2) an agent loop with tool calling (list_invoices, get_invoice, send_reminder, create_invoice, cancel_invoice) running up to 8 steps with guardrails.
- Frontend: Next.js 16 + React 19 + TypeScript, with AG Grid for the receivables table.
- Hosting: Render.
Challenges we ran into
PayPal blocks invoicing between two India-based accounts, so we invoice an international (US) sandbox buyer — which matches the real use case of Indian freelancers billing global clients. We also made the AI layer provider-agnostic, with retries and fallback models to handle free-tier rate limits.
Accomplishments that we're proud of
A full loop working end to end: messy message → real PayPal invoice → client pays → dashboard updates → agent chases the rest.
What we learned
Agentic commerce needs guardrails and a human-in-the-loop before money moves. The AI is most useful when it's grounded in live payment data.
What's next
Scheduled autonomous follow-ups, Gmail/WhatsApp ingestion, payment plans with PayPal Pay Later, and cash-flow forecasting.
Built With
- ag-grid
- next.js
- nims-api
- nvidia
- paypal
- react
- render
- typescript