llms.txt for Shopify: what it is, what Shopify already serves, and how to customize it

An llms.txt file open next to a Shopify theme code editor

An llms.txt file is a short Markdown file at yourstore.com/llms.txt that tells AI tools what your site is and links to the pages worth reading. Shopify now serves one on every Online Store automatically, and you can replace it with your own by adding an llms.txt.liquid template to your theme, with no app and no file upload.

What nobody can promise you is that ChatGPT, Gemini or Perplexity will read it when deciding which store to recommend. None of those companies has said they do. This guide covers what the file is, what Shopify puts in it, when it's worth customizing, and how to do it in about an hour.

What is llms.txt?

Jeremy Howard, co-founder of Answer.AI, proposed llms.txt in September 2024. The spec lives at llmstxt.org and was revised in August 2026. The problem it addresses is practical: web pages are full of menus, scripts and layout code, and a language model with a limited context window does better with a clean summary and a list of links.

The format is plain Markdown, in this order:

  1. An H1 with the name of the site. This is the only required part.
  2. A blockquote with a one or two sentence summary.
  3. Optional paragraphs or lists with more detail.
  4. Optional H2 sections, each a list of links in the form [name](url): short note.

An H2 called "Optional" has a special meaning: it holds links an AI tool can skip when it needs a shorter version. Many sites also publish an llms-full.txt with the full text of their key pages. That file is a common convention rather than part of the spec.

llms.txt doesn't allow or block anything. It is a table of contents written for machines.

What Shopify already serves at /llms.txt

On 28 May 2026 Shopify started serving three agent discovery files on every Online Store, documented in the Shopify developer changelog and the Help Center:

  • /agents.md, which Shopify calls the canonical agent discovery file
  • /llms.txt, which mirrors /agents.md by default
  • /llms-full.txt, which also mirrors /agents.md by default

Shopify's Help Center says you don't need a third-party app to generate these files. When we checked a live Shopify store in November 2026, /llms.txt returned a 200 response with a text/markdown content type and about 5,800 characters of content.

Read what's in that default file before deciding anything. It's written for shopping agents, not for describing your brand. It covers:

  • How an agent can shop your store through the Shop skill and Shopify's Universal Commerce Protocol (UCP) endpoints, including your store's /.well-known/ucp discovery URL and MCP endpoint
  • Rules for agents: get buyer authorization before placing orders, identify agent traffic, back off on rate limits
  • Read-only browsing paths: /sitemap.xml, /products/{handle}, /collections/{handle}
  • Links to your published store policies (privacy, terms, refund, shipping)

What it leaves out is everything a person would want to know: what you sell, who it's for, where you ship, your best collections, your size guides. Your store name is the only line that's about you.

To see your own, open yourstore.com/llms.txt in a browser. If you get a 404 instead, you're probably on a headless storefront, which doesn't get Shopify's managed file (more on that below).

Does llms.txt work? What it can and can't do

Here is where things stood at the end of November 2026.

Google is the only major provider that has said anything directly. Its guide to optimizing for generative AI features in Google Search says you don't need AI text files or Markdown to appear in Google Search, because Search doesn't use them. A June 2026 update added that it's "completely fine" to maintain llms.txt files for other services, and that doing so will neither help nor hurt your Google rankings.

OpenAI, Anthropic and Perplexity document their crawlers in detail, and none of those crawler pages mentions llms.txt. All three publish llms.txt files for their own developer documentation, which tells you they find the format useful for docs. It doesn't tell you their shopping or search answers read store files.

So what does it do? Coding assistants and AI agents fetch llms.txt when a user points them at a site, and some agent tools look for it first. Shopify's own default file exists to tell those agents how to search, add to cart and check out. A custom section about your catalog gives the same agents better context about what you sell.

What it won't do: fix thin product descriptions, missing GTINs, blocked crawlers or broken structured data. Those affect whether assistants can find and trust your products, and they matter far more than this file. For the wider picture, see our guide to Shopify AI.

What the Lighthouse llms.txt audit checks

