Make headless storefronts catalogue legible to AI agents

To make headless storefronts catalogue legible to AI agents, treat the catalogue as a public API: server-render product and variant pages, expose identifier, price, availability and shipping in…
Make headless storefronts catalogue legible to AI agents

Quick answer. To make headless storefronts catalogue legible to AI agents, treat the catalogue as a public API: server-render product and variant pages, expose identifier, price, availability and shipping in structured data, keep one canonical URL per variant, and publish a machine-readable feed. Agents fail on client-only rendering, ambiguous variant naming and missing stock data, not on visual design.

What matters most
  • Agents read the first HTTP response, not the hydrated page, so catalogue facts have to be server-rendered.
  • Identifier, variant structure, price, availability and delivery data decide whether a product can be compared at all.
  • One URL per sellable variant, linked with ProductGroup markup, prevents the most common machine misreading.
  • Feeds, read APIs and MCP servers extend reach but do not repair a product page that returns nothing.
  • Agent traffic cannot be cleanly segmented in analytics; self-fetch diffs and fixed prompt tests are the honest substitutes.
What does an AI agent actually read on a headless storefront?

An agent does not browse the way a person does. It fetches a URL, parses the response body, follows links and looks for machine-readable statements about the thing it is comparing. Making headless storefronts catalogue legible to AI agents is therefore a rendering and data problem before it is a content problem. If the product page only assembles in the browser, the agent receives an empty shell and a script tag.

That failure is structural. Most headless builds optimise for the human path, so the merchandising team sees a fast, interactive page while the crawler sees a skeleton. Price, stock, variant structure and identifiers may arrive a second later, after hydration, or never. Rank what an agent can consume and the order does not change:

  • The served HTML of the product URL, with no JavaScript executed.
  • JSON-LD embedded in that HTML, parsed as data rather than read as prose.
  • A product feed or sitemap an agent can fetch directly without a browser.
  • A documented read API, if you publish one and it holds up under rate limits.
Where to go next
Which catalogue fields decide whether an agent can use a product?

Agents compare on a small set of attributes. When one is missing the usual outcome is not a wrong answer, it is no answer. The product drops out of the shortlist silently and you never see the query that removed it.

The table below is the practical checklist. Every row maps to a field you can inspect on a live URL today.

FieldWhy an agent needs itWhere to publish itTypical headless failure
Product identifier (GTIN, MPN, SKU)Matches the same item across retailers and sourcesProduct JSON-LD with gtin13, mpn and brandIdentifier lives in the PIM and never reaches the template
Variant structure (size, colour)Stops the agent conflating variants or quoting the wrong priceProductGroup with hasVariant, or a URL per variantSwatch logic runs in the browser; all variants share one URL
Price and currencyComparison and budget checks before a recommendationOffer with price, priceCurrency and priceValidUntilPrice fetched by JavaScript after hydration
AvailabilityThe agent must know whether the item can be boughtOffer.availability using ItemAvailability valuesStock is only checked when add-to-cart is clicked
Shipping cost and delivery windowDecides whether the offer is competitive at allOffer shipping details, or a documented shipping endpointOnly revealed inside checkout
Material, dimensions, compatibilityAnswers attribute questions without a human in the loopadditionalProperty, or a spec table in the served HTMLSpecs sit behind an accordion loaded on demand
How do you make a client-rendered storefront readable without a rebuild?

You do not have to abandon the headless architecture. You need a rendering path that returns catalogue facts in the first response, and you need to stop hiding variants behind client state.

Google’s guidance on JavaScript and search is the useful baseline. Rendering can work, but it adds failure modes and delays, and agents are less patient than Googlebot. Assume no JavaScript and you will build the right page.

  • Server-render or statically generate product, collection and variant routes. Next.js App Router with server components, Nuxt with SSR or ISR, Hydrogen on Shopify, and the Composable Storefront patterns in Adobe Commerce and Salesforce all provide a server-rendered path. Use it for catalogue routes.
  • Emit JSON-LD in the served HTML. Injecting it later with a tag manager repeats the mistake of rendering the price in the browser.
  • Give every sellable variant its own URL. Query-string variants that only exist after a click are invisible to a crawler.
  • Keep facets under control. Filters that generate thousands of near-duplicate URLs consume budget that belongs to products. Choose which facets earn an indexable URL and noindex the rest.
  • Publish an XML sitemap covering products and variants, and a short llms.txt or markdown summary at the root if you want one. Treat it as a note to machines, not a contract.
Do you need a feed, an API, or an MCP server?

These solve different problems and none of them replaces clean HTML. Teams often buy the most modern option first and then wonder why the product page still reads as blank.

