Product structured data for AI shopping agents: what to include and how

A person sees the price on the page. An AI agent has to find it in the code, and the surest place is data written for machines. Here is what product data an agent needs, a complete example and the mistakes we see most often.

By Kupeta4 min read

Why agents need it

An AI agent reading a product page has to answer a few questions without error: what is it, how much does it cost, in which currency, is it in stock, and which variant is it. From the page text it can guess, and sometimes it guesses wrong: it takes the old crossed-out price, the price of an accessory, or the price without VAT.

Structured data removes the guessing. It is a short block in the page's code, in the shared schema.org vocabulary, that says the same things the page shows, only for machines. Search engines have read it for years; AI agents and the search indexes behind assistants read it too.

The properties that matter

PropertyWhat it saysWhy an agent needs it
nameProduct nameTo know it found the right product
offers.pricePrice as a number, e.g. 24.90To compare and stay within a budget
offers.priceCurrencyCurrency code, e.g. EURA price without a currency is ambiguous
offers.availabilitye.g. https://schema.org/InStockNot to choose what can't be bought
sku / gtin13Your code / the barcode (EAN)To match the same product across stores
brandThe brandShoppers often ask for one
imageProduct photosAgents that see check the picture
descriptionA short descriptionContext for choosing
offers.urlThe product's addressWhere to buy it

The first four are the minimum: without them Kupeta reports the data as incomplete. The product code is what lets an assistant tell that the T-shirt in your store is the same one it saw elsewhere.

A complete example

Put a block like this in the HTML of each product page, with your values. JSON-LD is the form Google recommends, and it sits apart from the page's design:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Organic cotton T-shirt, black",
  "sku": "TS-BLK-M",
  "gtin13": "0000000000000",
  "brand": { "@type": "Brand", "name": "Example Brand" },
  "image": ["https://your-store.com/images/ts-black.jpg"],
  "description": "Heavy organic cotton T-shirt with a regular fit.",
  "offers": {
    "@type": "Offer",
    "url": "https://your-store.com/products/t-shirt-black?size=m",
    "price": "24.90",
    "priceCurrency": "EUR",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>

Products with variants

When a product comes in sizes or colours, describe each variant so its price and availability are clear. schema.org has ProductGroup with hasVariant and variesBy for this; a simpler way is one Offer per variant with its own sku, price and availability. What matters is that an agent can tell whether size M in black is in stock, not only whether the T-shirt is.

In the HTML from the server, not only from scripts

Some agents don't run the page's JavaScript. They read only what the server sends. If your name, price or structured data appear only after scripts run, to them the product page is empty.

To check: open a product, view the page source (not the inspector) and search for the price. If it isn't there, ask your developer for server-side rendering of the product page, or at least of the name, price and the JSON-LD block.

Common mistakes

  • Price with a currency sign or spaces, like €24,90. Use a number with a dot, and the currency separately.
  • Data that doesn't match the page, for example an old price or “in stock” for a sold-out product. Agents then trust the wrong thing, and Google may ignore the data.
  • Two different Product blocks from the theme and a plugin, each with another price. Keep one.
  • Availability for the product, not the variant. The agent chooses a size that is sold out.
  • Data only on the category page, not on the product itself.

On your platform

  • Shopify: most themes add Product data themselves. If it's missing or incomplete, check the product template of your theme or your SEO app.
  • WooCommerce: adds Product data itself. If it's missing, a theme or plugin may have turned it off; check your SEO plugin first.
  • Shoptet and other platforms: usually built in; check a product's page source and fill in the product codes in the administration.

To test it, paste a product's address into Google's Rich Results Test or the schema.org validator. The free Kupeta test checks the data on a real product page and tells you which properties are missing. How Kupeta tests.

Questions

JSON-LD or microdata?

Either is valid schema.org. JSON-LD is easier to maintain because it sits apart from the page's design, and it's the form Google recommends.

Does structured data help my Google ranking?

It isn't a ranking boost by itself, but it lets Google show prices and availability in results, and it lets AI assistants read your products without guessing.

Do I need structured data if I use a commerce protocol?

Yes. Protocols are young and not every assistant uses them; most agents still read your product pages, and structured data is how they read them reliably.

Sources