💡 Inspiration
Managing day-to-day merchant operations—chasing overdue invoices, manually issuing customer payment links, analyzing refund claims, and detecting payment anomalies—is tedious, fragmented, and time-consuming.
I asked: What happens when you put an AI agent behind the wheel of PayPal? Can an AI agent autonomously audit accounts receivable, prepare personalized collection notices, detect transaction risks, and dispatch 1-click checkout links across modern channels like WhatsApp—all while giving the human business owner total control?
That vision became PayPilot AI: an autonomous financial operations engine powered by the PayPal Developer Platform and NVIDIA NIM, governed by a strict Human-in-the-Loop Approval Center.
🚀 What It Does
- Proactive "Daily AI Executive Briefing": When the merchant opens the Command Center, PayPilot AI doesn't wait to be asked. It proactively audits receivables, unsettled PayPal checkouts, and Sentinel risk scores in real time, featuring a 1-click "Auto-Resolve via AI" button.
- Autonomous Financial Sweep Engine: Periodically scans overdue invoices, crafts personalized payment notices with direct PayPal checkout links, and stages them for merchant review.
- Multi-Channel 1-Click WhatsApp Outreach: Generates instant
wa.mecustomer outreach links pre-filled with the invoice details and verified PayPal payment links for friction-free collection. - High-Performance AG Grid Ledger: Virtualizes transaction matrices with custom Quartz Dark styling, offering sub-millisecond client-side filtering, sorting, and lifecycle tracking.
- Human Approval Center: Autonomous doesn't mean rogue. Sensitive financial actions (refunds, overdue notices, high-value captures) require explicit merchant authorization before dispatch.
- Zero-Hallucination Grounded Citations: Every Order ID (
ORD-9882190A), Invoice Number (INV-2026-001), and Capture ID is rendered as an interactive, clickable verification badge linking directly to ledger records.
🛠️ How I Built It
- PayPal Developer Platform: Integrated PayPal Orders REST API v2 (
POST /v2/checkout/orders), Captures v2 (/v2/checkout/orders/{id}/capture), Refunds v2 (/v2/payments/captures/{id}/refund), and Webhook signature verification (POST /v1/notifications/verify-webhook-signature). - NVIDIA NIM & Function Calling: Orchestrates 13 concrete financial tools with real database execution and audit logging.
- APIMatic Context Plugin: Injects strict PayPal REST API schemas and idempotency rules into the prompt layer, guaranteeing zero hallucinations.
- AG Grid Enterprise & Community: Implemented high-speed data virtualization for transaction and invoicing ledgers.
- Next.js 14 (App Router), TypeScript & Tailwind CSS: Full-stack responsive modern FinTech interface.
- Prisma ORM & SQLite/PostgreSQL: Relational persistence across 14 financial entities.
- Render: Containerized continuous deployment with automatic migrations and seed workflows.
🏆 Accomplishments That I'm Proud Of
- 27/27 Unit & Integration Tests Passing across 7 test suites via Vitest.
- 100% Live Real-Time Interactivity: Verified live sandbox checkout orders, payments, and captures that settle dynamically.
- Multi-Channel Commerce: Bridging PayPal with WhatsApp for modern conversational payments.
🔮 What's Next for PayPilot AI
- Multi-agent collaborative financial sweeps with predictive cash runway forecasting.
- Automated dispute resolution reactor with automated evidence assembly.
- Cross-border tax and currency conversion intelligence.
Built With
- ag-grid
- apimatic
- next.js
- nvidia-nim
- paypal
- prisma
- react
- render
- tailwindcss
- typescript
- vitest