Book a demo

Product schema for AI agents: the 13 fields that matter

An agent-ready product page carries one schema.org Product in JSON-LD, in the HTML the server sends, with a name, an image and an Offer that states price, currency and availability. Brand, GTIN, description, MPN, SKU, shipping, returns and real ratings complete it. The template below has all thirteen.

A product page tells a person what it sells through its layout. It tells software through its structured data: a schema.org Product block, usually written as JSON-LD in the page's HTML. Search engines and AI shopping agents read that block to learn the product's name, brand, barcode, price and stock without guessing from the design.

This is the list of fields our free AI visibility checker grades, what each one is worth, and why. A template you can copy is further down.

The 13 fields and their points#

FieldPointsschema.org propertyWhat it lets an agent do
Product markup15@type: Product in JSON-LDRead the page at all. Without it, every fact is a guess from the layout.
Offer price15offers.price, offers.priceCurrencyQuote a price. Google requires a price above zero and an ISO 4217 currency such as AUD.
Image10imageShow the product. Google requires it. An image only in the og:image tag doesn't count.
Availability10offers.availabilityConfirm it can be bought. InStock, OutOfStock, PreOrder or BackOrder.
Brand10brand.nameAnswer "show me Brand X". OpenAI's feed requires a brand.
GTIN10gtin13, gtin12, gtin14, gtin8 or gtinMatch the page to the same product elsewhere. Scored only with a valid check digit.
Name5nameSay what it is. Google requires it.
Description5descriptionAnswer questions about the product. Google strongly recommends it.
MPN5mpnSettle a match when there is no GTIN, or when two GTINs disagree.
SKU5skuRefer to the item by a stable id.
Shipping5offers.shippingDetailsAnswer "how much to deliver, and how soon".
Returns3offers.hasMerchantReturnPolicyAnswer "can I return it".
Rating2aggregateRating or reviewAnswer "is it any good". Only for real reviews.

The weights follow what decides whether an agent can identify, match and recommend a product. Google's merchant listing rules require only three things: name, image and an Offer with a price and currency. Those, plus the markup existing, are 45 of the 100 points. Brand and GTIN together are 20 more, because matching across retailers depends on them.

A JSON-LD template to copy#

Replace every value with your own. Keep the structure. It goes inside the page's <head> or <body>, in the HTML your server sends.

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "Harbour 1.7 L stainless steel kettle, brushed",
  "image": [
    "https://www.example.com.au/images/hbr-ktl-17-1x1.jpg",
    "https://www.example.com.au/images/hbr-ktl-17-4x3.jpg"
  ],
  "description": "1.7 litre cordless kettle in brushed stainless steel with a concealed element, boil-dry protection and a 360 degree base.",
  "brand": { "@type": "Brand", "name": "Harbour" },
  "gtin12": "012345678905",
  "mpn": "HBR-KTL-17",
  "sku": "KTL-0417",
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com.au/products/harbour-kettle-1-7l",
    "price": 89.00,
    "priceCurrency": "AUD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition",
    "shippingDetails": {
      "@type": "OfferShippingDetails",
      "shippingRate": { "@type": "MonetaryAmount", "value": 9.95, "currency": "AUD" },
      "shippingDestination": { "@type": "DefinedRegion", "addressCountry": "AU" },
      "deliveryTime": {
        "@type": "ShippingDeliveryTime",
        "handlingTime": { "@type": "QuantitativeValue", "minValue": 0, "maxValue": 1, "unitCode": "DAY" },
        "transitTime": { "@type": "QuantitativeValue", "minValue": 2, "maxValue": 5, "unitCode": "DAY" }
      }
    },
    "hasMerchantReturnPolicy": {
      "@type": "MerchantReturnPolicy",
      "applicableCountry": "AU",
      "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
      "merchantReturnDays": 30,
      "returnMethod": "https://schema.org/ReturnByMail",
      "returnFees": "https://schema.org/FreeReturn"
    }
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": 4.6,
    "reviewCount": 38
  }
}
</script>

Delete the aggregateRating block unless the page shows real reviews of this product. The brand, codes and URLs are made up for the example.

