Agentic commerce · 3 min read
Shopify AI agents: what a buying agent needs from your store, and what to build first
An AI agent shopping your Shopify store is not a visitor in your theme. It is a client of your data. This is what that client needs, what we build for our own storefronts, and the order to build it in.
An agent is a client, not a visitor
Strip the hype off first. An AI agent sent to buy from your store does not scroll your hero section, admire your photography, or read your brand story. It reads product records, checks availability, compares terms, and reaches checkout through whatever machine surface you exposed. Everything it does happens in fields, not pixels.
We wrote up the platform-side prep separately in Shopify agentic commerce: the metafields, the catalog surfaces, the admin checklist. This piece is the other half. Once the data is honest, what do you actually put in front of the agent, and in what order?
The first thing an agent looks for
Before it touches your catalog, an agent needs to know your store has a machine surface at all. The two artifacts that earn that attention today are llms.txt and openapi.json. The first tells an agent, in plain markdown, what your site offers and where the machine-readable parts live. The second describes your endpoints in a schema the agent's framework can turn into calls without you writing an integration per agent.
Neither is a standard in the formal sense yet, and we would not wait for one. They work because the agents being built now already look for them. A store that publishes both is legible to a developer's agent in an afternoon. A store that does not is invisible until somebody writes a scraper for it, and scrapers break silently.
This is the cheap layer. Two files, an afternoon, real surface area. It is also the layer that gets developer attention before agent traffic is worth optimizing, which is why the developers page version of our catalog reads like an API doc and not a brand page.
What the MCP server actually exposes
Past the discovery files sits the real surface: an MCP server that exposes your catalog as tools rather than pages. Ours reads like the agent's job list: search the catalog, read a product, resolve a variant, create a checkout, check an order. Under the hood those tools call the same normalized catalog that already powers our 42,865 products, so the agent sees the same stock and pricing truth a shopper does.
The design decisions, tools versus resources, where the checkout boundary goes, how you authenticate a machine client, are their own subject, and we wrote that up in MCP server design for a storefront. The short version: the server is not the first thing to build. It is the third, because it only works as well as the data and the contracts under it.
The build order we would defend
Sequence matters more than ambition here. This is the order we would build it again:
[object Object]
Each step works if the next one never ships. A store with complete data is already better for agents. A store that stops after the discovery files still earns developer attention. The mistake is building the server before the data, which ships a beautiful tool list wrapped around stock truth that is wrong.
What agents can and cannot do today
Can: search a catalog against a constraint, read product and variant data, compare terms, build a cart, and hand a prepared checkout to a human. On furniture the constraint queries are the real test, a three-seat sofa under a price, in a dog-proof fabric, deliverable by a date, and a store with structured lead times and honest stock answers it.
Cannot: reliably pay without a human in the loop on most stores, negotiate, or interpret a catalog whose truth lives in prose and theme badges. Delegated-payment protocols are landing, but today the money still moves under a person's confirmation, which is the right boundary anyway.
That is the honest scope. Agents are a new client of the same clean data your best customers already benefit from. Build it last, after the data is true, and it is one more surface instead of one more fire.
Questions this answers
What does an AI agent need from a Shopify store?
Structured access, not a theme. At minimum: complete product data it can read as fields, a discovery surface like llms.txt or openapi.json, and a stable API or MCP server that exposes search, product detail, and variant resolution. Checkout comes after, with a human confirming the payment on your normal checkout.
Do I need an MCP server for my Shopify store?
Not first. Get the data honest and publish machine-readable surfaces; those help every agent already crawling the web. An MCP server becomes worth building when agents are a real channel for you, because it is the layer that turns catalog truth into callable tools. We covered the design in our MCP server piece.
What is llms.txt and does my store need one?
A plain markdown file at your site root that tells an AI client what your site offers and where the machine-readable parts live. It is not a formal standard yet, but agents being built now look for it. It costs an afternoon and earns real discoverability, so yes.
Can an AI agent actually check out on Shopify today?
Partially. An agent can build a cart and create a checkout session; the payment still completes under a human's confirmation on your checkout page in the deployments we trust. Fully delegated in-conversation payment is arriving via new protocols, but the human-confirmed boundary is the right default for now.
What should I build before an agent-facing surface?
The data. Complete metafields, meaningful variant titles, honest availability and lead times, and machine-readable policies. An agent repeats whatever your data says at machine speed, so a wrong stock flag becomes wrong answers everywhere. The prep checklist is in our Shopify agentic commerce piece.
Is agent traffic real enough to build for yet?
Real enough to prepare for, not yet real enough to overbuild for. The cheap layers (data completeness, llms.txt, openapi.json) pay off immediately in developer and agent discoverability. The deeper build, a dedicated MCP server and checkout boundary, is justified once you can measure the referrals.
Build the surface the agent actually uses.
We build MCP servers that expose real catalogs to agents, on top of the same data layer that keeps 42,865 products honest. See the services or the developers page.