Shopify schema and metafields for AI search: a hands-on setup

What your Shopify theme outputs as schema, which markup and metafields help AI assistants, whether tab content counts, and a Liquid snippet for FAQ markup.

In short

For AI visibility on Shopify, the structured data that matters most is a complete Product with an accurate Offer (price, currency, availability), then honest ratings, Organization and BreadcrumbList. FAQPage markup comes last: Google stopped showing FAQ rich results on May 7, 2026. Behind the markup sit the fields it is built from: the Shopify product category, category metafields, and custom metafields for material, size, age range and use case. Keep tab and accordion content in the page HTML, and keep every value identical to what the shopper sees.

Schema is the part of AI visibility that sounds most technical and is usually the least broken. Most Shopify themes already output product markup. What they output is thin, and what is missing tends to be the very facts a shopper asks an assistant about.

The more common problem sits one layer below. The material lives in a description paragraph, the age range in an image, and the category field is empty. Markup can only repeat what the store holds in a structured place.

What your Shopify theme already outputs

Dawn, Shopify's reference theme, is a fair guide to what most current themes do. In Dawn's source on GitHub (version 16.0.0), the product page uses Shopify's structured_data filter, which outputs a Product, or a ProductGroup when the product has variants.

MarkupWhere Dawn outputs itWhat it contains
Product or ProductGroupProduct pagesName, description, image, URL, brand, category, offers with price, currency and availability
OrganizationEvery page, from the headerShop name, logo, social profile links
WebSiteHomepageName and site search
ArticleBlog postsGenerated by the same filter
AggregateRating, ReviewNot in the themeComes from your review app, if it adds any
BreadcrumbListNot in the themeNeeds a theme edit or an app
FAQPageNot in the themeNeeds a theme edit or an app

Shopify's documentation for the filter does not mention ratings, GTIN or SKU, so do not assume either way. View the source of a product page (not the browser inspector), search for application/ld+json, and read what is actually there.

Which structured data matters most for AI visibility

No engine publishes a weighting for schema types. Google says there is no special schema.org structured data you need to add for its AI features, and asks that structured data match the visible text. OpenAI's shopping help page says ChatGPT uses "structured metadata from first-party and third-party providers (e.g., price, product description)". Both point the same way: the value of markup is in stating your facts plainly and consistently, not in collecting types.

In order of priority for a Shopify store:

PriorityMarkupWhy it matters
1Product with OfferPrice, currency, availability and brand, the facts every shopping answer needs
2Product attributesMaterial, size, color, pattern, audience and GTIN, all listed as recommended in Google's merchant listing documentation
3AggregateRatingOnly from reviews shown on the same page, covered in making reviews readable for AI
4OrganizationTells engines which brand the store belongs to, covered in entity SEO for ecommerce
5BreadcrumbListStates where a product sits in your catalog. Google shows breadcrumbs only on desktop results since January 22, 2025
6FAQPageValid schema.org, no longer a Google rich result

On the last row, precisely: Google limited FAQ rich results to well-known government and health sites in August 2023. According to its documentation changelog, the feature "will no longer appear in Google Search starting May 7, 2026", and Google removed the FAQ documentation on June 15, 2026. FAQPage markup gets no rich result for any site. What it still does is label questions and answers in a form any parser can read, provided they match the visible text word for word. The case for the content itself is made in how to write FAQ content AI engines quote.

One rule outranks the table: one block per type. A theme Product block that says 49 dollars next to an app Product block that says 45 is not extra information. It is a second opinion nobody asked for.

Does ChatGPT read content hidden in accordions or tabs?

It can, if the text is in the HTML the server sends. It cannot if the tab loads its text with JavaScript after a click.

ChatGPT's and Perplexity's crawlers fetch the raw HTML. A Vercel and MERJ analysis found that none of the major AI crawlers, OpenAI's and Perplexity's included, render JavaScript, with Gemini and Applebot as the exceptions. Text that a script fetches on click never reaches them. Google says plainly that it won't load content that requires user interactions such as clicking or swiping.

Dawn's collapsible tabs are built the safe way. Each tab is an HTML details element with the content already inside it, only visually closed. Many tab and accordion apps work differently and pull their content in with a script.

What nobody can tell you is how much weight a closed tab carries. OpenAI's crawler documentation says nothing about hidden content or rendering. Shopify's own theme guidance states that content hidden in tabs or accordions on mobile is given less weight than visible content, and advises against display: none for anything important.

The practical rule: put the facts that decide a purchase (what it is, who it is for, material, size) in visible text above the tabs. Use tabs for care and shipping detail, and check in the page source that the first line of each tab is there before any click.

Which Shopify metafields help AI assistants understand your products

Start with the field most stores leave empty: the product category. Shopify's standard product taxonomy gives every product one standard category, separate from the free-text product type. A product without one saves as uncategorized, and Shopify Catalog, the source that feeds AI agents through agentic storefronts, excludes uncategorized products. The same page notes that Shopify assigns its own category from your product information, which may differ from the one you set. A clear title and description help it get there.

