Inspiration
AI agents are starting to shop for people: "reorder my tea", "find a strong black tea under $15 and buy it". But when we pointed agents at ordinary online stores, they failed almost every time. Prices only appeared after scripts ran, cookie walls and captchas blocked them, checkouts forced account creation, and there was no safe way for an agent to pay without being handed a card number.
## What it does Lintel makes any online store buyable by AI agents.
- Scan. Paste a store's URL. Lintel checks it the way an agent sees it and gives an agent-readiness score out of 100, with a plain-language fix for every failure.
- Fix. Lintel imports the catalog (Shopify, WooCommerce, sitemap, product pages or CSV) and uses AI to rewrite it into structured data agents can match: origin, type, size, notes. Prices and SKUs never change.
- Install. The merchant pastes one snippet into their store's
<head>. It gives the store: - WebMCP tools that browser agents call directly:search_products,add_to_cart,checkout_with_paypal, and more. - An agent manifest with an x402 checkout for headless agents. - Prove it. Lintel sends a real AI agent to buy something. At checkout the store answers
402 Payment Requiredwith a PayPal order. A human approves it in PayPal, the agent retries with proof, and Lintel captures the payment straight into the merchant's PayPal account.
For agent builders, we published @lintel-agent/sdk: discover(), getCatalog() and buy() work against any Lintel store.
The whole x402 + PayPal flow is handled, and the agent never touches card details.
How we built it
- App: Next.js 15 (App Router), React 19, TypeScript, Tailwind, GSAP for motion, SQLite. Deployed on Render.
- Payments: PayPal Orders v2 (sandbox). We built an x402 v2 payment scheme,
paypal-order:- The
PAYMENT-REQUIREDheader carries the order and its approval link. - The agent sends proof in
PAYMENT-SIGNATURE. - The server verifies the order is approved for the exact cart and amount, then captures it once and returns
PAYMENT-RESPONSE. - The payee is the merchant's own PayPal business email, so money goes straight to them.
- Agents: a browser agent runs in a Kernel cloud browser and calls the store's WebMCP tools. A headless agent uses the x402 checkout directly. LLMs are Groq (primary) with Gemini as fallback.
- Scanner: fetches the home page, a product page, the cart,
robots.txtand the agent manifest, then scores weighted checks:
- The
$$ \text{score} = \sum_{i} w_i \cdot f_i, \qquad f_i \in {1, \tfrac{1}{2}, 0} \text{ for pass, partial, fail}, \qquad \sum_i w_i = 100 $$
Challenges we ran into
- Chrome's built-in WebMCP. In the cloud browser,
executeToolrejected a tool name and needed the registered tool object instead. Our agent failed only in production until we found it.- Verifying a merchant's PayPal. The sandbox accepted made-up payee emails when creating an order. We now mark a PayPal account confirmed only after a real captured payment.
- Paying safely. We had to make sure an approved order can't be replayed for a different cart and is captured only once. Store URLs also had to be guarded so the scanner and agents can't be pointed at internal addresses (SSRF).
## What we learned
- Most "agent-unfriendly" stores aren't broken. They were designed only for people. Small, standard additions (structured data, callable tools, an HTTP checkout) change everything.
- x402 fits PayPal well. "Payment required" plus a human approval step gives agents a way to pay, while the person stays in control and the merchant is paid through a system they already trust.
## What's next
- Move from PayPal sandbox to live payments.
- One-click installs for WooCommerce and Wix.
- Spending limits and pre-approved budgets, so a trusted agent can buy small items without approving each one.
Built With
- gemini
- google-oauth
- groq
- gsap
- javascript
- kernel
- next.js
- node.js
- npm
- paypal
- paypal-orders-api
- playwright
- react
- render
- sqlite
- tailwindcss
- typescript
- vercel-ai-sdk
- vitest
- webmcp
- x402
- zod

