← Blog

Shopify llms.txt Guide (2026): Native Setup, Templates & Examples

Step-by-step guide to adding llms.txt to Shopify in 2026. Discover native templates/llms.txt.liquid theme setup, copy-ready Markdown templates, and AI crawler checklists.

AlexAlex2026-05-11
llms.txtShopifyAI VisibilityGEOChatGPT

What is llms.txt?

Short answer: llms.txt is a proposed plain-text Markdown format at a site root, such as yourstore.com/llms.txt. It can describe useful resources to AI systems, but platform support and use vary. Shopify already serves an agent-discovery file at this path by default.

For Shopify merchants, llms.txt can be a useful support layer: it gives AI systems a concise map of the pages, products, policies, and buying guides that matter most. It is not a replacement for crawlable pages, product schema, helpful content, product feed data, or reviews.

Need a Shopify llms.txt right now?

This guide explains what llms.txt is, why it emerged, what belongs inside it, how to implement Shopify's native Liquid template support, and how to verify it with AI crawlers.

The 30-second version

  • llms.txt is a Markdown file at the root of your domain: /llms.txt.
  • It lists your most important URLs: products, collections, FAQs, policies, and buying guides.
  • Each URL gets a short description so AI systems know why it matters.
  • It does not replace sitemap.xml, robots.txt, schema, product feed data, or useful content; it complements them.
  • Shopify stores benefit because product pages and themes are often noisy for AI crawlers.

If you only remember one line: sitemap.xml says “here is everything”; llms.txt says “here is what matters most.”

Why llms.txt exists

For 20 years, the shopping journey was built around Google: a shopper typed keywords, clicked a result, visited a store, and sometimes purchased.

That journey is changing fast. Shoppers now ask ChatGPT for product recommendations, use Perplexity to compare options, see Google AI Overviews above traditional results, and increasingly complete purchases inside AI-native shopping flows.

In every one of those flows, an AI system must decide which stores and products to mention. That decision depends on whether the AI can quickly understand what your store sells, who it serves, and why a product is a good fit.

Traditional web files do not fully solve this:

  • robots.txt says what can or cannot be crawled. It is a gate, not a guide.
  • sitemap.xml lists URLs. It tells crawlers what exists, not what is important.
  • Shopify product pages contain theme code, navigation, related products, popups, and scripts that can bury the actual product signal.