Chrome's Lighthouse added an experimental Agentic Browsing category in spring 2026, and it includes an llms.txt audit. Lighthouse's open source code shows how simple the test is:

  • If /llms.txt returns a 4xx error such as 404, the audit is marked not applicable, since the file is optional.
  • If it returns a 5xx error or a 429 (too many requests), the audit fails.
  • If the file loads, it must contain an H1 line (# Name) and at least one Markdown link ([text](url)), and be at least 50 characters long.

That's the whole test. It doesn't check whether your links work, whether the content is accurate, or whether any AI tool reads the file.

Shopify's default file passes. A custom template fails if you write bare URLs instead of Markdown links. Treat a pass as a format check, not a ranking signal.

Should you customize your llms.txt?

Our view: keep Shopify's /agents.md as it is, and customize only /llms.txt.

The default agents.md is managed by Shopify. When Shopify changes its UCP endpoints, adds a protocol version or updates its agent rules, your agents.md updates with it. Shopify's developer docs warn that once you add an agents.md.liquid template, you maintain it by hand and it replaces the managed file. That's a lot of upkeep for little gain.

An llms.txt.liquid template changes only /llms.txt. Agents that use /agents.md still get Shopify's current shopping instructions, and anything that reads /llms.txt gets a summary of your store written by someone who knows it.

Customize if:

  • Your store has more than a handful of collections and you want AI tools to see how your catalog is organized
  • You have guides, size charts or FAQs that answer questions shoppers ask assistants
  • You sell something that needs context (made-to-order, regulated products, B2B and retail on one store)

Leave the default if you sell fewer than about 20 products, have no supporting content, and won't update the file when things change. An out-of-date llms.txt that lists a retired collection or an old returns window is worse than the default.

How to add a custom llms.txt to your Shopify store

You need access to the theme code. If you'd rather an expert write and test it, you can hand the job to a vetted Shopify expert. Otherwise:

  1. Make a short list first: your 5 to 10 main collections, your policies, and 2 to 5 guides or pages that answer common pre-purchase questions. Use URLs that won't change.
  2. In your Shopify admin, go to Online Store > Themes. On your published theme, click the ... menu, then Edit code. (New to the code editor? Our guide to editing a Shopify theme walks through it.)
  3. Under Templates, click Add a new template, choose llms.txt, then click Create template.
  4. Paste your content (see the example below) and click Save.
  5. Open yourstore.com/llms.txt in a private browser window and confirm your version loads. Then open /agents.md and confirm it still shows Shopify's default.
  6. Optional: run Lighthouse with the Agentic Browsing category, or npx lighthouse https://yourstore.com --only-categories=agentic-browsing, to confirm the format passes.

Three limits to know before you write it:

  • Restricted Liquid. These templates only get two objects: request and agents. Objects like shop, collections and pages render blank. So you can't loop over your collections. You list them by hand, and use agents.store_url for the domain so links stay correct if your primary domain changes.
  • Primary domain only. The file is served at your bare primary domain, with no Shopify Markets or language prefix, and there's no translated version. Link to your primary-language URLs.
  • Published theme only. The template lives in a theme. If you publish a new theme, add the template to it before you switch, or /llms.txt falls back to the default. Shopify drops robots.txt.liquid when a theme is uploaded, so treat custom agent templates the same way: after any theme change, open /llms.txt and check it still shows your version.

An example llms.txt for a Shopify store

Here's a template for a fictional outdoor apparel store. Swap in your own facts and collection handles. Keep every claim checkable on your own site.

# {{ agents.store_name }}

> Waterproof outerwear and hiking layers for adults, designed in Canada. Ships to Canada and the US. Prices in {{ agents.currency }}. Free returns within 30 days.

Northfield sells only its own brand. Sizes run XS to 3XL in most styles. AI agents that want to search, build a cart or check out should read the [agent guide]({{ agents.store_url }}/agents.md).

## Collections
- [Rain jackets]({{ agents.store_url }}/collections/rain-jackets): men's and women's waterproof shells
- [Insulated jackets]({{ agents.store_url }}/collections/insulated-jackets): synthetic and down, rated by temperature
- [Base layers]({{ agents.store_url }}/collections/base-layers): merino and synthetic tops and leggings
- [Kids]({{ agents.store_url }}/collections/kids): rain shells and fleece, ages 4 to 14

## Guides
- [Size guide]({{ agents.store_url }}/pages/size-guide): body measurements by product line
- [Waterproof ratings explained]({{ agents.store_url }}/blogs/journal/waterproof-ratings): what 10K and 20K mean and which to choose
- [Care instructions]({{ agents.store_url }}/pages/care): washing and re-proofing shells

## Policies
- [Shipping]({{ agents.store_url }}/policies/shipping-policy): rates, carriers and delivery times
- [Returns]({{ agents.store_url }}/policies/refund-policy): 30-day free returns and exchanges

## Optional
- [Sitemap]({{ agents.sitemap_url }}): every product, collection and page
- [About]({{ agents.store_url }}/pages/about): who makes our gear and where

A few choices in that file are deliberate:

  • The link to /agents.md. Your custom llms.txt replaces Shopify's shopping instructions at that URL, so point agents to where those instructions still live.
  • No product list. A store with 800 products doesn't need them all here. Product data reaches assistants through your sitemap, structured data and Shopify Catalog, and every product link you hand-write is one more thing to go stale. Link a product only if it's a hero item that won't be retired.
  • No prices, stock or promo codes. They change too often for a hand-maintained file.
  • Facts in the summary. "Ships to Canada and the US" and "30-day free returns" are the kind of details assistants get wrong. State them once, and make sure they match your policy pages.

The sitemap link matters. If you haven't looked at yours, our Shopify sitemaps guide explains what's in it.

What happened to the old workarounds

Before May 2026, Shopify returned a 404 at /llms.txt, so merchants used workarounds. If your store used one, check it now.

  • URL redirect to a file in Content > Files. Shopify only redirects broken URLs. Its URL redirect help page says a redirect won't work if the URL still loads a valid page. Now that /llms.txt loads Shopify's file, an old redirect in Content > Menus > URL redirects no longer fires. Delete it and move your content into llms.txt.liquid.
  • App proxy. App proxies serve content under /apps/..., so they always needed a redirect from /llms.txt to work. They have the same problem. If you use an llms.txt app, check how it serves the file today and whether it now writes the theme template instead.
  • Apps that generate the file. Shopify's Help Center now says you don't need an app. If you pay for one, open /llms.txt and see whose content loads. If it's Shopify's default, the app isn't doing anything at that URL.
  • Headless stores (Hydrogen or another framework) don't use theme templates, so serve /llms.txt as a route in your own app, like any other file. Open /llms.txt on your live domain to see what it returns now.

llms.txt vs robots.txt

They do different jobs, and you need both set correctly.

robots.txt llms.txt
Purpose
Tells crawlers which paths they may crawl
Tells AI tools what the site is and what to read
Format
User-agent and Disallow rules
Markdown: heading, summary, link lists
Followed by
Search and training crawlers from Google, OpenAI, Anthropic and Perplexity, per their own docs
No confirmed use by major assistants
On Shopify
Default file; edit with robots.txt.liquid
Default mirrors /agents.md; edit with llms.txt.liquid
Can block access
Yes, advisory
No

If robots.txt blocks a crawler, a perfect llms.txt won't help, because the crawler won't fetch your pages.

AI crawler rules: should you block GPTBot?

Each AI company runs separate crawlers for training and for live answers, and you can treat them differently. These are the main ones, from each company's own documentation:

Crawler Company What it does
GPTBot
OpenAI
Collects content that may be used to train models
OAI-SearchBot
OpenAI
Finds sites to show in ChatGPT search answers
ChatGPT-User
OpenAI
Visits a page when a ChatGPT user asks; OpenAI says robots.txt rules may not apply
ClaudeBot
Anthropic
Collects content for model training
Claude-SearchBot
Anthropic
Indexes content for Claude's search results
Claude-User
Anthropic
Fetches a page when a Claude user asks
PerplexityBot
Perplexity
Indexes sites for Perplexity search results; Perplexity says it isn't used for training
Google-Extended
Google
A robots.txt token controlling Gemini training and grounding; Google says it doesn't affect Search rankings, AI Overviews or AI Mode

Our recommendation for a store that sells products: allow the search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot), since blocking them can keep you out of those assistants' answers. OpenAI says sites that block OAI-SearchBot won't appear in ChatGPT search answers. Blocking the training crawlers (GPTBot, ClaudeBot, Google-Extended) is a business call. It keeps your future content out of training data and doesn't remove you from search answers. Product pages are mostly marketing copy you'd happily see repeated, so we lean toward leaving them allowed unless you publish original content, such as detailed guides, that you don't want used for training.

