Skip to content
AgentReady
By Dylan HuntJune 9th, 2026Updated November 12th, 2026AI discovery filesAIShopifyAgents md

agents.md on Shopify: What It Is and How to Customize Yours (2026)

Before 2026, the AI-discovery file merchants talked about was llms.txt. Shopify has since made /agents.md the main AI-discovery file on every Shopify store, and /llms.txt and /llms-full.txt mirror it by default. Everything below was re-checked against Shopify's documentation and live default files on November 12, 2026. This is the pillar reference for what that file is, what Shopify puts in it for you, why the default is a problem, and how to make yours describe your brand instead of the platform.

What /agents.md is

/agents.md is a Markdown file served at the bare root of your domain, at yourstore.com/agents.md. A shopping agent fetches it to learn three things fast: what this store is, what it sells, and how to transact with it programmatically. It is the agent-facing front door, the same way robots.txt is the crawler-facing one.

Shopify's agents.md.liquid reference calls it "a public page for shopping agents". The important thing to understand on Shopify is that agents.md is platform-generated and native. You do not have to publish anything for the file to exist. Every store already serves one, automatically, at the domain root. That solves the old Shopify headache where serving a file at / required an app or an app proxy because the platform would not let a theme drop files at the web root.

It also means /agents.md superseded /llms.txt on Shopify. The two older paths, /llms.txt and /llms-full.txt, mirror /agents.md by default. You do not have to maintain three files. You maintain one, and the platform serves its content at the other two unless you deliberately give one of them its own template.

