Inspiration
AI assistants are becoming a place where people shop. PayPal's Agent Ready and Store Sync are built for this, but access is limited, and the small sellers who could gain the most are left out. We kept thinking of a handloom exporter in India who sells through WhatsApp messages and a spreadsheet. She has great products but no way for an AI agent to find them or buy them safely.
OpenAisle is our answer: any small shop becomes agent-ready in a few minutes, with PayPal doing the payments.
What it does
For the merchant
- Messy catalog in, clean catalog out. Paste a product list exactly as it lives in WhatsApp or a spreadsheet. The AI turns it into structured products and gives an Agent Readiness score.
- A store for AI agents. Every store gets its own MCP endpoint and a Shop with AI chat on the storefront. Both use the same five tools:
search_products,get_product,create_checkout,get_order_status,get_store_info. - Live dashboard. Every agent interaction appears in an audit feed, alongside orders, revenue captured, checkouts created and conversion.
- Missed Demand. The store clusters real agent searches that found nothing into products the merchant should add.
- Merchant Copilot built on the PayPal Agent Toolkit. Refund an order, add shipment tracking, or create and send an invoice just by asking, or ask free-form questions about the store.
For the buyer or the buyer's agent
- Ask for "a silk scarf under $50". The agent searches the real catalog, confirms the items and total, and creates a PayPal order.
- The agent can never move money. The buyer approves and pays on PayPal.
- Any outside AI, such as Claude Desktop, can shop the same store over MCP with the same tools and the same rules.
Trust model
- Prices are always recomputed from the database. The agent cannot change them.
- Stock is checked, and there is a per-store maximum order value.
- Checkout needs explicit confirmation in the web chat.
- Payment capture happens only after the buyer's PayPal approval, and webhooks are signature-verified.
How we built it
- App: Next.js (App Router, TypeScript), Tailwind and shadcn/ui, Prisma with Postgres, hosted on Render.
- PayPal: Orders v2 (create and capture, with a return page and an idempotent capture), refunds, invoicing, shipment tracking, and signed webhook verification. The merchant copilot uses
@paypal/agent-toolkit, which we bridged into the Vercel AI SDK's tool format. Money is handled in integer cents throughout. - AI, all on free tiers: Groq (
gpt-oss-120b) as the main model, with automatic fallback to Gemini Flash. The same models power catalog normalization, the readiness score, the shopping assistant, Missed Demand clustering and the copilot. - MCP: per-store endpoints using
mcp-handler(Streamable HTTP, stateless), so any MCP client can connect. - Copilot UX: common actions (refund, tracking, invoice, status) run as direct commands without an LLM, so they are fast and predictable. Free-form questions go through the AI with tools.
Challenges we ran into
- Making agent checkout safe. The hardest design question was not "can an agent pay?" but "what must it never be able to do?" We ended up with server-side price recomputation, stock and policy checks, confirmation, and buyer-only approval on PayPal.
- Running on free AI limits. A single free provider was not reliable enough for a live demo, so we added a model fallback layer with friendly error messages.
- Bridging two tool ecosystems. The PayPal Agent Toolkit exposes tools in one format and the AI SDK expects another, so we wrote an adapter between them.
- Idempotent payments. Returning from PayPal, webhooks and a page refresh can all try to capture the same order. We made capture a conditional update so it can only happen once.
- Free hosting cold starts, which we handled with a health check and keep-warm pings.
Accomplishments that we're proud of
- A real end-to-end flow: messy WhatsApp-style text becomes a store, an AI agent builds a checkout, and a buyer pays on PayPal, all in sandbox.
- The same tools serve the web chat and any outside MCP client, so there is one set of safety rules.
- Missed Demand turns what agents could not find into a to-do list for the merchant.
- Everything runs on free AI APIs and free hosting, which matters for the small sellers this is built for.
What we learned
- Agent commerce is mostly a trust problem. The design is about limiting what the agent can do, not what it can do.
- MCP is a strong way to make one set of tools reusable by many AI clients.
- Small merchants do not need a bigger platform. They need their existing mess made legible to agents.
- Keeping money logic in integer cents and capture logic idempotent saves a lot of pain.
What's next for OpenAisle
- Sync with Shopify, WooCommerce and Etsy instead of pasted catalogs.
- Per-agent spending limits and merchant-set approval rules.
- Real PayPal Store Sync and Agent Ready integration once available to small sellers.
- Multi-currency and shipping-rate support, plus more languages for non-English catalogs.
Built With
- agentic-ai
- ai-agents
- claude
- gemini
- groq
- mcp
- model-context-protocol
- nextjs
- paypal
- paypal-agent-toolkit
- paypal-orders-api
- paypal-webhooks
- postgresql
- prisma
- react
- render
- shadcn-ui
- tailwindcss
- typescript
- vercel-ai-sdk