JSON-LD vs llms.txt for Shopify, Which Matters More for AI Search?

JSON-LD product schema and llms.txt do different jobs, and Google Search uses only one of them. What each does, which comes first, and what Shopify already gives you.

By ShieldKit TeamUpdated

Google says Structured data isn’t required for generative AI search, and there’s no special schema.org markup you need to add. However, it’s a good idea to continue using it as part of your overall SEO strategy, as it helps with being eligible for rich results on Google Search. On llms.txt files, the same guide says keeping one will neither harm nor help your site’s visibility or rankings in Google Search, as Google Search ignores them. Google’s guide to generative AI features in Search.

So the two formats aren’t rivals. JSON-LD is structured data inside each product page that states what the product is: name, price, currency, availability, brand, identifiers. llms.txt is a single Markdown file at your site root that points AI tools to the pages that matter. Google Search uses the first and ignores the second. If you only do one, make your Product JSON-LD complete and accurate.

What each format does

  • JSON-LD is structured data in the HTML of a page, usually one block per content type. Search engines and other tools read it to pick out facts: what the product is called, what it costs, who makes it.
  • llms.txt is a single Markdown file at the site root that lists the pages that matter, with short descriptions. It was proposed on llmstxt.org in September 2024 and is still a proposal, not a formal standard.

Put simply: JSON-LD is what a tool reads on a product page. llms.txt is a map a tool may read before it picks which pages to fetch.

What JSON-LD does

  • States product facts in a form machines can read. Name, price, currency, availability, brand, GTIN, MPN, color, size. Without it, those facts have to be pulled out of the page text.
  • Makes pages eligible for Google’s product results. Google’s product structured data guide says that with it, your product information can appear in richer ways in Google Search results. Merchant listing markup is the type for pages where shoppers can buy from you.
  • Feeds Merchant Center’s automatic updates. Google’s Merchant Center Help says These automatic updates may allow Google to update your products on Shopping ads and free listings using the structured data markup and other sources of product data the crawlers find on your website. So the price in your JSON-LD can end up in your Shopping listings.
  • Readable by other tools. Any crawler can parse it; how each AI tool uses it is up to that company. On Shopify, ChatGPT gets your products another way: Shopify’s help center says eligible products reach it through Shopify Catalog, which sends their title, description, options, images, price, availability and other key attributes.

Google’s merchant listing guide lists three required Product properties, name, image and offers, and the offer needs a price and a priceCurrency. It adds that merchant listing experiences require a price greater than zero. Everything else is recommended, including:

  • Product: description, brand, sku, gtin, mpn, color, size, material, pattern
  • Offer: availability, priceValidUntil, itemCondition, shippingDetails, hasMerchantReturnPolicy
  • Reviews, if you show them: aggregateRating, review

Shopify’s free Dawn theme outputs Product markup with Liquid’s structured_data filter, and other themes may do the same. Shopify’s example of that output shows the name, description, image, brand and an offer with price, currency and availability. It doesn’t show GTIN or MPN, so check your own product pages: identifiers may need theme work.

What llms.txt does

For AI tools that read it (Google Search doesn’t):

  • Points to the pages that matter. A store has thousands of URLs. llms.txt lists the few a tool should read first: policies, key collections, guides.
  • Gives a short, factual summary. The llmstxt.org proposal describes it as brief background, guidance and links for an AI agent that needs information while helping someone.
  • Comes in more than one file on Shopify. Shopify’s help center says every store serves /agents.md, /llms.txt and /llms-full.txt, and that by default all three return the same content. The name llms-full.txt isn’t part of the llmstxt.org proposal.

The order of priority for a Shopify store

  1. Accurate Product JSON-LD on every product page. It counts for Google’s rich results and Merchant Center’s automatic updates, and it’s the cleanest way to state your product facts.
  2. Check your default llms.txt. Shopify already serves one. Change it only if you want other AI tools to see something different. See what llms.txt is and how to add it to your Shopify store.
  3. Answer real shopper questions in text on product and blog pages. People and any tool that reads the page can use it. FAQPage markup no longer earns a rich result in Google: its changelog says The FAQ rich result feature is no longer shown in Google Search results. See how to optimize Shopify product pages for Google AI Overviews.

