Inspiration
Shopping for a complete outfit across multiple stores is time-consuming and fragmented. Shoppers have to search several websites, compare products, manage multiple carts, manually track the total cost, and complete separate checkouts—a process that becomes especially frustrating when working with a strict budget.
Most AI shopping assistants stop at product recommendations. We wanted to build Claro to close the loop: an AI stylist that discovers products across stores, composes a coordinated look within a fixed budget, and completes the multi-merchant purchase in one unified PayPal checkout.
What it does
Claro turns multi-store outfit shopping into a single conversational workflow for users who need a complete look for a specific occasion (such as an outdoor autumn wedding guest outfit under $150):
- Conversational Discovery: The user enters an occasion, style preference, and budget. If details are missing, Claro asks clarifying questions before searching.
- Cross-Store Product Search: Claro searches separately for each outfit piece across merchants using Channel3 and displays them as shoppable cards.
- Budget Guardrail: Before presenting the final look, Claro validates the total cost in application code. If the outfit exceeds the budget, the agent swaps items until the total fits.
- Interactive Outfit Review: Users can inspect and sort outfit pieces by product, merchant, category, and price in an AG Grid review table while checking the total against their budget.
- Unified Multi-Merchant Checkout: Once the user approves the look, PayPal creates a single order containing separate purchase units for each merchant and captures payment only after explicit user approval.
How we built it
- Frontend & Styling: Built with Next.js 15 (App Router), React, TypeScript, and Tailwind CSS, featuring AG Grid for sorting and inspecting outfit components.
- AI Agent & Tooling: Powered by an OpenAI model via the Vercel AI SDK. The browser sends conversations to
/api/agent, where the agent orchestrates tools to search products, validate budgets (price_outfit), present final outfits, and interact with PayPal via the PayPal Agent Toolkit. - Product Discovery: Integrated Channel3 to run natural-language product queries with price and availability filters, normalizing results into a unified product format (with a deterministic mock catalog fallback if an API key is unavailable).
- Payments & Security: Integrated PayPal Orders v2 through server-side routes (
/api/paypal/orderand/api/paypal/capture) so all credentials stay on the server. Each merchant receiver is mapped to its ownpurchase_unitwithin a single PayPal order. - Deployment: Hosted and deployed on Render.
Challenges we ran into
- Enforcing Hard Budget Limits: LLMs can occasionally miscalculate totals or overlook budget constraints when combining multiple items. We solved this by moving budget enforcement into deterministic application code via the
price_outfittool, forcing the agent to replace items whenever the sum exceeds the user's cap. - Multi-Merchant Settlement in One Checkout: Coordinating payments across multiple independent stores without forcing the user through separate checkouts required structuring a single PayPal Orders v2 payload with distinct
purchase_unitentries mapped to each merchant payee. - Balancing Autonomy with Payment Safety: Ensuring the agent could autonomously shop and assemble outfits without ever triggering an unauthorized charge required strict human-in-the-loop guardrails so capture only runs after explicit PayPal checkout approval.
Accomplishments that we're proud of
- Moving beyond read-only AI recommendations to safe, end-to-end agentic commerce across multiple merchants.
- Combining deterministic budget validation and human-in-the-loop PayPal approval so users keep full financial control while saving significant shopping time.
- Building a clean, inspectable outfit review experience using AG Grid alongside a seamless single-checkout settlement breakdown.
What we learned
- Agentic commerce works best when LLM flexibility is paired with deterministic code guardrails for math, budget enforcement, and payment state transitions.
- PayPal Orders v2 multi-purchase-unit architecture is well suited for marketplace and multi-merchant agent workflows where one buyer approval settles funds to multiple receivers.
What's next for Claro
- Smarter Personalization: Tailoring recommendations based on fit, sizing, and past purchase history.
- Persistent Wardrobes & Profiles: Saving user preferences, sizes, and previously purchased pieces to style around existing items.
- Multi-Merchant Logistics: Adding delivery-date coordination across stores and a unified delivery timeline for multi-merchant orders.
- Expanded Checkout & Reconciliation: Supporting additional shipping/payment options and deeper merchant identity and settlement reconciliation.
Built With
- ag-grid
- channel3
- next.js
- openai
- paypal
- paypal-agent-toolkit
- paypal-orders-v2
- react
- tailwindcss
- typescript
- vercel-ai-sdk