Shopify AI readiness: llms.txt, robots.txt and schema
In short
Shopify generates robots.txt, sitemap.xml, /llms.txt and Product structured data for you. You can override robots.txt with a robots.txt.liquid theme template and /llms.txt with agents.md.liquid or llms.txt.liquid. Organization markup is not documented as a default, so add it in your theme.
robots.txt
Built inYes. Shopify serves a default robots.txt at the root of your primary domain. You change it by adding a robots.txt.liquid template to your theme. Shopify calls this an unsupported customization, so Shopify Support cannot help with your edits.
How to do it
Save the current file first
Open
https://your-store.com/robots.txtand keep a copy. The template replaces the generated output, so you will compare against it before publishing.Create the robots template
In the Shopify admin go to Online Store > Themes, open ... > Edit code, then Add a new template, choose robots and click Create template. Shopify creates
templates/robots.txt.liquid.Keep the defaults and add your rules in Liquid
Loop over
robots.default_groupsso Shopify keeps its default rules up to date, and add your own lines. A rule for a crawler that is not in the default groups goes outside the loop.templates/robots.txt.liquid{% for group in robots.default_groups %} {{- group.user_agent }} {%- for rule in group.rules -%} {{ rule }} {%- endfor -%} {%- if group.sitemap != blank -%} {{ group.sitemap }} {%- endif -%} {% endfor %} User-agent: CCBot Disallow: /
Limits and notes
Shopify warns that incorrect edits can lose all search traffic. Delete the template to go back to the current default.
Remove older workarounds (for example rules injected by a third-party proxy) before you edit, per Shopify.
Themes uploaded through the admin do not carry
robots.txt.liquidover; Shopify CLI or Theme Kit do.
llms.txt
Built inYes. Shopify serves /agents.md on every storefront, and by default /llms.txt and /llms-full.txt mirror it. Since May 2026 you can customize all three with theme templates: agents.md.liquid for everything, or llms.txt.liquid and llms-full.txt.liquid for one path each.
How to do it
Check what Shopify serves today
Open
https://your-store.com/llms.txtandhttps://your-store.com/agents.md. For most stores Shopify says the managed default is enough.Customize all three files at once
In Online Store > Themes > ... > Edit code, right-click Templates, choose New File and create
agents.md.liquid. When no path-specific template exists,/agents.md,/llms.txtand/llms-full.txtall render from it.Or override only /llms.txt
Create
templates/llms.txt.liquidonly if/llms.txtmust differ from/agents.md. It accepts plain text, Markdown and Liquid, but runs in a restricted context: only therequestandagentsobjects exist, soshop,collectionsandarticlesare not available. It cannot be a JSON template.templates/llms.txt.liquid# {{ agents.store_name }} > Short summary of what the store sells and who it is for. Full description: {{ agents.store_url }}/agents.md - UCP discovery: {{ agents.ucp_discovery_url }} - MCP endpoint: {{ agents.mcp_endpoint_url }} - Sitemap: {{ agents.sitemap_url }}
Limits and notes
Lookup order for
/llms.txt:llms.txt.liquid, thenagents.md.liquid, then the Shopify-generated default.The file is served on the bare primary domain, without a locale or Markets prefix.
Once you add a template you maintain its content yourself.
Organization schema
Not documentedNot documented. Shopify documents structured data for products and articles, not for your organization. Whether your homepage has Organization markup depends on the theme, so check it with Citeto or view the source, and add a JSON-LD block in theme.liquid if it is missing.
How to do it
Check what your theme outputs
Run Citeto on your homepage, or search the page source for
"@type": "Organization". If a block already exists, edit it instead of adding a second one.Add an Organization block to the layout
In Edit code, open
layout/theme.liquidand add the block inside<head>, limited to the homepage. Use real profile URLs insameAs.layout/theme.liquid{%- if request.page_type == 'index' -%} <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "name": {{ shop.name | json }}, "url": {{ shop.url | json }}, "logo": "https://your-store.com/path/to/logo.png", "sameAs": ["https://www.instagram.com/your-brand"] } </script> {%- endif -%}
Limits and notes
Theme updates can overwrite
theme.liquidedits; keep a copy of the block.
Product schema
Built inYes. Shopify says its themes include product schema markup by default, and Theme Store themes must include rich product snippets. The Liquid structured_data filter outputs a schema.org Product (or ProductGroup for products with variants) with brand and an Offer carrying price, currency and availability.
How to do it
Confirm the markup on a live product page
Run Citeto or Google’s Rich Results Test on a product URL. Older or custom themes may still use their own markup or none.
Use the structured_data filter in custom themes
If your theme has no product JSON-LD, output it from the product template with the filter Shopify documents.
sections/main-product.liquid<script type="application/ld+json"> {{ product | structured_data }} </script>Fill the data the markup reads
The documented filter output includes
brand,offers.price,priceCurrencyandavailability, so keep vendor, prices and inventory accurate. The documented example does not showgtin, so check on your own product page whether barcodes appear in the output.
Limits and notes
Run only one Product block per page. If an SEO app also writes Product markup, turn one of them off to avoid duplicates.
XML sitemap
Built inYes. Shopify generates sitemap.xml automatically at the root of each of your domains and updates it when you add products, collections, pages or blog posts. You cannot edit it directly.
How to do it
Open your sitemap
Visit
https://your-store.com/sitemap.xml. It links to child sitemaps for products, collections, blogs and pages.Submit each domain
With international domains, every domain gets its own sitemap. Verify each domain in Google Search Console and submit its sitemap. Redirect extra domains that are not for international targeting to the primary domain.
Limits and notes
International domains require the Basic plan or higher, per Shopify.
AI crawler access
Not documentedNot documented. We found no Shopify setting that blocks or allows AI crawlers as a group. The documented lever is robots.txt.liquid, and Shopify notes that robots.txt rules are advisory.
How to do it
Decide per crawler
Search and answer crawlers (for example OAI-SearchBot, PerplexityBot) bring visibility; training crawlers (GPTBot, CCBot, Google-Extended) do not. See the guide on allowing AI search bots for the full list.
Write the rules in robots.txt.liquid
Add
User-agentgroups outside the default loop, as in the robots.txt section above, then test the live file with Citeto.
Limits and notes
If you put a proxy or CDN in front of Shopify, its bot rules apply on top of robots.txt. Check the live result, not the settings screen.
FAQ
Yes. Shopify serves a managed /agents.md, and by default /llms.txt and /llms-full.txt show the same content. Add agents.md.liquid or llms.txt.liquid to your theme to change it.
Yes, through a robots.txt.liquid theme template. Keep the robots.default_groups loop so Shopify’s default rules stay current, and add your own rules around it.
Usually not. Shopify themes include product markup by default. Use an app only if your theme lacks it, and never run two Product blocks on the same page.
Based on official Shopify documentation checked on November 16, 2026. Platforms change often: run the free check to see what your live site actually serves.