We'd like to use analytics tools to see how this site is used and what visits from AI assistants lead to. Not for ads. Decline: only a cookie-free page count runs. What we store.

Arbling

Should Your Shopify Store Add Shopify llms.txt or AGENTS.md?

Published Dec 3, 2026Beginner · 6 min read

What you’ll learn

  • What your Shopify store already publishes at /agents.md and /llms.txt out of the box
  • How Shopify's 3-step Liquid template lookup works and why /llms.txt is not a redirect
  • Why storefront /agents.md differs from developer AGENTS.md files inside software repositories
  • How to customize templates safely without breaking UCP or MCP endpoint discovery

Open your browser and add /llms.txt or /agents.md to your store's primary domain right now. If you run on Shopify, a live plain-text file is already there. Store owners keep getting pitched paid apps to generate a Shopify llms.txt file from scratch. Those pitches omit a basic fact. Shopify manages both endpoints natively on every storefront.

What Shopify llms.txt and Storefront agents.md Already Do

Shopify's theme documentation confirms that Shopify manages /agents.md automatically for every store (Shopify Dev: agents.md.liquid). Shopify calls /agents.md the canonical, agent-facing description of a storefront. Alongside it, Shopify manages /llms.txt by mirroring /agents.md. Its docs state that the managed file is all stores typically need (Shopify Dev: llms.txt.liquid).

Clear up a common naming mix-up first. The public file at yourstore.com/agents.md describes an online store to shopping assistants. Keep it strictly separate from uppercase AGENTS.md files inside Git repositories. Developers use repository AGENTS.md files to instruct coding tools. Public storefront /agents.md files exist for commerce discovery.

Know how Shopify resolves a Shopify llms.txt request too. /llms.txt is never an HTTP redirect. Shopify runs a documented 3-step lookup on your bare primary domain, without locale folders or Shopify Markets prefixes:

  1. First check. If templates/llms.txt.liquid exists in your active theme, Shopify renders it.
  2. Second check. Otherwise, if templates/agents.md.liquid exists, Shopify renders that template.
  3. Default fallback. When neither custom template exists, Shopify serves its managed default.
Video loads as you scroll
Shopify Spring 26 Edition developer overview of storefront updates

Compare Managed Defaults Against Custom Liquid Overrides

Shopify shipped custom Liquid templates for these paths on May 28, 2026 (Shopify Changelog). Creating templates/agents.md.liquid controls /agents.md and acts as the default for /llms.txt and /llms-full.txt. Creating templates/llms.txt.liquid controls /llms.txt alone.

Replacement carries a real technical risk. A custom template overwrites the Shopify-managed file completely. Pasting static prose without outputting Shopify's agents Liquid object erases dynamic protocol links. Shopify advises keeping Universal Commerce Protocol (UCP) discovery at /.well-known/ucp and MCP endpoints discoverable through that agents object. Read our guide on Universal Commerce Protocol for online stores before editing theme code.

File or PathDefault Behavior on ShopifyCustom Override FileKey Caution for Merchants
/agents.mdManaged by Shopify as the canonical agent-facing store description.templates/agents.md.liquidReplaces managed output; keep UCP (/.well-known/ucp) and MCP endpoints exposed.
/llms.txtManaged by Shopify via 3-step lookup on the bare primary domain.templates/llms.txt.liquidServed at root domain only, without locale or Markets subfolder prefixes.
Repo AGENTS.mdUsed inside software repositories to instruct coding agents.Edited in Git repository.Never copy developer repo rules onto your public storefront URL.

There are no additional requirements to appear in AI Overviews or AI Mode, nor other special optimizations necessary, including no need to create new machine-readable files, AI text files, or markup.

— Google Search Central, AI Features and Your Website

What Google Says About AI Text Files and Ranking Claims

Question any vendor claiming that a custom Shopify llms.txt file raises rankings or sales. Google Search Central states plainly that its AI features need no special AI text file (Google Search Central). Eligibility never guarantees display either.

Treat your Shopify llms.txt file as clean discovery plumbing. Leaving Shopify's managed file untouched already exposes your store's standard agent endpoints. Only add templates/agents.md.liquid when you want to append verified store policies while keeping the {{ agents }} Liquid output intact:

liquid
{% comment %} templates/agents.md.liquid {% endcomment %}
{{ agents }}

Store Policies:
- Returns: 30-day unused returns on standard items
- UCP discovery: /.well-known/ucp

Check /agents.md and /llms.txt in a browser after every theme deploy. Verify that /.well-known/ucp still appears. Review your Shopify checkout readiness for AI agents at the same time.

Diagram of Shopify three-step template lookup from llms.txt.liquid to agents.md.liquid and managed default
Shopify resolves /llms.txt on your bare primary domain using a 3-step template lookup.

Fix Product Page Facts So Shoppers and Agents See One Truth

An index file only points an assistant to your catalog. Next, the assistant reads your product pages and structured data. A tidy Shopify llms.txt file cannot rescue vague listings. Keep buyer-relevant facts such as material, size, and availability complete and consistent on every product page.

Audit your catalog where product data lives. Start with your best-selling products. Check every required field against our walkthrough on product structured data for AI shopping agents. Verify variant prices and stock states too. Then test live assistant answers using our guide to track AI recommendations for a Shopify store.

Measure your baseline AI Readiness Score before touching theme files. That scan takes less than two minutes. On Arbling, agents and shoppers see the same facts as the product pages, so both see one truth (Arbling). Run a free scan to inspect what assistants can read on your store right now.

Frequently Asked Questions About Storefront AI Files

Frequently asked questions

No. Shopify hosts both /agents.md and /llms.txt automatically on every store. Shopify's documentation states that the managed file is all typical stores need. Skip paid generator apps.

Shopify serves /llms.txt strictly at your bare primary domain. Locale prefixes and Shopify Markets subfolders are not used for this file. Always check the root domain URL.

No source supports that claim. Google Search Central states that no special AI text file is needed, and eligibility never guarantees display. Focus on complete product facts instead.

Delete templates/llms.txt.liquid and templates/agents.md.liquid in your theme editor. Shopify's 3-step lookup immediately falls back to the managed default file. Refresh both URLs to confirm.

Sources

See what AI assistants say about your business. Free scan, about a minute.

See who AI recommends
Share
Was this guide helpful?

Get new guides in your inbox.

No spam — one email when we publish something worth reading.

Yevgeniy Makhmutov
Founder, Arbling

Founder of Arbling. Arbling makes product catalogs readable, trusted, and buyable by AI shopping agents across regulated verticals.

Related guides

Related concepts