Rules the template follows#

  • One product, one block. Each product page carries one Product. Product snippets accept an AggregateOffer, but Google's merchant listings need an Offer, because the merchant has to be the seller.
  • Match the page. Price, stock and name in the markup should be what the shopper sees. Merchant Center disapproves a product when availability differs between the landing page, its structured data and the feed.
  • Use the specific GTIN property. Google recommends gtin13 for a 13-digit EAN and gtin12 for a 12-digit UPC, written as digits, not a URL. Store barcodes as text so a leading zero survives.
  • Never invent identifiers. If a product has no GTIN or MPN, leave the field out. OpenAI's spec says not to make up an MPN to replace a missing GTIN.
  • Shipping can live elsewhere. Google also accepts a store-wide shipping and returns policy in Organization markup and recommends it for a single policy. Our check looks for shippingDetails on the offer, so if you use the store-wide form, read a missing shipping line as a prompt to confirm it is there.
  • Render it on the server. Google can read JSON-LD that JavaScript adds, but warns that dynamically generated Product markup makes Shopping crawls less frequent and less reliable. Crawlers that don't run JavaScript see nothing at all. Why ChatGPT can't see your product page has the evidence.

How to check your markup#

Use more than one check, because each sees something different.

  1. View the source. Open the page, view its source (not the browser's inspector, which shows the page after JavaScript has run) and search for application/ld+json. If the Product block isn't there, it isn't in the server HTML.
  2. Schema Markup Validator. Paste the URL or the code into the Schema Markup Validator. It confirms the markup is valid schema.org and shows what it parsed.
  3. Rich Results Test. Run the URL through Google's Rich Results Test. It fetches the page as Google does and says whether it is eligible for merchant listings. Use the URL, not pasted code. Google notes the code input has JavaScript limitations.
  4. Our checker. It scores all 13 fields, flags a GTIN with a bad check digit, and gives you the JSON-LD for whatever is missing. It reads the server HTML, the way most agent crawlers do.

Frequently asked questions

What is product schema?
Structured data on a product page, written in the schema.org vocabulary, that states the product's facts (name, brand, barcode, price, stock) in a form software reads without guessing from the layout. JSON-LD is the most common way to write it.
Do ChatGPT and other AI agents read schema.org markup?
Google documents that it reads it for merchant listings. OpenAI says ChatGPT uses public web sources for product discovery but doesn't say how it parses a page. Markup in the server HTML is the most reliable machine-readable statement a page can make, so it is the safest bet for any agent.
What is the difference between the Schema Markup Validator and the Rich Results Test?
The Schema Markup Validator checks that your markup is valid schema.org. Google's Rich Results Test checks whether Google can use it for its own results, and fetches the page as Google does. Run both.
Should I use gtin or gtin13?
Google recommends the most specific property that fits, so gtin13 for a 13-digit EAN and gtin12 for a 12-digit UPC. Give the number only, not a URL form.
Should I add review markup if I have no reviews?
No. Add aggregateRating or review only for real reviews of that product, and follow Google's review snippet guidelines.

Sources

  1. Merchant listing (Product, Offer) structured data, Google Search Central
  2. Generate structured data with JavaScript, Google Search Central
  3. Availability [availability], Google Merchant Center Help
  4. Product feed schema, OpenAI
  5. Rich Results Test, Google
  6. Schema Markup Validator, Schema.org

product schemastructured dataJSON-LDschema markup validatorAI shopping agent

Was this article useful?

About the author

· Co-founder and CTO

Michael leads engineering at twelfth: the AI agents, the retail data behind them, and security.

Read next

AI shopping agents3 min read

Free: an AI visibility checker for product pages

Paste a product page URL and the free checker grades its schema.org Product markup against Google's and OpenAI's published specs, out of 100, and gives you the JSON-LD to add. The same check runs as one MCP tool, check_product_page, at twelfth.ai/tools/mcp. Neither needs an account.

By Michael Carter

AI shopping agents4 min read

Why ChatGPT can't see your product page

When an AI agent can't see a product page, the page is usually fine. The crawler was turned away by robots.txt, a bot wall or a rate limit, or it got HTML with no product markup because the markup only appears after JavaScript runs. Each has a check you can run in a few minutes.

By Michael Carter

AI shopping agents4 min read

ChatGPT product feed vs Google Merchant Center: one field list

OpenAI's product feed and Google Merchant Center need the same core facts: ID, title, description, page, image, price, availability, brand and, where it exists, a GTIN. Hold each one once, to Merchant Center's stricter limits, and both feeds come out of the same record. The differences are field names, a few values and OpenAI's seller and market fields.

By Michael Carter

Next step

Check your product page's schema

Paste a product page URL. The checker scores all 13 fields and gives you the JSON-LD for the ones that are missing.

Request a topic

What should we write about?

Ask a question about retail, pricing, range, forecasting or AI. The team reads every request and picks the next articles from them. Or email hello@twelfth.ai.

Readers ask things like

No bad cookies on these shelves.

Essential cookies keep the store running. Analytics only if you choose.