If you only have time for one this quarter, pick #1.

What Shopify gives you by default

  • Product structured data, in themes that use the structured_data filter (Dawn does)
  • A sitemap: Shopify’s help center says every store generates one automatically
  • /agents.md, /llms.txt and /llms-full.txt, which by default include your store name, store URL, sitemap link and store policies, and which you can change with a theme template
  • Organization and WebSite markup on the homepage, in themes that include it (Dawn does)

What you may need to add:

  • Identifiers in your JSON-LD: gtin and mpn may need your theme to add them, usually from product metafields. Also check that brand shows your real brand.
  • Organization and WebSite markup, if your theme doesn’t include it.

Tools to add each

For JSON-LD:

  • Your theme’s product template. Edit the Liquid to add the extra properties from product metafields. Free and full control, but you need to be comfortable with Liquid.
  • A schema app from the Shopify App Store. Usually paid, less control, no code.

For llms.txt:

  • Shopify’s default file. Nothing to do.
  • A theme template. Shopify says agents.md.liquid changes all three files, while llms.txt.liquid or llms-full.txt.liquid changes only that one. A template you write is yours to keep up to date.
  • An app. Yoast’s llms.txt page says Yoast SEO for Shopify can generate an llms.txt file.

Common mistakes

  • Adding llms.txt without JSON-LD. llms.txt tells AI tools which pages matter; JSON-LD tells them what those pages contain. Skipping the data layer means a tool can find your product page but can’t pull out its details cleanly.
  • JSON-LD without identifiers. Google lists gtin, mpn and brand among the recommended properties for merchant listings. Markup with only a name, image and price is the bare minimum.
  • Two Product blocks on one page. A theme block and an app can both output Product markup. Pick one source for each schema type.
  • Conflicting prices. Google’s page on the “Mismatched product price” issue says Prices reflected in the HTML need to match exactly the prices uploaded in Merchant Center. It warns: This may lead to an account suspension. With automatic updates on, Google adds that The product may be disapproved instead of updated if we detect a mismatch. And its structured data guidelines say Don’t mark up content that is not visible to readers of the page. Your feed, your JSON-LD and the price on the page all have to agree.

For the feed side of identifiers, see why “missing GTIN” shows on your Shopify Google channel. To see whether crawlers fetch your pages, see how to track AI crawler visits on your Shopify store. For more on other AI tools, see making your Shopify store visible in ChatGPT, Gemini, and Perplexity.

If Search Console has already flagged your markup, our post on merchant listing structured data issues covers which of those warnings stop a rich result and which only improve one.

The free store check looks at whether your product pages carry Product JSON-LD with a name, image, description, price and currency.

FAQ

Do I need both JSON-LD and llms.txt?

Not for Google. Google Search ignores llms.txt, and Google’s page on AI features says You don’t need to create new machine readable files, AI text files, or markup to appear in these features. JSON-LD is still worth having for rich results and Merchant Center. On Shopify you already have a default llms.txt.

Will llms.txt help if my JSON-LD is bad?

Not with Google, which ignores llms.txt. For other AI tools, llms.txt can point them to your pages, but if those pages don’t carry clean markup, the details are harder to pull out. Fix JSON-LD first.

Does Shopify’s default Product schema cover what AI needs?

Google says there’s no special schema for its AI features. Shopify’s example output covers Google’s required merchant listing fields (name, image, price, currency) plus description, brand and availability. Recommended extras such as gtin and mpn may need theme work.

Can I use a schema app and a custom JSON-LD theme block together?

Yes, but avoid duplicate or conflicting markup. Pick one source of truth for each schema type: if the app outputs Product JSON-LD, your theme block shouldn’t.

How long until search engines pick up new schema?

For Google, its recrawl page says Crawling can take anywhere from a few days to a few weeks. Other AI tools work on their own schedules.

Is FAQ schema part of JSON-LD or separate?

FAQPage is a different schema type from Product, and both can be written as JSON-LD on the same page. Google’s changelog says FAQ rich results will no longer appear in Google Search starting May 7, 2026. The visible FAQ text is what helps shoppers.

For Google’s own documentation, see Google’s product structured data guide. For the llms.txt proposal, see llmstxt.org.

Find what’s flagging your store

The free store check takes 60 seconds.