What it does Emet AI is an intelligent procurement and audit desk that bridges real-world paper/PDF receipts with automated PayPal financial execution:
Multimodal Perception: Users upload paper receipts, handwritten quotes, or invoices. Vision AI extracts line items, quantities, unit prices, taxes, and customer details into structured formats.
Forensic Audit & Anomaly Detection: The agent checks line-item arithmetic, verifies GST/tax calculations, and compares billed prices against master vendor contracts to spot unauthorized price increases or double billing.
Autonomous Decision & HITL Guardrails: Low-risk, balanced invoices within defined budget ceilings are queued for autonomous execution. High-variance or arithmetic anomaly invoices trigger a Human-in-the-Loop (HITL) review flag.
Interactive Reconciliation & PayPal Execution: Accountants can edit and reconcile discrepancies directly via an interactive data grid before triggering PayPal Sandbox Invoices or Payouts. Real-time webhooks track settlement statuses live.
How we built it Frontend: Built with Next.js (React), Tailwind CSS, Lucide Icons, and styled with an enterprise obsidian glassmorphic UI system.
Data Grid: Integrated AG Grid (ag-grid-react) for high-performance, real-time line-item editing and automatic subtotal/tax recalculations.
AI Engine: Powered by OpenAI GPT-4o Vision and Claude Sonnet via structured JSON schemas to parse document images and perform forensic cross-document audits.
PayPal Integration: Leveraged the official PayPal Developer Platform Sandbox, integrating @paypal/checkout-server-sdk, PayPal Invoicing v2 API, PayPal Payouts API, and @paypal/agent-toolkit (with PayPal MCP Server capabilities).
Real-time Engine: Custom Express/Next.js Webhook listeners processing live PayPal Sandbox event callbacks (INVOICE.PAID, PAYOUTSBATCH.SUCCESS).
Challenges we ran into Unstructured OCR Data Handling: Converting messy, low-resolution handwritten receipts into strictly typed JSON without losing decimal precision required iterative prompt engineering and schema validation guardrails.
PayPal API Workflow Synchronization: Coordinating PayPal's two-step invoice lifecycle (creating a draft invoice, then transmitting/generating a public payment link) alongside webhook listeners for immediate state updates in the UI.
Designing Deterministic HITL Logic: Setting precise risk indexes and budget threshold rules so the AI knows when to proceed autonomously versus when to pause and require human intervention.
Accomplishments that we're proud of Building a full end-to-end bridge where multi-modal AI perception directly triggers a real financial action in the PayPal Sandbox environment.
Crafting a developer-grade, sleek dark-mode UI with AG Grid integration that elevates the platform from a simple hackathon project to an enterprise-ready financial product.
Achieving 100% accuracy in catching arithmetic variances and price gouging in test datasets before any funds are moved.
What we learned How to leverage modern Model Context Protocol (MCP) servers and PayPal AI Toolkits to allow LLMs to safely query financial ledgers and invoke payment tools.
The importance of Human-in-the-Loop (HITL) architecture in financial software—AI works best when it acts as a tireless auditor, leaving final verification of edge cases to humans.
What's next for Emet AI — Autonomous Audit & PayPal Execution Desk Multi-Currency Auto-Conversion: Integrating real-time FX exchange rate APIs for cross-border international vendor payouts.
Predictive Cash Flow Forecasting: Expanding the agent to analyze historical PayPal settlement trends and suggest optimal payout timing to maximize merchant working capital.
ERP Integration: Building direct connectors for QuickBooks, Xero, and SAP to sync audited PayPal invoices automatically into global accounting ledgers.
Built With
- ag-grid
- agentic-commerce
- ai-agents
- claude-3-5-sonnet
- express.js
- fintech
- gpt-4o
- json-schema
- lucide-react
- mcp-server
- next.js
- node.js
- ocr
- openai
- paypal
- paypal-agent-toolkit
- paypal-sandbox
- react
- render
- rest-api
- tailwind-css
- typescript
- vision-ai
- webhooks