Inspiration

Shopping for a subscription usually means clicking through filters, a cart, a checkout and an account page. I wanted to see how far a shopper could get just by saying how they play. Slime Lime is a fictional clean-formula gaming soda, so the shopper is a gamer at 2 AM who wants something light on caffeine and doesn't want to leave their chair.

What it does

The Flavor Concierge is an AI agent on the Slime Lime storefront.

  • Builds your pack: describe how you play ("ranked FPS late at night, keep it light on caffeine") and it picks flavors from the real lineup, asks at most one question, and fills the cart.
  • Checks out with PayPal: one-time orders through PayPal Orders v2, or a recurring PayPal Subscription at the cadence you choose.
  • Manages your subscription: ask "what's my subscription?", "pause it", "resume it" or "cancel it". It changes nothing until you say "confirm".
  • Remembers your usual: "get my usual" reloads your last order at today's prices, and won't start a second subscription if you already have one.
  • Hands-free voice mode: talk to it the whole way, with no wake word.

Payment is never approved by voice. The shopper always taps the PayPal button themselves. Everything runs in the PayPal sandbox with test money.

How I built it

  • Frontend: a no-build React 18 single-page app, with three.js for the 3D bottle and GSAP for motion.
  • Backend: Node serverless functions on Vercel for PayPal and the agent.
  • Agent: Claude Haiku 5.5, with Gemini as an automatic fallback. Gemini picks up from whatever Claude's tools already did, so a retry never opens a second PayPal order.
  • Agent tools: build_pack, start_checkout, reorder_usual, set_cadence, subscription status, pause, resume and cancel, plus get_order from the PayPal Agent Toolkit.
  • PayPal: Orders v2 with the JS SDK v6 popup and capture, and Subscriptions with billing plans created automatically per cadence.
  • Voice: Chrome's speech recognition for listening and spoken replies.

Safety by design

  • Prices are set on the server. The browser and model only send flavor IDs and quantities.
  • The model never sees payer details. PayPal order data is reduced to status and amounts first.
  • Subscription IDs are HMAC-signed, so only the browser that started a subscription can change it.
  • Abuse limits: oversized requests refused before any model call, 5 tool steps per turn, 10 requests per minute per IP.

Challenges I ran into

  • Keeping voice natural while making sure money never moves on a misheard word.
  • Making the Gemini fallback safe, so a failed Claude turn resumes without a duplicate PayPal order.
  • Creating subscription plans automatically, so nobody copies plan IDs into settings.

What I learned

Agentic commerce works best when the agent handles the choosing and the paperwork, and the human keeps the final tap on money. Server-side pricing and narrow tool outputs matter more than prompt wording.

What's next

  • Live PayPal payments instead of sandbox.
  • Voice support beyond Chrome.
  • Accounts, so "my usual" works across devices.

Built With

Share this project:

Updates

Submission history