GEO & AI search visibility
How-to

Do sizes and colours confuse AI shopping assistants? How to set up product variants for Google and ChatGPT

Short answer

They can. Google and ChatGPT both treat every size and colour you sell as its own item, linked to its siblings by a shared group ID. If your variants share one URL, one ID or one photo, an AI tool may show the wrong price, the wrong colour, or "in stock" for a size you sold out of last night. Give each variant its own URL, ID, price, stock status and image, and use one stable group ID that ties them together.

Cover: Every variant AI can match. Business and e-commerce how-to on setting up product sizes and colours for Google Shopping, ChatGPT and other AI shopping tools.
On this page

    Key facts

    • One row per variant: OpenAI's product feed asks merchants to "submit one row per purchasable item or variant", each with its own item_id, plus a shared group_id and a variant_dict such as {"color":"Black","size":"10"}.
    • Same rule at Google: Google Merchant Center wants each variant submitted as a separate product with the same item_group_id. Its example: a T-shirt in 3 sizes and 3 colours is 9 separate products.
    • A URL for every variant: Google says "make sure that each variant can be identified by a separate URL", such as /t-shirt/green or /t-shirt?color=green. URLs that only change after a # don't count: Google treats /product/t-shirt#black and /product/t-shirt#white as the same page.
    • Markup has a name: on the page, Google groups variants with schema.org ProductGroup and the properties hasVariant, variesBy and productGroupID. That makes products eligible to show variant information in Google's merchant listings.
    • Shoppers are told to double-check: OpenAI's help page tells ChatGPT users to confirm "availability and any size or color options" with the merchant before buying.
    • Big catalogues are allowed: Shopify lets a product have up to 2,048 variants and 3 options, such as size, colour and style.

    Why variants trip up AI shopping

    In a normal online shop, a person lands on one product page and picks a size from a dropdown. The page swaps the photo and the price. Nothing else needs to know which option they chose.

    AI shopping works the other way round. The shopper asks for something specific first: "black trail shoes in size 44 under €100" or "the green version of this jacket in medium". The assistant has to match that request to one exact item: one price, one stock status, one photo and one link that opens with the right option already selected. If your data only describes the parent product, the assistant has to guess.

    Google is clear that you don't need special AI files or markup to appear in AI Overviews or AI Mode. Its guide to AI features asks for the same basics as regular search, including "making sure your structured data matches the visible text on the page" and keeping your Merchant Center information up to date. For a store with sizes and colours, that "matching" is where most problems hide.

    What each system asks for

    Google: page markup Google: Merchant Center feed OpenAI: product feed
    Parent product ProductGroup with productGroupID item_group_id (same for all variants) group_id (same for all variants)
    Each variant Product inside hasVariant One product per variant, unique id One row per variant, unique item_id
    What varies variesBy (for example https://schema.org/size) color, size etc., plus variant_option variant_dict, with listing_has_variations set to true
    Variant link A URL that preselects the variant A landing page URL for each variant url "with the variant selected when possible"
    Price, stock, photo Per variant Offer and image Per variant price, availability, image_link Per row price, availability, image_url showing that variant

    The three systems use different field names for the same idea. Each variant is a complete item, and the group ID says they're siblings.

    Step 1: Give every variant its own URL

    Pick a size and colour on one of your product pages, then look at the address bar. If the address changes, for example to ?color=green&size=m or a path like /jacket/green, you're in good shape. If it stays the same, or only the part after # changes, crawlers can't reach each variant on its own.

    Google's rules for designing ecommerce URLs are short:

    1. Use a path segment (/t-shirt/green) or a key=value query parameter (/t-shirt?color=green).
    2. If optional parameters pick the variant, use the URL without them as the canonical URL.
    3. Opening a variant URL must show that variant's image, price and availability, and let the shopper add it to the cart.

    Google notes that if you use an ecommerce platform, it has "most likely already considered these issues for you". Custom-built stores and heavily customised themes are where it's most worth checking.

    Step 2: One ID per variant, one shared group ID

    Every variant needs its own stable ID, usually its SKU. Every variant of the same product also needs the same group ID, usually the parent SKU.

    Google's item group ID rules add a few details worth copying:

    • Don't submit the parent SKU as a product of its own. Use it only as the group ID.
    • Don't change a group ID once it's set, and never reuse it for another product.
    • Don't rely on upper and lower case to tell IDs apart: "abc123" and "ABC123" count as the same.
    • Only group true variants. A suit sold as a jacket plus trousers is not a variant group.

    OpenAI's product feed schema says much the same: keep item_id, group_id and offer_id stable "when price, stock, title, or images change", make the group ID different from every item ID, and never include the price in an offer ID.

    Step 3: Give each variant its own title, price, stock and photo

    A shopper asking for "the red one in small" should get a link, a price and a photo for the red one in small. So each variant row should carry its own values:

    • Title that names the variant, for example "Trail running shoes – black, size 10", the format OpenAI uses in its own example.
    • Price, even if every size costs the same. Each variant needs its own price value.
    • Availability per variant. OpenAI's example marks size 10 as in_stock and size 11 as out_of_stock within the same group.
    • A photo of that variant, especially where variants look different: colour, pattern, finish or material. We covered this in our guide to getting product photos ready for AI shopping.

    The day after Black Friday is a good time to check stock in particular. Sizes sell out unevenly, and an AI answer that still says "in stock" for a gone size sends the shopper to a dead end. Our guide to out-of-stock and discontinued product pages covers what to show when that happens.

    Step 4: Mark up the variants on the page

    If your theme or plugin doesn't already output variant markup, this is the shape Google documents for a single page where shoppers pick options. It's shortened to two variants:

    {
      "@context": "https://schema.org/",
      "@type": "ProductGroup",
      "name": "Wool winter coat",
      "url": "https://www.example.com/coat",
      "brand": { "@type": "Brand", "name": "Example" },
      "productGroupID": "44E01",
      "variesBy": ["https://schema.org/size", "https://schema.org/color"],
      "hasVariant": [
        {
          "@type": "Product",
          "sku": "44E01-S-GREEN",
          "name": "Wool winter coat – small, green",
          "size": "small",
          "color": "green",
          "image": "https://www.example.com/coat-green.jpg",
          "url": "https://www.example.com/coat?size=small&color=green",
          "offers": {
            "@type": "Offer",
            "price": 89.00,
            "priceCurrency": "EUR",
            "availability": "https://schema.org/InStock"
          }
        },
        {
          "@type": "Product",
          "sku": "44E01-L-BLUE",
          "name": "Wool winter coat – large, light blue",
          "size": "large",
          "color": "light blue",
          "image": "https://www.example.com/coat-lightblue.jpg",
          "url": "https://www.example.com/coat?size=large&color=lightblue",
          "offers": {
            "@type": "Offer",
            "price": 89.00,
            "priceCurrency": "EUR",
            "availability": "https://schema.org/OutOfStock"
          }
        }
      ]
    }
    

    Google's product variant documentation lists six values variesBy supports: colour, size, suggested age, suggested gender, material and pattern. Shared details such as brand and reviews go on the ProductGroup once, instead of being repeated on every variant. If your variants live on separate pages, Google has a separate multi-page pattern where ProductGroup has no url of its own.

    One warning: if your theme already outputs Product markup, don't paste a second block on top. Two conflicting blocks are worse than one incomplete one. Check the page source first, and test with Google's Rich Results Test before and after.

    Step 5: Make the page, the markup and the feed agree

    Google's Merchant Center rules say the landing page must match the variant data you send, including title, colour, price, availability and image. OpenAI's feed spec warns that it doesn't fix conflicts for you: "Neither representation reconciles conflicting values."

    A quick spot check for three of your best sellers:

    1. Open a variant URL in a private window. Is the right option preselected, with the right photo and price?
    2. View the page source and search for that variant's SKU. Is it in the markup with the same price and stock status?
    3. Find the same SKU in your Merchant Center product list or feed file. Same group ID, same price, same availability?

    If all three agree, AI tools have one consistent story to repeat.

    Platform notes

    • Shopify: variants are built in, up to 2,048 per product with up to 3 options. Many themes already output product markup, so check your page source before adding any. OpenAI says Shopify merchants' product data already reaches ChatGPT through Shopify Catalog, with "no additional work" required, so your variant data in Shopify admin is what gets passed on.
    • Other platforms: if your platform or feed plugin exports a product feed, check that it outputs one row per variant with a shared group ID, uses SKUs rather than names as IDs, and includes stock per variant.
    • Direct feed to OpenAI: merchants who want ChatGPT to always reflect current data can apply for direct feed access on OpenAI's developer site. The variant rules above apply either way.

    Common mistakes

    Mistake What goes wrong Fix
    All variants share one URL Crawlers and feeds can't link to a specific size or colour Add a path or ?key=value parameter per variant
    Variants only change after # Google treats every variant as the same page Use a real query parameter or path
    Parent SKU submitted as a product A phantom "product" with no real size or price Use the parent SKU only as the group ID
    One photo for every colour The AI shows a blue coat to someone asking for green One main image per visible variant
    Stock tracked per product, not per variant "In stock" shown for sizes you don't have Track and send availability per variant
    Two different markup blocks Conflicting prices or names on the same page Keep one complete block
    Group IDs that change with each import Variants get split up or mixed with other products Keep group IDs stable

    What this won't do

    Clean variant data won't make an AI tool recommend your product over a better or cheaper one. Google says there's no special markup needed for its AI features, and OpenAI ranks merchants on factors like availability, price, quality and whether you're the maker or main seller. What variant data does is remove a reason to skip you: when a shopper asks for a specific size or colour, your product can be matched, priced and linked correctly instead of being guessed at.

    Check your site

    Not sure what AI tools can read on your product pages? The free Web2Agents AI check scores your homepage out of 30, tests 12 AI bots against your robots.txt and checks your robots.txt, sitemap.xml and llms.txt, with results on screen. The €19 AI-Ready Kit runs all 36 checks on up to 25 pages, including product pages and their structured data, and ranks the fixes by impact.

    { "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [ { "@type": "Question", "name": "Do I need a separate URL for each size and colour?", "acceptedAnswer": { "@type": "Answer", "text": "For Google, yes. Google asks that each variant can be identified by a separate URL, either a path like /t-shirt/green or a query parameter like /t-shirt?color=green. The variant page can be the same template, as long as that URL preselects the option and shows its price, stock and image." } }, { "@type": "Question", "name": "What is an item group ID?", "acceptedAnswer": { "@type": "Answer", "text": "It's the shared ID that tells Google, ChatGPT and other shopping tools that several products are variants of one parent product. Google Merchant Center calls it item_group_id, OpenAI's feed calls it group_id, and on the page it's productGroupID in schema.org markup. Most stores use the parent SKU." } }, { "@type": "Question", "name": "Should every variant have the same title?", "acceptedAnswer": { "@type": "Answer", "text": "No. OpenAI's feed asks for a title that includes the selected variant, for example \"Trail running shoes – black, size 10\", and Google's Merchant Center examples do the same. Keep the base product name the same and add the colour, size or other option at the end." } }, { "@type": "Question", "name": "Does ChatGPT show product variants?", "acceptedAnswer": { "@type": "Answer", "text": "ChatGPT shows product listings, and OpenAI's product feed has dedicated fields for variants: group_id, listing_has_variations and variant_dict. OpenAI also tells shoppers to confirm availability and size or colour options with the merchant before buying, so accurate variant data on your site matters." } }, { "@type": "Question", "name": "Do I need ProductGroup markup to appear in Google AI Mode?", "acceptedAnswer": { "@type": "Answer", "text": "No. Google says there's no special schema.org markup required for AI Overviews or AI Mode. ProductGroup markup helps Google understand which products are variants of each other, and makes them eligible for variant information in merchant listings." } } ] }

    FAQ

    Do I need a separate URL for each size and colour?

    For Google, yes. Google asks that each variant can be identified by a separate URL, either a path like /t-shirt/green or a query parameter like /t-shirt?color=green. The variant page can be the same template, as long as that URL preselects the option and shows its price, stock and image.

    What is an item group ID?

    It's the shared ID that tells Google, ChatGPT and other shopping tools that several products are variants of one parent product. Google Merchant Center calls it item_group_id, OpenAI's feed calls it group_id, and on the page it's productGroupID in schema.org markup. Most stores use the parent SKU.

    Should every variant have the same title?

    No. OpenAI's feed asks for a title that includes the selected variant, for example "Trail running shoes – black, size 10", and Google's Merchant Center examples do the same. Keep the base product name the same and add the colour, size or other option at the end.

    Does ChatGPT show product variants?

    ChatGPT shows product listings, and OpenAI's product feed has dedicated fields for variants: group_id, listing_has_variations and variant_dict. OpenAI also tells shoppers to confirm availability and size or colour options with the merchant before buying, so accurate variant data on your site matters.

    Do I need ProductGroup markup to appear in Google AI Mode?

    No. Google says there's no special schema.org markup required for AI Overviews or AI Mode. ProductGroup markup helps Google understand which products are variants of each other, and makes them eligible for variant information in merchant listings.

    Sources

    Newsletter

    New guides on AI visibility, in your inbox.

    Practical, sourced articles on AI crawlers, llms.txt, structured data and AI search. A new one every day.

    Unsubscribe anytime. See our Privacy Policy.