Shopify Already Generates agents.md and llms.txt — Here's What That Means
Every Shopify store auto-generates /agents.md, /llms.txt, and /llms-full.txt. What's built in, when to customize, and what not to touch.
Short answer first: every Shopify store already serves /agents.md, /llms.txt, and /llms-full.txt, automatically, with no theme edit and no app install. If you're here because you want to "add llms.txt to Shopify," you likely don't need to do anything — Shopify built agent discovery into every store, and for most merchants the default is already the right answer. This guide covers what's generated automatically, how /agents.md and /llms.txt actually differ, when customizing is worth the effort, and what to leave alone. For the underlying format itself — what llms.txt is, its Markdown structure, adoption data — see What is llms.txt.
What Shopify generates automatically
Three files, zero setup, on every store:
/agents.md— the canonical, agent-facing description of the store. Per Shopify's own documentation, "agents.mdis the canonical agent-discovery document. It tells AI agents and shopping assistants how to discover the store's commerce capabilities and how to transact with it" (shopify.dev,agents.md.liquidreference page, accessed 2026-09-01). Shopify's managed default includes the store's Universal Commerce Protocol (UCP) and Model Context Protocol (MCP) endpoints, read-only browsing URLs for product, collection, and search data, and the store's published policies — assembled automatically from the store's own configuration, with no theme maintenance required (same source)./llms.txt— described as "an alternate agent-discovery URL that mirrors/agents.mdby default" (shopify.dev,llms.txt.liquidreference page, accessed 2026-09-01). Visit it on any live store and, unless someone has added a custom template, you'll see the same content as/agents.md./llms-full.txt— the same mirroring behavior: "By default,/llms-full.txtmirrors the content of/agents.md" (shopify.dev,llms-full.txt.liquidreference page, accessed 2026-09-01).
One deliberate omission is worth calling out: the managed default for /agents.md "deliberately omits contact details because the file is broadly cached and served to every agent that requests it" (same source) — so don't expect to find a support email or phone number in the default output, and don't add one yourself without reading the risk note below.
agents.md vs llms.txt: canonical vs compatibility
The two files aren't redundant copies of the same idea — they play different roles. agents.md is Shopify's own term for the canonical document: it's built around Shopify's UCP/MCP agent-commerce surface, and it's the file Shopify's own systems treat as the source of truth. llms.txt and llms-full.txt exist as alternate URLs largely for compatibility with the wider llms.txt convention that already exists across the web — the format this site's pillar guide covers — so that crawlers and tools built to check /llms.txt specifically still find something useful, even on a platform whose own agent-discovery model is centered on /agents.md.
In practice, that means: change /agents.md and, by default, both mirrors change with it. The only reason to touch /llms.txt or /llms-full.txt separately is if you want one of them to say something different from the canonical file — which is the advanced case covered next.
Do you need to customize anything?
For most merchants: no. The managed defaults are already live, already synchronized with store configuration, and already maintained by Shopify without any theme work. Customizing only makes sense in a few specific cases:
- You want custom agent instructions across the board. Add an
agents.md.liquidtemplate in your theme. Since the other two files mirror/agents.mdby default, this single template can update all three at once — no need to touchllms.txt.liquidorllms-full.txt.liquidunless you also want one of them to diverge. - You want
/llms.txtspecifically to say something different from/agents.md— say, a shorter, curated list distinct from the canonical agent-commerce description. Shopify frames this explicitly as an edge case: "Add anllms.txt.liquidtemplate only when you have an advanced requirement for/llms.txtto diverge from/agents.md" (shopify.dev, accessed 2026-09-01). - You want
/llms-full.txtto carry a longer or more exhaustive version that isn't appropriate for the canonical file. Same logic, separate template:llms-full.txt.liquid.
To add any of these: in Shopify admin, go to Online Store → Themes → [your theme] → Edit code, and in the Templates directory add a file named exactly agents.md.liquid, llms.txt.liquid, or llms-full.txt.liquid — plain text/Markdown with Liquid, never a JSON template. Static Markdown is the bulk of the content; the free llms.txt generator can produce a starting draft to paste in and adapt.
Whichever template you add, own the maintenance going forward: "When you add this template, you hand-edit the Liquid template and take responsibility for keeping its content current" (shopify.dev, accessed 2026-09-01). The managed default updates itself as your store configuration changes; a custom file only updates when you edit it.
What not to change
- Don't add contact details. Shopify's own guidance is explicit: "Avoid outputting potentially private merchant data, such as contact email addresses or phone numbers, in this file" (shopify.dev,
agents.md.liquidreference page, accessed 2026-09-01) — these files are broadly cached and served to any agent that asks. - Don't hardcode UCP/MCP URLs. If you customize
agents.md.liquid, "keep the UCP and MCP endpoints discoverable by using theagentsobject rather than hardcoding URLs" (same source) — hardcoded endpoints break the moment Shopify's agent infrastructure changes underneath them. - Don't expect a dynamic product/collection loop. All three templates render with a restricted Liquid context: "only the
requestobject and theagentsobject are available, and the standard global Liquid objects such asshop,articles, andcollectionsare not injected" (shopify.dev,llms.txt.liquidreference page, accessed 2026-09-01). You're writing close to static text — link to canonical product, collection, and page URLs by hand. - Don't confuse this with crawler permissions. These files describe the store to agents; they don't control who's allowed to crawl it. That's
robots.txt.liquid's job, a separate, pre-existing template (help.shopify.com, "Editing robots.txt.liquid," accessed 2026-09-01). Publishing a rich/agents.mddoesn't override a robots.txt block on the pages it links to. - Don't customize all three "just in case." If you only need one file to diverge, template only that one. Customizing
agents.md.liquid,llms.txt.liquid, andllms-full.txt.liquidseparately when you didn't need to means three hand-maintained files instead of one managed default — more places for the content to go stale.
Verify what your store is actually serving
Don't take any of this on faith — check your own store:
curl -I yourdomain.com/agents.md
curl -I yourdomain.com/llms.txt
curl -I yourdomain.com/llms-full.txtA 200 on all three confirms Shopify's native support is live, exactly as documented, with no theme work on your part. Then open each in a browser and compare the content: if /llms.txt and /llms-full.txt read identically to /agents.md, you're on the managed defaults. If one reads differently, a custom template already exists somewhere in the theme — worth knowing before you assume you're starting from a blank slate.
Honest limits
Shopify's native support solves the "does this file exist" problem completely, for free, on every store. It doesn't solve a different problem: whether AI engines actually read /agents.md or /llms.txt and change their answers because of it. No AI vendor — not OpenAI, Anthropic, Google, or Perplexity — has published confirmation that its crawlers fetch these files or weight them in what gets cited. llms.txt itself is a community convention, not a web standard any browser or search engine is obligated to honor; see What is llms.txt for the adoption picture across the wider web. Shopify shipping the file natively is a real, verifiable engineering fact. Whether it moves citations is not yet a fact anyone can verify — treat it as free insurance, not a growth lever.
Check your Shopify store's AI visibility
Whether you're relying on the managed defaults or a custom template, a GEO audit checks what's actually being served at /agents.md, /llms.txt, and /llms-full.txt today — plus robots.txt access across AI crawlers, structured data, and content signals — on any live URL, Shopify included, with no theme access required.
Run a free AI SEO audit · Want to draft custom content before you template it? Use the free llms.txt generator to build a starting Markdown draft, then paste it into whichever .liquid template you actually need.
Doing this on WordPress instead? See the llms.txt for WordPress guide.
Apply this guide
Run an AI SEO audit before you change pages.
Use the audit to find which signal is holding the site back: crawler access, schema, llms.txt, content clarity, AI discovery, or entity strength.
- Best for pages that need a technical and content baseline.
- Next metric: AI readiness score plus the weakest signal category.
Frequently asked questions
Does every Shopify store have agents.md and llms.txt automatically?
Yes. Shopify manages /agents.md by default for every store, and mirrors that content to /llms.txt and /llms-full.txt automatically. No theme edit, no app, no setup.
What's the actual difference between agents.md and llms.txt on Shopify?
agents.md is Shopify's canonical agent-discovery document, built around its UCP/MCP agent-commerce endpoints. /llms.txt and /llms-full.txt are alternate URLs that mirror it by default, mainly so tools built against the broader llms.txt convention still find something at the URL they expect.
Do I need to customize anything for AI SEO on Shopify?
Most merchants don't. The managed default is already live and stays synchronized with your store's configuration. Customize only if you have a specific reason for one of the three files to say something different from the canonical default — and know that once you do, you own keeping it updated.
Can I list my products and collections dynamically in these files?
No. All three templates render with a restricted Liquid context — only request and agents objects are available, not shop, articles, collections, or product. Link to canonical URLs as static Markdown instead.
Does having agents.md or llms.txt improve my Shopify store's AI SEO rankings?
No. No AI vendor has confirmed that either file changes rankings or citation frequency, on Shopify or anywhere else. They're orientation files, not ranking levers — see What is llms.txt (/guides/what-is-llms-txt/) for what the format does and doesn't do.
Get the monthly State of GEO report
AI search readiness benchmarks, adoption stats, and the actions that move the needle — delivered monthly. No spam.
By submitting, you agree to receive the monthly GeoReady newsletter: benchmark data from the State of GEO dataset, practical GEO guidance, and product updates. You can unsubscribe anytime. See our Privacy Policy.