AgentSDK
Shopping assistant for storefronts

One script tag. Your store gets a shopping assistant.

It learns your store's own API, registers that store's tools, and runs them in the shopper's browser tab, using the shopper's own session. Nothing is configured per store by hand.

See the embedHow it works
<script src="https://<your-agent>.workers.dev/a.js"
        data-site="pk_live_..." async></script>

How it works

The model runs on Cloudflare. Every tool call runs back in the shopper's tab, against your own store.

1

Learn the store

We fingerprint the platform. Magento 2 and BigCommerce get a ready-made tool pack. Any other store is learned from how its own pages call its API.

2

Register local tools

The page verifies a signed manifest, then registers only the tools that fit the current page: search, product details, cart.

3

Chat

The shopper talks to an agent on Cloudflare Workers. It can only call tools that are in the signed manifest.

4

Run in the tab

Each call is a same-origin request with the shopper's cookies and a fresh CSRF token. Results are trimmed and redacted before they leave the page.

Learns stores it has never seen

For a store with no pack, tools are learned from real shopper traffic, checked, tested, and shipped on their own.

Observe

Records the shape of the page's own API calls, never the values. Cookies, auth headers and checkout or account paths are never read.

Propose and check

A model proposes what each endpoint is. Code builds the tool and runs static rules and a replay against recorded responses.

Canary

A fresh anonymous session searches, adds to cart, changes the quantity and removes it. Never logged in, never past the cart.

Ship and heal

Tools that pass go into a newly signed manifest. A tool that breaks is pulled and learned again.

The shopper stays in control

Every tool has a risk tier that is worked out from the request itself, and the stricter of the declared and derived tier wins.

TierExamplesWhat the shopper sees
ReadSearch, product details, view cartNothing extra
CartAdd, change quantity, removeOne Allow card per conversation, plus Undo on every change
SubmitNewsletter, back-in-stock alertA confirmation card for every call, built from the real request
CommitCheckout, payment, password, addressNever registered, never run

Tools can only reach the page's own origin and cannot set authorization, cookie or host headers. Store text reaches the model wrapped as untrusted data. The manifest is signed with Ed25519 and verified in the page. Shopper consent signals are respected, and conversations are deleted after 30 days.

Where it stands

Early build. The Magento 2 and BigCommerce packs and the learning pipeline are tested against mock stores that follow the platforms' public endpoint shapes, not yet against live stores. Self-serve onboarding, a merchant dashboard and a Shopify pack are not built. Shopify stores are not supported.