There is no agreed standard yet for an agent completing checkout on an arbitrary storefront. Most agent-mediated purchases end with a handoff to the retailer’s own checkout. Catalogue legibility is the part you can win now; checkout legibility is the part to watch.

  • A product feed, in Merchant Center format or your own scheduled JSON export, is the cheapest way to give an agent accurate price and availability across thousands of SKUs. It is a snapshot and it goes stale the moment a promotion ends.
  • A documented read API returns live stock and price. Version the endpoints and set rate limits a crawler can respect.
  • An MCP server exposes tools an agent calls rather than pages it parses. The protocol is public and documented, but how commerce will use it is unsettled, and building one does not fix a page that renders nothing.
How do you measure whether agents can read your catalogue?

You cannot cleanly segment agent traffic in analytics. User-agent strings are easy to spoof, many agent fetches never reach client-side measurement at all, and the rest land as direct or referral noise. Anyone promising a reliable agent-traffic dashboard is guessing. Measure what is actually observable.

The fixed prompt test is the closest thing to a real measurement, and it is still directional. It tells you whether comprehension is improving, not how much revenue that produced.

  • Fetch your own product URLs with JavaScript disabled and diff the result against the hydrated page. Anything in one and missing from the other is a gap.
  • Validate structured data with the Schema Markup Validator and Google’s Rich Results test. Fix errors first, then warnings.
  • Read server logs for known crawler user agents. Treat the count as a floor rather than a total.
  • Run the same twenty prompts against two or three assistants each month. Record whether your product is named, and whether the price and variant are right.
What should you fix first?

Order the work by how many products it affects and how cheap the change is. A JSON-LD block on the product template reaches every SKU in one deploy. A PIM migration does not.

Most teams finish the first three items in a sprint. The fourth is usually blocked by a shipping service that was never built to answer a pre-checkout question, so treat it as a project rather than a copy change.

  • Turn off client-only rendering for product and collection routes.
  • Add Product and Offer JSON-LD carrying identifier, price, currency and availability, emitted server-side.
  • Give variants their own URLs and link them as a ProductGroup.
  • Add delivery estimates to the offer data, or state plainly on the page that shipping is calculated at checkout.
  • Publish a feed on a schedule you can defend when a merchandiser asks why a price is stale.
Frequently asked questions

Do AI agents actually crawl my product pages?

Some do, and they behave differently from search crawlers. Training crawlers collect pages in bulk; retrieval crawlers fetch a page at query time to answer one specific question. Shopping assistants usually sit in the second group. They fetch a small number of URLs, parse the HTML and stop. If those URLs return an empty shell, the agent has nothing to compare and moves on to a retailer that served real data. Check server logs for known crawler user agents to see who already arrives.

Does server-side rendering fix everything?

No. Server rendering puts the facts in the response, which is necessary and not sufficient. The values still have to be correct and consistent across HTML, JSON-LD and any feed you publish. A server-rendered page with a stale price, or with variant data that contradicts the structured data, is worse than an empty one because the agent trusts it. Fix rendering first, then fix the data model behind it.

Should I publish an llms.txt file?

llms.txt is a proposed convention: a markdown file at the site root that points language models at your important pages. It is cheap to produce and it states your intent clearly. It is not a ratified standard, and no major assistant has committed to reading it. Publish one if you want, but do not treat it as a substitute for structured data in the HTML. Each page still has to carry its own facts.

Do I need a separate URL for every variant?

For variants customers search for, yes. Colour and size combinations each carry their own price and availability, and an agent that can see only one URL gets only one answer. If you cannot split the URLs, publish a ProductGroup with hasVariant entries so each variant’s identifier, price and stock sit in the structured data. What you must avoid is a page showing one price in HTML and a different set of options after a click.

Will better structured data get my products into AI answers?

It improves the odds that an agent can read and repeat your catalogue correctly. It does not guarantee inclusion, ranking or citation. Retrieval systems choose which sources to consult and how to summarise them, and those choices sit outside your control. What you control is whether the page states a clear identifier, price, availability and variant structure. If it does, you are eligible. If it does not, you are not.

What about reviews and ratings?

Aggregate ratings help but they are secondary. Agents care first about what the item is, what it costs and whether it can be bought. A missing review count rarely removes a product from a shortlist; a missing price or identifier often does. If you publish ratings, keep them in the structured data and keep them accurate. Marked-up review counts that do not match the visible page are a trust problem rather than an optimisation.

Sources
Check what your storefront actually serves

The audit fetches your product and variant URLs without JavaScript, validates the structured data, and lists the gaps between the page a customer sees and the page an agent reads.

Request the SEO audit

Make headless storefronts catalogue legible to AI agents