When we started working with Pipa Skin Care, 17 of 18 products had no product type. Nobody worrying about ChatGPT thinks to look there first.

The category opens up category metafields, the attributes Shopify's taxonomy defines for it. For shirts, Shopify's example is clothing size, neckline and sleeve length type. Some are filled in by default from AI predictions, others are suggested for you to accept. They also power filters and swatches, so the work is not only for the engines.

Where the taxonomy has no field for what buyers ask, add a custom metafield. The ones we see matter most:

MetafieldExample valueThe question it answers
Material100% merino wool"Is this sweater itchy?"
Dimensions or capacity32 oz, fits a standard cup holder"Will it fit my car?"
Age rangeAges 8 to 13"Is this suitable for a nine year old?"
Use caseDaily commute, carry-on travel"Best backpack for a bike commute"
CertificationDermatologist tested, with the test named"Is it dermatologist approved?"
CareMachine wash cold, top-rack safe"Can it go in the dishwasher?"

Two cautions. A metafield is only useful if the theme shows it on the page, so connect it to a visible block in the theme editor as a dynamic source. And each fact needs one value everywhere. At Pipa, the store, the FAQ and the product data gave three different age ranges. A metafield read by the page, the markup and the feed is how that stops happening.

Metafields can also reach the agents directly. Shopify Catalog's product data mapping, under Sales channels, Agentic, lets you take the title and description from a metafield. The category cannot be mapped there, which is one more reason to set it on the product.

How to add FAQ and product schema to your Shopify theme

Work on a duplicate of your live theme. The pattern below stores product FAQs in a metaobject, shows them on the page, and outputs the same text as markup, so the two cannot drift apart.

  1. Create the data. In Settings, Custom data, add a metaobject definition called FAQ with two fields: question (single line text) and answer (multi-line text). Then add a product metafield custom.faqs of type list of metaobject references, pointing to FAQ.
  2. Fill it in for your best sellers, in the customer's words.
  3. Show it. Connect the metafield to a visible block, or loop through it in the product section.
  4. Add the markup. Create a snippet called product-faq-schema.liquid:
{%- assign faqs = product.metafields.custom.faqs.value -%}
{%- if faqs != blank -%}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {%- for faq in faqs -%}
    {
      "@type": "Question",
      "name": {{ faq.question.value | json }},
      "acceptedAnswer": {
        "@type": "Answer",
        "text": {{ faq.answer.value | json }}
      }
    }{%- unless forloop.last -%},{%- endunless -%}
    {%- endfor -%}
  ]
}
</script>
{%- endif -%}
  1. Render it in the product section, next to the existing {{ product | structured_data }} line: {% render 'product-faq-schema', product: product %}.
  2. Validate with the Schema Markup Validator, then compare the output with the visible questions.

The json filter escapes quotes and adds its own, which is why the values carry no quotation marks around them. One naming trap: Shopify's metafield reference says keys called size, first or last need bracket notation, so a size metafield is read as product.metafields.custom["size"].

Product schema needs a different approach. Do not add a second Product block with material and age range. Either replace the structured_data line with a complete hand-written Product block that reads your metafields, which then becomes yours to maintain, or use an app that extends the markup. Breadcrumbs follow the same snippet pattern, built from the collection the shopper came from.

Apps as the alternative

Schema apps in the Shopify App Store add Product attributes, BreadcrumbList and FAQPage without theme edits, often the better choice for a store without a developer. Before installing, check whether it switches off the theme's Product block or adds a second one, which metafields it can read, and what it leaves behind when uninstalled. Review apps add rating markup of their own, so the duplicate check applies to them too.

The checklist

CheckPass
Product markup on every product pageOne Product or ProductGroup block in the source
Offer completePrice, currency and availability match the page
Product category setMost specific category on every product, none uncategorized
Category metafields filledAccepted or corrected on top sellers
Buying facts in custom metafieldsMaterial, size, age range or use case, shown on the page
Tab content in the HTMLFirst line of each tab found in the source
One block per typeNo duplicate Product or rating markup from apps
FAQPage only where FAQs are visibleSame wording in page and markup

The first three rows usually take an afternoon, and everything else on the list is built on them.

AAnna Kapp

Article by

Anna Kapp
GEO Research & Customer Success

Anna Kapp looks after Alethia's customers and leads the team's GEO research, helping Shopify brands understand and improve how ChatGPT, Perplexity, Gemini and Google AI Mode recommend them. She also drives Alethia's own GEO and helps shape a better product with every insight she brings back. She loves turning complex topics into simple, clear explanations and connecting small details to the bigger picture. Outside work, you'll find her surfing, planning her next trip or hunting for the best black coffee in whatever city she's in.

No commitment

See how AI is selling your products.

Get your free Alethia AI report and see where your brand stands across the AI platforms your customers are already using.