llms.txt fills the missing layer: a curated, human-readable summary of what an AI system should know to represent your store accurately. Indeed, our 2026 Shopify AI Visibility Benchmark revealed that while 92.5% of active stores return an /llms.txt file (driven by Shopify's platform-level Universal Commerce Protocol template), only 9.4% have customized it with curated product collections and buying guides.

What an llms.txt file looks like

Mechanically, llms.txt is a Markdown file served from the root of your domain:

https://yourstore.com/llms.txt

A typical file includes an H1 with the store name, a blockquote summary, optional context, and H2 sections that list key URLs with short descriptions.

# Northwind Coffee Co.

> Single-origin specialty coffee roasted weekly in Portland, Oregon, shipped to home brewers across the U.S.

## Products

- [Yirgacheffe Single Origin](https://northwindcoffee.com/products/yirgacheffe): Bright, floral light roast from Ethiopia, 12oz whole bean.
- [Huila Reserve](https://northwindcoffee.com/products/huila-reserve): Caramel-forward Colombian, medium roast, 12oz.

## Buying Guides

- [How to choose your first specialty coffee](https://northwindcoffee.com/blogs/guide/choosing): For new specialty coffee drinkers.

## Policies

- [Shipping & Returns](https://northwindcoffee.com/policies/shipping): U.S. shipping rates, return window, freshness guarantee.

That is the point: plain Markdown, readable by humans and easy for language models to parse.

Some sites publish expanded content at llms-full.txt. Shopify instead mirrors /agents.md at both /llms.txt and /llms-full.txt by default; a separate full-content file requires an explicit override.

llms.txt vs sitemap.xml vs robots.txt

These files do different jobs. Check Shopify's managed defaults before deciding whether any custom file is needed.

File Audience Job
robots.txt Search engines and AI bots Permission: who can access what
sitemap.xml Search engine crawlers Inventory: every URL that exists
llms.txt AI systems and answer engines Priority: which URLs matter and what they are about

They layer together: robots.txt allows the AI crawlers you care about, sitemap.xml lists every page, and llms.txt highlights the subset that matters most for AI grounding.

If you do not publish llms.txt, AI systems can still crawl your store. They just have to guess what matters. With llms.txt, you tell them. For the crawler side of the setup, read our Shopify robots.txt checklist for AI crawlers.

What goes inside a Shopify llms.txt file

A strong Shopify llms.txt usually includes six sections.

1. Store overview

Start with the brand name, what you sell, who it is for, and what makes the store distinct. Keep this to one to three concise sentences.

2. Featured products or collections

Do not list every SKU. List the products or collections you would want AI to recommend first: best sellers, flagship products, defining categories, or high-margin items. For most stores, 10–30 links is a healthy range.

3. Buying guides and educational content

AI engines lean heavily on content that helps shoppers decide: comparison guides, sizing guides, care guides, ingredient explainers, style guides, and “how to choose” articles.

4. FAQs

FAQ content is already in question-and-answer form, so AI systems can quote and ground it easily. Include your main FAQ page and any topic-specific FAQ resources.

5. Policies

Shipping, returns, sizing, warranty, subscriptions, and international availability are common AI shopping questions. Make policy pages easy to find.

6. About and brand context

If your brand story affects buying decisions — sustainability, family-owned production, local manufacturing, certifications, or ingredient standards — include the page that explains it.

Avoid every product, internal admin URLs, pages you do not want surfaced, and marketing fluff with no informational value. llms.txt is about curation, not completeness.

How to check and customize Shopify's agent files

Shopify already manages /agents.md for every store; /llms.txt and /llms-full.txt mirror it by default. For most stores, keep that managed default. An existing file is not evidence that a separate app or custom template is needed.

  1. Visit your store's /agents.md and /llms.txt before changing anything, and identify the specific information that is missing.
  2. If custom content is necessary, back up your theme, open Online Store > Themes > Edit code, and create templates/agents.md.liquid to customize all three routes. Use templates/llms.txt.liquid only if /llms.txt needs different content.
  3. These templates expose only agents and request. Standard theme objects such as shop and collections are unavailable. Use agents fields and explicitly maintained static links instead of looping over the catalog.

Official template references: llms.txt.liquid · agents.md.liquid.

Supported Liquid example

# {{ agents.store_name }}

> Store: {{ agents.store_url }}

## Commerce discovery
- UCP: {{ agents.ucp_discovery_url }}
- MCP: {{ agents.mcp_endpoint_url }}
- Sitemap: {{ agents.sitemap_url }}

This example is checked against Shopify documentation, not executed in a development store. After saving, inspect the actual response: the store name and URLs must be populated, commerce-discovery links must remain available, and any custom product or policy links must resolve. Add only public information; do not expose private merchant contact details.

Which AI engines use llms.txt, and when will results appear?

Do not assume every AI platform reads this file or uses it to rank products. There is no supported platform-by-platform results timetable. Keep pages crawlable, product facts accurate and buying guides useful; monitor referrals and citations over time without treating a file change as proof of an outcome.

Google's AI features guidance says indexed, snippet-eligible pages have no additional technical requirements for AI Overviews or AI Mode. A custom llms.txt is not a prerequisite for appearing there. Google Search Central.

Frequently asked questions

Does Shopify generate llms.txt automatically?

Yes. Shopify's managed agent-discovery file is available by default. Customize it only when your requirements exceed that default; you are then responsible for keeping the replacement current.

Do I need a custom llms.txt if I already have schema?

Not necessarily. Structured data describes product facts; an agent-discovery file serves a different purpose. Keep Shopify's default unless you have a specific customization requirement. Neither guarantees AI recommendations.

What about llms-full.txt and multiple languages?

On Shopify, /llms.txt and /llms-full.txt mirror /agents.md unless separately overridden. These files are served on the bare primary domain, without localized or Markets subfolder versions. You can include relevant language links in custom content.

What to do next

Check the managed file first. If you need a draft content map, use the free generator and category templates; review the Shopify setup guide for customization decisions. Review the app's current features and permissions before installing, rather than assuming it deploys templates or monitors citations.