Short answer: an AI agent reads the HTML your server returns, often without running JavaScript. It looks for a product name, a price with its currency, a stock status and a unit, first in schema.org JSON-LD and then in visible text. If those facts only appear after scripts run, or a bot challenge answers before the page does, the agent has nothing reliable to quote or buy.

People tend to picture an AI shopping agent as a very fast human with a browser. Some are close to that. Many are closer to a reader that fetches a URL, parses the response and decides what it saw. Designing a product page for that reader is mostly about removing ambiguity. This article walks through what the agent looks for, in the order it usually fails.

Step 0: Does the page answer at all?

Before anything on the page matters, the request has to succeed. Bot protection in front of a store can return a challenge, a block page or an error to automated visitors. If that happens to an agent that identifies itself honestly, nothing below is reached.

You can check what a given user agent receives with one command. The user agent name is an example; check each AI company's own crawler documentation for current names, for instance OpenAI's list of its bots.

curl -s -o /dev/null -w "%{http_code}\n" -A "OAI-SearchBot" https://www.example.com/products/some-item

A 200 is what you want. A 403, 429 or 503 suggests something in front of the site is refusing that bot. Note the limit of this test: it shows how your edge treats a user agent string, not how it treats a verified bot from its published IP ranges, so treat it as a smoke test. Axidort's guide to robots.txt for AI agents covers the difference between robots.txt, which is a request, and firewall rules, which are enforcement.

Step 1: Structured data in the server response

Once the page loads, the cleanest source for an agent is schema.org Product and Offer markup in JSON-LD. According to Axidort's structured data guide, the practical minimum is name, a sku or gtin, price, priceCurrency and availability, and the markup has to match what the page shows.

A minimal example, for a bolt sold in boxes of 100:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "M8 hex bolt, box of 100",
  "gtin13": "5012345678900",
  "offers": {
    "@type": "Offer",
    "price": "12.40",
    "priceCurrency": "GBP",
    "availability": "https://schema.org/InStock",
    "priceValidUntil": "2026-12-31",
    "eligibleQuantity": {
      "@type": "QuantitativeValue",
      "minValue": 1,
      "unitText": "box"
    }
  }
}

Three details are worth copying:

  • Price as a number, currency as an ISO code. A formatted string such as a currency symbol plus a comma-separated amount is harder to parse than 12.40 and GBP.
  • A unit. A price per box and a price per bolt differ by a factor of one hundred. State the unit in the name or description, and in eligibleQuantity where it applies.
  • Availability from the same source as the page. Generate it from the stock data that drives the visible button, not from a separate field someone updates by hand.

The schema vocabulary itself is documented at schema.org/Product and schema.org/Offer.

Step 2: Is the markup actually in the HTML?

This is the most common silent failure. If a tag manager or a client-side script injects the JSON-LD after the page loads, it does not exist for a reader that does not run scripts. The structured data guide above says this plainly: markup added after load is invisible to agents that do not run scripts.

A quick test: fetch the page without a browser and search for the markup.

curl -s https://www.example.com/products/some-item | grep -c "application/ld+json"

A result of zero on a page that shows markup in the browser means it is added client-side. Move the rendering to the server, or into your template.

Step 3: Visible price and stock

Structured data is not the only thing an agent reads. Browser-driving agents look at what is on the screen, and reader agents look at the HTML text. Both need the price and stock status to be ordinary text, not an image, and not a value filled in later by a script.

A short checklist for the visible side:

  • The price, currency and unit sit near the product title, as text.
  • Stock status is a word ("In stock", "Back order"), not only a coloured dot.
  • Variant choices (size, colour) are real form controls with labels, so an agent can pick one and see the price change.
  • The visible number and the JSON-LD number are the same. The Axidort guide goes as far as saying a mismatch is worse than no markup, since an agent may quote the wrong figure.

Step 4: Can the agent move forward?

Reading the page is only half of a purchase journey. After that the agent has to operate search, choose a variant and reach a cart. Common stoppers are mandatory accounts before checkout, quote-only selling, unlabelled icon buttons and filters built from plain divs. Axidort lists these in its guide to why AI agents fail at checkout, together with bot protection.

None of this means you must let every automated visitor through. It means deciding deliberately which declared agents you welcome, and making sure that decision is enforced where you think it is.

A five-minute audit

  1. Request a product URL with a plain HTTP client and a few AI user agent strings. Note any non-200 response.
  2. Fetch the page without scripts and confirm the JSON-LD is in the response.
  3. Validate the markup with Google's Rich Results Test or the Schema Markup Validator.
  4. Compare the price, currency, unit and availability in the markup with what the page shows.
  5. Walk through search, product, variant and cart as a keyboard user. Anything you cannot do without a mouse hover is a risk for an agent too.

FAQ

Do AI agents run JavaScript? It depends on the agent. Some drive a full browser, others fetch HTML only. Designing for the second kind, with facts in the server response, works for both.

Is structured data enough to get recommended by an AI assistant? No. The structured data guide calls it a precondition, not a guarantee. Price, availability, reputation and whether the agent can reach the page also matter.

Should I add review ratings to the markup? Only if the reviews are shown on the page. Markup that is not visible to shoppers is a mismatch.

Is llms.txt required? No. It is at most a cheap extra signal, and it does not replace the page-level facts above.

Where does a bot challenge fit in? Before everything. If the response is a challenge page, the agent never sees your markup, so test access first.

Where to go next

To see where an agent stops on your own store, you can run the free Axidort Score. Get my score takes about three minutes and shows the step where the agent stopped. It is an automated opinion from one scan, so rescan to confirm any change. The structured data guide is free too.

If you run a business and want help with this, you can talk to the Axidort team. Scope and price are agreed before any work starts.

Disclosure: ByteSprint is published by the team behind Axidort.