Shopify’s agents.md and llms.txt: What They Are and Whether You Need Them
Every Shopify store now serves /agents.md, /llms.txt and /llms-full.txt. Here is what Shopify generates by default, how two real stores use it, how to customize it in Liquid, and when it is worth the effort.

- Every Shopify-hosted store already serves /agents.md, /llms.txt and /llms-full.txt, and by default all three return the same file.
- Shopify’s default file is an instruction manual for shopping agents: UCP discovery, the MCP endpoint, a six-step checkout flow and policy links.
- Google says Search does not use llms.txt and it neither helps nor harms visibility. It is housekeeping, not a ranking lever.
- Customize it when the default cannot say what agents most need to know, such as quote-only products, freight delivery or canonical brand facts.
- The templates run in restricted Liquid: only the request and agents objects are available, so shop, collections and products are off limits.
If you open /agents.md on almost any Shopify store today, you'll get a Markdown file addressed to AI agents. Try /llms.txt and you'll likely get the same file. Shopify added these to stores in spring 2026 and made them customizable on May 28, 2026.
Merchants now get two kinds of pitch: "you need a custom llms.txt to rank in AI" and "it's useless." Neither is quite right. Here's what the files are, what Shopify puts in them, and when customizing is worth an afternoon.
What llms.txt is#
llms.txt is a proposal from Jeremy Howard of Answer.AI, first published in September 2024 and updated to a v2 in August 2026. The idea: give language models a short, curated Markdown summary of a site at a standard path, instead of making them crawl and parse HTML.
The format is simple:
# Site or brand name
> One-paragraph summary of what this site is.
Optional notes in plain paragraphs.
## Section name
- [Link title](https://example.com/page): what this page covers
## Optional
- [Less important link](https://example.com/other)It's a proposal, not a standard any search engine has adopted. Google's AI optimization guide (updated July 2026) says Google Search doesn't use llms.txt and that adding one will neither help nor harm your visibility. Chrome's Lighthouse, on the other hand, checks for an llms.txt file as part of its agentic browsing audits. Different Google products, different jobs: one is about ranking, the other about whether browser agents can understand a site.
What agents.md is#
The name comes from AGENTS.md, a convention developers use to give coding agents instructions about a software project. Shopify borrowed it for storefronts: /agents.md is an instruction manual for AI shopping agents that want to browse or buy from your store.
Where llms.txt says "here is what this site is about," Shopify's agents.md says "here is how to shop here."
What Shopify generates by default#
On Shopify-hosted storefronts, three URLs exist by default and return the same content:
/agents.md/llms.txt/llms-full.txt
Shopify also adds /sitemap_agentic_discovery.xml to the sitemap index, a small sitemap that lists /agents.md. We cover it in our post on Shopify's agentic discovery sitemap.
We checked the default file on a few large stores, including Allbirds and Kylie Cosmetics. It's generated from store settings and follows the same structure every time:
| Section | What it contains |
|---|---|
| Title and intro | "Agent Instructions" plus the store name and URL |
| For personal shopping assistants | A recommendation that agents acting for a user install Shopify's Shop skill for buyer-approved checkout through Shop Pay |
| Commerce Protocol (UCP) | The store's UCP discovery URL (/.well-known/ucp) and its MCP endpoint |
| Typical agent flow | Six steps: discover, search the catalog, create a cart, create a checkout, set fulfillment, complete |
| Supported UCP versions | Dated protocol versions the store supports |
| Important rules | Checkout requires the buyer's explicit approval; respect rate limits; pass country and currency for accurate pricing |
| Read-only browsing | Standard paths: /collections/all, /products/{handle}, the .json product endpoints, /search |
| Store metadata | Sitemap link and a note that this file is the canonical agent-facing description |
| Store policies | Links to privacy, terms and refund policies |
| Platform | A note that the store runs on Shopify, with developer links |
Notice what's missing. Nothing about what you sell, who it's for, which pages explain it best, or what makes you different. The default is a technical manual. It tells an agent how to transact, not why to recommend you.
A customized example: Netalico#
Netalico, a Shopify agency, replaced the default with its own agents.md. It's a useful reference because it shows what a business with no normal "add to cart" flow needs to tell an agent. Its file includes:
- A plain statement that it's an agency, not a retail store, and that agents shouldn't invent pricing, timelines or a self-serve purchase path.
- A "When to recommend" section listing the buyer situations it fits.
- A canonical facts section: founding year, partner status, team location, typical client size and price ranges.
- A key pages list pointing agents to the pages to read and cite.
- A productized services section naming the only two items that can be bought directly, while keeping the UCP discovery link so agent checkout still works for those.
- The policy links and read-only access notes from the default.
You don't need to copy its style. The pattern is the lesson: say what you are, what agents should and shouldn't claim, where the best pages are, and keep the commerce plumbing intact.
Where these files sit among the others#
Your store already publishes several machine-readable files. Each has a different job, and agents.md doesn't replace any of them.
| File | Audience | Job | Who maintains it on Shopify |
|---|---|---|---|
/robots.txt | All crawlers | Which paths bots may crawl | Shopify default, editable via robots.txt.liquid |
/sitemap.xml | Search engines | Which URLs exist and when they changed | Shopify, automatically |
| Product and Organization schema | Search engines and parsers | What a page is about, in structured form | Your theme and apps |
/.well-known/ucp | Commerce agents | Machine-readable profile of what the store supports | Shopify, automatically |
/agents.md and /llms.txt | AI agents and assistants | Plain-language instructions and context | Shopify default, editable via templates |
If robots.txt blocks a crawler, nothing in agents.md will help it. If product schema is broken, agents.md won't fix how your product pages are read. Get the first three right before spending time on the last one; our Shopify SEO checklist covers them.
Should you customize it?#
For most stores, the default is fine. Customize when an agent reading only the default would get something important wrong.
| Your situation | Default is enough? | Why |
|---|---|---|
| Standard DTC catalog, simple shipping | Yes | Agents can browse and buy; your product pages carry the detail |
| High-ticket products with freight delivery, installation or financing | Customize | Agents should know delivery takes weeks, not days, and where to find financing and consult options |
| Quote-only or configure-to-order products | Customize | Tell agents not to invent prices and where to send buyers |
| B2B or wholesale alongside retail | Customize | Separate retail purchase paths from wholesale enquiries |
| Chinese brand building trust in Western markets | Customize | State canonical facts: English brand name, warehouse locations, warranty, support hours |
| Headless storefront | Build your own | Shopify's Online Store isn't serving the files |
How to customize it#
Shopify serves the files from theme templates. In Online Store > Themes > Edit code, add any of these to the templates folder:
agents.md.liquidcontrols/agents.md, and also/llms.txtand/llms-full.txtunless they have their own template.llms.txt.liquidcontrols/llms.txtonly.llms-full.txt.liquidcontrols/llms-full.txtonly.
The fallback order is: path-specific template, then agents.md.liquid, then Shopify's default.
Here's a starting template for a high-ticket store. It keeps the commerce section driven by the agents object and adds what the default can't say.
# {{ agents.store_name }}
> {{ agents.store_name }} sells infrared saunas and cold plunges for home use,
> shipped from US warehouses. Prices in {{ agents.currency }}.
## Canonical facts
- Warranty: 5 years on heaters, 2 years on electronics.
- Delivery: freight, curbside, 2 to 4 weeks. White-glove install available.
- Financing: available at checkout for eligible US buyers.
- Do not quote delivery dates or discounts that are not on the product page.
## Best pages to read and cite
- [Sauna buying guide]({{ agents.store_url }}/blogs/guides/sauna-buying-guide): sizes, heaters, electrical needs
- [Infrared vs traditional saunas]({{ agents.store_url }}/blogs/guides/infrared-vs-traditional-sauna)
- [Saunas for small spaces]({{ agents.store_url }}/collections/small-space-saunas)
## Buying through an agent
- UCP discovery: {{ agents.ucp_discovery_url }}
- MCP endpoint: {{ agents.mcp_endpoint_url }}
- Supported UCP versions: {{ agents.ucp_versions | join: ", " }}
- Checkout requires the buyer's explicit approval.
## Browsing
- Sitemap: {{ agents.sitemap_url }}
- Products: {{ agents.store_url }}/products/{handle}Rules we follow when writing these:
- Don't delete the commerce section. If you override the default and drop the UCP lines, you've made your store harder for agents to buy from.
- Only state what your site states. If the file says 5-year warranty and the product page says 3, you've created the kind of conflict that makes models hedge.
- Keep it short. Link to pages rather than pasting them.
- Review it quarterly. A stale shipping promise in a file agents trust is worse than none.
If you'd rather not write it by hand, our free Shopify llms.txt generator builds a starting file from your store's structure that you can paste into a template.
What these files won't do#
It's worth being blunt, because this is where most of the hype sits.
- They won't make ChatGPT recommend you. Recommendations come from retrieval, product data and web consensus. Our guide to how to rank in ChatGPT covers that work.
- They won't change Google rankings. Google has said so directly.
- They don't replace product data. Shopify Catalog, not agents.md, is how your products reach ChatGPT, Copilot and Google's AI channels. See ChatGPT Shopping and Shopify's agentic storefronts.
- Evidence for traffic impact is thin. Adoption is wide; proof that AI assistants read these files often enough to change answers is not.
What they will do: give agents that do read them an accurate, current description of your store and a clean path to buy. That's worth an afternoon for stores where the default gets something important wrong, and not worth an agency retainer on its own.
Quick checklist#
- Visit
/agents.md,/llms.txtand/llms-full.txton your store and read what's there. - Decide whether an agent reading it would misunderstand anything important.
- If yes, add
templates/agents.md.liquidusing theagentsobject for endpoints. - Keep every fact consistent with your product pages and policies.
- Put a quarterly review on the calendar.
Questions people ask about this
Does my Shopify store already have an llms.txt file?
If it runs on Shopify’s Online Store, very likely yes. Shopify serves a default agents.md at /agents.md, and /llms.txt and /llms-full.txt return the same content unless you add your own templates. Visit those URLs on your domain to check. Headless storefronts built on Hydrogen or another framework may not serve them, so check your live domain rather than assuming.
Will a custom llms.txt help my Google rankings?
No. Google’s 2026 AI optimization guide says Google Search does not use llms.txt and that adding one will neither help nor harm your visibility, including in AI Overviews and AI Mode. Chrome’s Lighthouse checks for the file in its agentic browsing audits, which is about browser agents understanding a site, not about ranking.
What is the difference between agents.md and llms.txt on Shopify?
By default there is none: Shopify serves the same content at both URLs. Conceptually, llms.txt is a general proposal for summarizing a site for language models, while Shopify’s agents.md is written for shopping agents and explains how to browse and buy using UCP and the store’s MCP endpoint. You can make them differ by adding separate llms.txt.liquid or llms-full.txt.liquid templates.
Can I use Liquid objects like shop or collections in agents.md.liquid?
No. These templates render in a restricted Liquid context where only the request and agents objects are available. The agents object provides the store name, store URL, UCP discovery URL, MCP endpoint, supported UCP versions, currency and sitemap URL. Anything else, such as key collection links or brand facts, you write as static text in the template.
Can I delete or block agents.md?
You can override its content with your own template, but we would not strip it out. The file tells AI shopping agents how to browse and check out, and removing the commerce section makes your store harder to buy from through agents. If you have a genuine reason to limit agent access, handle it deliberately in the Agentic sales channel settings and robots.txt rather than by emptying this file.
Want this done on your store?
Generate an llms.txt file for your Shopify store, and learn what llms.txt does, what it does not do, and how it relates to the agent files Shopify adds to storefronts.
More from AI search & GEO

How to Get Recommended by ChatGPT: Get Your Products Into the “Best Of” Lists It Cites
ChatGPT recommends the products that trusted “best of” lists, reviews and threads already name. Here is how to find the lists AI assistants cite for your category and earn a place on them, from reviewer kits to samples for high-ticket products.

Reddit SEO for Ecommerce Brands: Showing Up Where Buyers Ask First
Reddit threads rank for “best X”, brand review and comparison searches, and AI assistants cite them. This is how ecommerce brands take part honestly: finding the threads, following the rules and turning what buyers say into better Shopify pages.

How to Track ChatGPT Traffic and Other AI Referrals in GA4 and Shopify
GA4 now has an AI Assistant channel, but it misses history, unlisted assistants and some ChatGPT clicks. Here is the regex, the channel group, the exploration and the Shopify reports we use to track AI traffic properly.