Inspiration

AI agents can now act autonomously, but one question is rarely answered: who gets to approve an AI agent spending money? Most “agent + payment” demos let the agent pay by itself — impressive, but risky, since nothing stops a poorly justified or misconfigured agent from draining a budget. We wanted the opposite: not an agent that pays, but a system that governs an agent’s spending — the way a company separates an employee’s spending request from a manager’s approval.

What it does

MicroPay lets you give an AI agent a mission and a spending policy (allowed providers, auto-approval threshold, payment frequency limit, minimum justification confidence). The agent explores offers and requests payments, but never executes them. A separate policy engine checks every request against the rules and decides to auto-approve, escalate to a human, or reject it. Only approved requests trigger a real PayPal Sandbox payment via the Payouts API. The dashboard shows the whole flow live — search, request, policy check, execution — plus a reasoning log, pending approvals, executed transactions, and downloadable PDF invoices.

How we built it

Frontend: plain HTML, JavaScript, and Tailwind CSS (CDN) — a mission-creation form and a live dashboard. Backend: Node.js/Express with simple JSON persistence. AI agent: Groq (llama-3.3-70b-versatile) using tool-calling — it can list resources, request a payment, skip an offer, or end its mission, but has no direct access to execute payments. Policy engine: a separate deterministic module evaluating each request against explicit rules, returning auto-approve, escalate, or reject. Real payments: PayPal Sandbox via the Payouts API, with an auto-generated downloadable PDF invoice for every executed payment.

Challenges we ran into

Designing a “zero-trust” architecture for the agent, strict enough to be meaningful but flexible enough to stay useful. Working without free network access, which required creative workarounds to produce accurate interface screenshots. PayPal Sandbox account setup was blocked by geographic restrictions, requiring workarounds to test the real payment flow. Making the agent’s offer comparison feel realistic without actual web browsing, while keeping the demo reliable for judges.

Accomplishments that we're proud of

A real, working separation of powers: the agent literally cannot execute a payment — only a human-auditable policy engine can. A genuine PayPal Sandbox payout executes end-to-end, not a mocked transaction. A live processing panel that makes an abstract decision pipeline (search → request → policy check → execution) visible and understandable in real time. A full audit trail: every decision, approval, and payment is logged and backed by a downloadable invoice.

What we learned

The hard problem in agentic commerce isn’t calling a payment API — it’s designing an agent that can’t bypass the control layer. PayPal’s Payouts API fits a machine-initiated, outgoing payment far better than Checkout/Orders, which assumes an interactive human buyer. Trust comes from traceability: a clear, human-readable log of why a decision was made matters as much as the decision itself. Shipping under real constraints (zero budget, a tight deadline, a restricted environment) forces focus on the core mechanism instead of surface polish.

What's next for micropay

What’s next for MicroPay Replace simulated offer discovery with real web search/browsing for the agent. Add a global view across all missions, showing combined spend, pending approvals, and all invoices in one place. Support richer policies (per-category budgets, multi-step approval chains, time-based limits). Move from JSON file storage to a real database and add user authentication for multi-user/team use. Explore multi-agent scenarios, where several agents share one policy engine and one budget.

Built With

Share this project:

Updates

Submission history