What Shopify generates by default (and why that's a problem)

Here is the catch. The auto-generated agents.md is generic. Its default content is near-identical across stores, because the platform writes it from a template that knows almost nothing specific about your brand beyond its name, URL and policy links. The live defaults we read on November 12, 2026 open with a section that recommends the Shop skill and points agents to https://shop.com/SKILL.md (Shopify's docs link the same skill at shop.app/SKILL.md), then cover the UCP and MCP endpoints, browser tools, interaction rules, and read-only browsing. None of it tells the agent what is distinctive about you.

That is fine for Shopify. It is a weak position for a merchant. In agentic commerce the file is your brief to the machine, the thing it reads to understand and represent you once it has you in view, and the default brief reads like every other store's. We file every store's agents.md into one of three states:

  • Distinctive. A customized file that describes what you sell, why to buy from you, your flagship products, and your policies, while keeping the UCP and MCP rails intact. This is the goal.
  • Generic-default. The platform-generated file, untouched. It exists, it is valid, and it says nothing that separates you from every other store serving the same template. Any store that has never added a template is here.
  • Missing. No file resolves at all, usually because of a misconfiguration or a non-standard theme. The agent gets nothing.

The default state is the one worth worrying about, precisely because it looks like success. The file is present and the checker that only asks "does it exist?" gives you a green light. It takes reading the contents to see that it is the same boilerplate every other store ships. We dig into why that matters commercially in your agents.md is identical to every other store.

The one supported way to customize it

On an Online Store 2.0 (Liquid) theme, the only supported way to override the generated file is to create a theme template at templates/agents.md.liquid. A few details matter:

  • It is a Liquid and Markdown template, not JSON. Other Shopify templates are often JSON; this one is not.
  • A single agents.md.liquid template sets the content for all three paths: /agents.md, /llms.txt, and /llms-full.txt. You write one file and the mirror holds. If you add a dedicated llms.txt.liquid or llms-full.txt.liquid, it takes over that path only.
  • Once you add it, you own it. Shopify says that with a custom template you take responsibility for keeping its content current, while its managed default keeps up with platform changes on its own.
  • It lives in your theme, so it is versioned with your theme and edits the way any other template does, through the theme editor or the CLI.

Shopify documents the template at the agents.md.liquid reference and announced the change in the customize llms.txt, llms-full.txt, and agents.md changelog.

The agents Liquid object

Inside templates/agents.md.liquid, Shopify exposes an agents object so your file stays in sync with the platform instead of hardcoding URLs that will drift. The properties:

PropertyWhat it holds
agents.store_nameYour store's name
agents.store_urlYour storefront URL
agents.ucp_discovery_urlThe UCP discovery endpoint ({store_url}/.well-known/ucp)
agents.mcp_endpoint_urlThe MCP endpoint ({store_url}/api/ucp/mcp)
agents.ucp_versionsArray of supported UCP versions, newest first
agents.currencyYour store currency
agents.sitemap_urlYour sitemap URL

The reason to use these rather than typing the URLs yourself is freshness. The UCP and MCP endpoints are how an agent actually transacts with your store, and they are Shopify's to change. Reference the objects and your file follows the platform. Hardcode them and the day Shopify moves an endpoint, your file starts handing agents a dead address.

A copyable starting template

Here is a complete templates/agents.md.liquid you can paste and edit. The brand sections are plain Markdown for a made-up store; replace them with your own facts. The protocol section uses the agents object, so the endpoints stay correct when Shopify changes them.

# {{ agents.store_name }}

{{ agents.store_name }} makes waterproof jackets and packs for hikers in wet climates.
Everything is designed in Portland and tested in the Cascades. Store: {{ agents.store_url }}

## What we sell
- Rain jackets: three-layer shells, sizes XS to 3XL ({{ agents.store_url }}/collections/rain-jackets)
- Day packs: 18 to 30 litre roll-top packs ({{ agents.store_url }}/collections/day-packs)

## Why buy from us
- PFAS-free waterproof finish on every jacket
- Free returns within 30 days, with a prepaid label
- Two-year repair warranty

## Featured products
- Cascade Shell: our best-selling jacket ({{ agents.store_url }}/products/cascade-shell)
- Ridge 24 Pack: everyday hiking pack ({{ agents.store_url }}/products/ridge-24)

## Policies
- Shipping: {{ agents.store_url }}/policies/shipping-policy
- Returns: {{ agents.store_url }}/policies/refund-policy

## How agents can shop this store
This store implements the Universal Commerce Protocol (https://ucp.dev).
- Discovery: `GET {{ agents.ucp_discovery_url }}`
- MCP endpoint: {{ agents.mcp_endpoint_url }} (call `tools/list` for the available tools)
- Supported UCP versions:
{% for version in agents.ucp_versions %}  - {{ version }}
{% endfor %}
- Prices and availability are returned in {{ agents.currency }}.
- Place orders only with the buyer's authorization, and back off on HTTP 429.

## Browsing
- Sitemap: {{ agents.sitemap_url }}
- Products: {{ agents.store_url }}/products/{handle}
- Collections: {{ agents.store_url }}/collections/{handle}

Two things to check after you save it: open yourstore.com/agents.md to confirm the Liquid rendered (you should see real URLs, not {{ }} tags), and compare the protocol section with Shopify's current default, because Shopify adds guidance there over time, such as the browser (WebMCP) tools and agent identification rules in today's default. Copy anything new across.

The faster way to customize it

Writing the whole file by hand into agents.md.liquid works, but it turns every catalog change into a chore: you have to remember what changed, find the right section, and keep the UCP and MCP rails correct. The faster path is to have the file generated for you from your live store and just paste it in. AgentReady does this, and it takes about two minutes end to end. The full walkthrough with screenshots is in how to customize your agents.md in two minutes; here is the shape of it.

Step 1: generate the file. In AgentReady, open Settings > Agent instructions (agents.md). It builds a complete, brand-specific agents.md from your live catalog, collections, policies, FAQs, reviews and best-sellers, with the UCP and MCP rails matched to Shopify's. It also scores the file so you can see what is covered and what to add.

Step 2, once: paste it into the template. In Online Store > Themes > Edit code, create the templates/agents.md.liquid file and paste the generated content in. That is it. The content is plain Markdown you own outright, sitting in your own theme, with no app code and no hidden dependencies.

When your store changes, AgentReady flags the drift and hands you the updated file to paste over the old one. AgentReady does not host or auto-update the file: Shopify serves it from your theme, and you paste the new version when you are flagged. Why paste rather than auto-install? Shopify only lets the theme own /agents.md, and writing to a merchant's theme requires a special access grant the platform gates carefully. Pasting keeps the app out of your theme entirely: the file is yours, and reverting to Shopify's default is just deleting the template.

One rule whichever way you write the file: do not output private merchant data. Shopify's reference says to avoid contact email addresses or phone numbers in agents.md, and notes that its own default omits them because the file is broadly cached. Link to your public contact page instead of inlining anything personal.

Not sure how agents.md relates to the other files at your domain root? See robots.txt vs llms.txt vs agents.md for what each one does.

How this fits the rest of your AI-discovery setup

agents.md is the index and the handshake. It is not a substitute for the facts on your pages. An agent that reads your file and then visits a product still needs Product schema with per-variant price and availability, an AI-friendly robots.txt, and machine-readable trust signals such as your return and shipping terms. The file points at your best pages; the structured data on those pages states the facts an agent reads there. The complete agentic commerce guide covers how the pieces fit together.

Check which state yours is in

Start with your browser: open yourstore.com/agents.md. If it opens with Shopify's standard intro and a section recommending the Shop skill, and nothing about your products or policies, it is Generic-default. The free AI-readiness checker fetches your store the way an agent does and confirms the file is present and readable, alongside your structured data and the other discovery files. Inside AgentReady, the audit classifies the file as missing, default, or customized.

You can write and maintain templates/agents.md.liquid by hand. Like the rest of your machine-readable data, the work is keeping it true as your catalog and policies change. AgentReady generates a brand-specific agents.md from your live catalog and flags you when your store drifts from what is live, so the file stays Distinctive instead of sliding back toward the default. The two-minute walkthrough has the exact steps.

Run the checker to see how the rest of your store reads to an agent today.

Quick answers

Frequently asked questions

What is agents.md on Shopify?
agents.md is a public Markdown file at the root of your domain (yourstore.com/agents.md) that Shopify describes as a page for shopping agents: what your store is and how to discover and buy from it. Shopify serves a default agents.md for every store, and /llms.txt and /llms-full.txt mirror it by default. The default is generic: it covers Shopify's protocol endpoints and recommends Shopify's Shop skill rather than describing your brand.
Did agents.md replace llms.txt?
On Shopify, mostly. Since May 2026, /llms.txt and /llms-full.txt mirror /agents.md by default, so one templates/agents.md.liquid file sets the content for all three paths. Shopify also accepts a dedicated llms.txt.liquid or llms-full.txt.liquid template if you want one path to differ. The llms.txt convention still exists across the wider web.
How do I customize agents.md on a Shopify store?
Create a theme template at templates/agents.md.liquid in your Online Store 2.0 (Liquid) theme. It is a Liquid and Markdown file, not JSON. That single template sets /agents.md, and /llms.txt and /llms-full.txt follow it unless they have their own templates. Inside it you can use the agents Liquid object (agents.store_name, agents.store_url, agents.mcp_endpoint_url, and so on) to keep the UCP and MCP endpoints in sync while adding brand-specific sections.
Should agents.md include my contact email or phone number?
No. Shopify cautions against putting private merchant data such as contact email and phone in agents.md, because the file is broadly cached by agents and crawlers. Point at your public contact page instead of inlining personal details.
What is the agents Liquid object?
It is the set of properties Shopify exposes inside templates/agents.md.liquid so your file stays in sync with the platform: agents.store_name, agents.store_url, agents.ucp_discovery_url, agents.mcp_endpoint_url, agents.ucp_versions, agents.currency, and agents.sitemap_url. Using these objects rather than hardcoding URLs means your UCP and MCP endpoints never drift out of date when Shopify changes them.

See where your store stands

See what AI shopping assistants can read on your store.

Run the free AI-Readiness Checker to see, in under a minute, how ChatGPT, Perplexity, and Google read your store today and exactly what is holding it back. Then AgentReady prepares the fixes, starting with Schema.org structured data, and publishes them after you approve. Install free. Paid plans start at $9/mo.

Comments

Every comment here comes from a verified email. Write yours, confirm from your inbox, and it's live.

Loading comments…

Leave a comment

ShareXLinkedInFacebook

Written by Dylan Hunt, Founder, AgentReady. AgentReady measures what AI says about Shopify stores and helps teams improve the answer. See plans.