To block one on Shopify, add a robots.txt.liquid template (Online Store > Themes > Edit code > Add a new template > robots), keep the default rules Shopify outputs, and add a group at the end:

{% 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: GPTBot
Disallow: /

Three things to know before you edit it:

  • Shopify warns that a wrong edit can cost you all your search traffic, and Shopify Support won't help with robots.txt.liquid. Don't replace the Liquid with static text.
  • Robots rules don't control Shopify Catalog. Shopify says blocking AI crawlers affects open-web discovery only. It doesn't stop your product data going to agentic storefronts you've turned on, such as ChatGPT or Microsoft Copilot. You manage those in Sales channels > Agentic.
  • Changes take time to show. OpenAI and Perplexity both say up to about 24 hours.

One more development to watch: on 30 October 2026 OpenAI said it will honor a shared robots.txt signal for AI training preferences, based on an IETF draft, and plans to implement it "in the coming months." Anthropic's crawler page already describes a similar signal. Until the syntax is final and your theme supports it, the per-crawler rules above are the reliable option.

What to do next

  1. Open yourstore.com/llms.txt and yourstore.com/agents.md and read what they say about you today.
  2. Delete any old /llms.txt URL redirect or app that no longer serves content there.
  3. Decide on AI crawlers and check yourstore.com/robots.txt matches that decision.
  4. If you customize, write an llms.txt.liquid with 10 to 25 links, keep /agents.md on Shopify's default, and link to it.
  5. Add the file to the checklist you run when you change policies or main collections, and reread it every quarter.

Frequently asked questions

What is llms.txt?
llms.txt is a plain Markdown file at yourstore.com/llms.txt that gives AI tools a short summary of a website and links to its most useful pages. Jeremy Howard proposed it in September 2024, and the format is documented at llmstxt.org. It is a community convention, not a standard any AI company has to follow.
Does llms.txt really work?
No AI company has said it uses llms.txt to decide what ChatGPT, Gemini or Perplexity recommend. Google says Google Search ignores llms.txt, and OpenAI, Anthropic and Perplexity don't mention it in their crawler documentation. AI tools and coding agents do read it when someone points them at a site, so it costs little to keep accurate.
Can Shopify host an llms.txt file?
Yes. Since May 2026 every Shopify Online Store serves /llms.txt automatically, mirroring the store's /agents.md file. To change it, add an llms.txt.liquid template in Online Store > Themes > Edit code. You can't upload a file to your domain root, and you don't need an app.
Is llms.txt the same as robots.txt?
No. robots.txt tells crawlers which paths they may crawl, and the major AI companies say their crawlers follow it. llms.txt is a reading guide for AI tools. It can't allow or block anything, so your crawler rules still belong in robots.txt.
Should I block GPTBot?
For most product stores, no. GPTBot collects content for training OpenAI's models, and blocking it doesn't remove you from ChatGPT search, which uses OAI-SearchBot. If you don't want your content used for training, blocking GPTBot is a reasonable choice. Leave OAI-SearchBot allowed if you want to appear in ChatGPT answers.