Inspiration

Freelancers and small businesses don't lose money because they can't do the work. They lose it because chasing invoices is slow, awkward and easy to forget. Overdue payments quietly wreck cash flow, and most invoicing tools just store invoices instead of getting them paid. We wanted an invoicing assistant that acts like a small accounts-receivable team: it creates the invoice, follows up on late ones, and tells you what your cash flow looks like, while you stay in control.

What it does

InvoicePilot is an AI invoicing assistant built on the PayPal Invoicing API with Gemini-powered agents.

  • Chat to invoice: type create an invoice for Ravi, ₹45,000 for website design, due in 7 days. InvoicePilot drafts it, you approve it, and it creates the invoice on PayPal and shows you the payment link to send to your client.
  • Overdue reminder agent: finds overdue invoices and sends reminders through PayPal, following a clear policy, with a human-approval step and a kill switch so you always stay in control.
  • Cash-Flow agent: looks at your invoices and expected payments and helps you decide what to chase first.
  • Milestone drafts:creates draft invoices for project milestones, with currency handling for INR and USD.
  • One place for payment links: every client's invoice link is kept in the app. Nothing that touches money happens without your approval, and every action goes through the real PayPal sandbox.

How we built it

  • Frontend and backend: Next.js app deployed on Render.
  • Payments:PayPal Invoicing API in the sandbox (create, send, remind, and read invoice status).
  • AI: Gemini turns natural-language requests into structured invoice drafts and powers the agents' decisions.
  • Safety layer: a policy module decides what the agents may do automatically and what needs approval, covered by tests in tests/.
  • Currency logic:a rates helper converts between INR and USD, including a gross-up so the amount PayPal charges covers the shortfall.
  • Built with the Antigravity AI IDE and committed to a public MIT-licensed GitHub repo. ## Challenges we ran into
  • Making agents safe around money. We spent a lot of time on approval flows, a policy layer and a kill switch so the agents can't do anything surprising.
  • Currency conversion. A large INR shortfall produced a wrong USD top-up amount in one of our milestone drafts. We traced it to the conversion step and fixed it with a gross-up function.
  • Real API behavior. The PayPal sandbox behaves differently from the docs in places, so we tested against live sandbox invoices, for example confirming that reminders are accepted (HTTP 204).
  • Time.Deploying, testing and recording the demo in a hackathon window meant making hard calls about scope. ## Accomplishments that we're proud of
  • A working end-to-end flow on real PayPal sandbox invoices, not a mockup.
  • Agents that act autonomously but stay inside a policy, with human approval and a kill switch.
  • A deployed, publicly testable app with clear setup instructions. ## What we learned
  • Autonomous agents are only useful if people trust them, so approval steps and guardrails are part of the product, not an afterthought.
  • Money handling needs boring, well-tested code. Unit tests on the policy and currency logic saved us from bugs.
  • Structured output from an LLM plus a strict validation step is far more reliable than free-form text. ## What's next for InvoicePilot
  • Payment-status webhooks so invoices update the moment a client pays.
  • Smarter reminder timing and tone based on each client's payment history.
  • Support for more PayPal services, such as subscriptions and payouts to team members.
  • Multi-user accounts, and a path from sandbox to production.

Built With

Share this project:

Updates

Submission history