Inspiration

AI agents can understand what people want to buy, but they should not spend without clear limits. I created SpendSentinel to explore how AI-assisted shopping can be paired with predictable spending rules and a human-controlled checkout.

What it does

SpendSentinel turns a purchase request into a proposal and checks it against agent policies such as transaction limits, daily budgets, allowed currencies, and merchants. An optional AI model extracts purchase details from natural language, deterministic rules not the AI make the policy decision. An approved proposal can be followed by a separately initiated PayPal Sandbox order, buyer approval, and capture. This is an independent prototype, not a production payment or compliance system, and it does not support live payments.

How we built it

I built SpendSentinel with Python and FastAPI, backed by a browser-based dashboard. The application connects the dashboard to API routes for payment-instruction validation, agent registration and evaluation, optional AI extraction through an OpenAI-compatible endpoint, and PayPal Sandbox checkout. I kept policy evaluation separate from AI extraction and checkout so each step has its own explicit result and user action.

Challenges we ran into

A key challenge was configuring external services and ensuring the running app used the correct local settings. It also took care to make the workflow clear, AI extraction is not policy approval, policy approval is not buyer approval, and creating an order is not the same as capturing it. Handling idempotency and making configuration errors understandable were also important parts of making the demo easier to test.

Accomplishments that we're proud of

I’m proud to have brought the core idea together in one interactive prototype: natural-language purchase understanding, deterministic spending guardrails, and a separately controlled Sandbox checkout flow. The project makes clear that an AI model cannot override policy or complete a payment by itself.

What we learned

We learned how to pair AI extraction with deterministic validation, treat model output as untrusted input, and design API integrations as explicit, testable steps. We also learned how much clear interface feedback matters when a user is moving through several decisions and approvals.

What's next for SpendSentinel

Next, I would improve setup guidance and error messages, test the AI and PayPal Sandbox flows end to end with valid credentials, and strengthen the policy and review experience. Any future production use would also require substantial security, compliance, identity, and operational work, this prototype is for demonstration with synthetic data only.

Built With

Share this project:

Updates

Submission history