💡 Inspiration

Last year, businesses lost over $3 billion to business email compromise — the #2 cybercrime by dollar losses — and it's accelerating, because AI now writes flawless fake supplier emails ("we've changed our bank details, please pay here"). At the same time, PayPal and the rest of the industry are racing to let AI agents initiate payments. That collision raised one urgent question for us: when an agent can move money, who checks the agent before the money leaves?

Sentinel is our answer: the trust layer for agentic payments.

🛡️ What it does

Sentinel sits in front of a company's outgoing B2B payments — whether a human or an autonomous procurement agent raised them. For every payment, it reads the invoice, the payee, the vendor's history, and the request message, then makes a judgment: Release, Hold, or Escalate — each with a risk score and a plain-English reason.

  • Clean payments are disbursed as real PayPal payouts.
  • Suspicious payments — changed payee, abnormal amount, duplicate invoice, urgency language — are frozen before any money moves.
  • Every decision (AI judgment, human override, and PayPal reference) is written to a full, exportable audit ledger.

A human always has the final say, and fraudulent payments never enter the payout batch.

🧠 How we built it

The front end is Next.js 15 + TypeScript + Tailwind, with AG Grid as the payment-approval queue and Zod validating every AI response.

The intelligence is a two-part engine:

  • A deterministic rules gate handles the hard stops (duplicate invoice, changed payee, amount anomaly).
  • A live LLM (Llama-3 via an OpenAI-compatible API) handles the fuzzy judgment a formula can't — like reading a message and recognizing it sounds like social engineering. It runs in a live mode and a deterministic mode for demo reliability.

How we used PayPal

PayPal is the core of Sentinel, in real Sandbox — no mocks. We authenticate via OAuth, pull each vendor's transaction history through the PayPal Agent Toolkit to build a behavioral baseline, and disburse approved payments as real PayPal Payouts batches to multiple vendor accounts. Settlement is reconciled to a terminal SETTLED state (webhook-ready), and every released payment carries a real PayPal payout reference in the audit ledger.

How we used AG Grid

The entire payment-approval queue is AG Grid: row grouping by vendor, aggregated totals, custom cell renderers for the colored risk pills and verdict badges, pinned summary rows, master-detail evidence panels (known-good vs. attempted payee, amount-vs-history chart), and quick-filter search. It turns a raw payment list into an operational control surface.

How we used APIMatic

We used APIMatic to generate the SDK and documentation for Sentinel's own payment-assessment API, so the fraud-screening engine can be consumed as a service.

🧗 Challenges we ran into

  • Real cross-party settlement in Sandbox — getting genuine money movement working meant correctly separating sender and recipient accounts and navigating country/currency restrictions on payouts.
  • Keeping a live LLM reliable under free-tier rate limits — which we solved with a deterministic fallback mode and spaced-out, retry-with-backoff calls, so the demo never breaks.

🏆 Accomplishments & what we learned

We're proud of real, end-to-end money movement through PayPal, a genuine AI that reasons live over never-before-seen fraud, and an interface that reads like shipped enterprise software.

The biggest lesson: the winning use of AI in payments isn't doing arithmetic a formula could do — it's judgment. Reading intent, weighing fuzzy signals, and knowing when to stop a payment.

🚀 What's next

Real inbox ingestion of payment requests, per-vendor learning from confirmed history, and a production webhook deployment — turning Sentinel from a hackathon build into the guardrail every enterprise needs before it hands agents the keys to its money.

Built With

Share this project:

Updates

Submission history