Inspiration

AI agents can already search, compare, and recommend, but they stop at the moment that matters: paying. Handing an AI your payment details is a trust problem. We wanted to show what agentic commerce looks like when the agent does the legwork and the human keeps control of the money. [Add one personal sentence about why this problem matters to you.]

What it does

AgentCart is a mobile shopping assistant. You tell it what you want in plain language, for example "order the cheapest frozen food bundle under $30," and the agent:

  1. Searches the product catalog for matching items
  2. Compares options by price, fit, and your constraints
  3. Builds a cart
  4. Shows a confirmation summary (items, total, shipping)
  5. Completes payment through PayPal only after you tap Confirm

The agent can never charge you on its own. Payment capture is blocked on the server until a user confirmation is recorded.

How we built it

  • App: Flutter/Dart chat interface with product cards, cart, confirmation step, and order status screen
  • Backend: Firebase Cloud Functions and Firestore
  • AI: with function calling. The model decides which tool to call (search, compare, build cart, create order), and our backend executes it and enforces the rules.
  • PayPal: Orders v2 API in the sandbox to create and capture orders, [plus webhooks for payment status updates]
  • Safety design: The model never holds payment credentials and cannot call capture directly. Capture requires a confirmed order ID tied to a user tap.

Challenges we ran into

getting the model to reliably respect budget constraints, keeping tool calls structured, handling cases where nothing matches, or the PayPal order approval flow in a mobile app.]

Accomplishments that we're proud of

  • A working end-to-end flow from natural language request to completed PayPal sandbox payment
  • A confirmation gate enforced on the server, not just in the UI

What we learned

designing tool boundaries for AI agents, working with PayPal's order lifecycle, and why human confirmation is the key piece of trustworthy agentic commerce

What's next for AgentCart

  • Connect to real merchant catalogs instead of a seeded demo catalog
  • Per-user spending limits and approval rules
  • Voice ordering
  • Support for recurring and repeat orders ("reorder my usual")

Try it

Setup and run instructions are in the repository README

Built With

Share this project:

Updates

Submission history