Miyeta

Shopify's agents.md and llms.txt: What AI Store Discovery Files Actually Do | Miyeta

miyeta·
Shopify's agents.md and llms.txt: What AI Store Discovery Files Actually Do | Miyeta

Shopify stores now expose discovery files intended to help compatible AI agents understand the store and locate useful resources. The most important endpoint is /agents.md. Shopify also serves /llms.txt and /llms-full.txt for compatibility with older conventions.

These files are useful, but their role is easy to exaggerate. They do not turn a store into an AI shopping feed, guarantee that a product will be recommended, or replace accurate product data in Shopify Catalog.

What Shopify serves by default

Shopify's current documentation describes three automatically served URLs:

  • /agents.md
  • /llms.txt
  • /llms-full.txt

Shopify identifies /agents.md as the canonical agent-discovery URL and primary location for agent discovery information. The other two endpoints are compatible with older conventions and can serve the same information.

The default content can include the store name, store URL, sitemap link, store policies, and discovery endpoints for other types of store information. Verify the actual output for your store rather than assuming every installation contains identical content.

See Shopify's Catalog and product discovery documentation.

These files are not the product catalog

A discovery file and a product catalog solve different problems.

A discovery file provides store-level context: where the store is, what policies or resources exist, and where additional information can be found. Product data carries product-level facts such as titles, descriptions, options, images, prices, availability, and attributes.

Shopify explicitly distinguishes agent-discovery files from Shopify Catalog. The files do not replace Catalog capabilities. Therefore, a well-written /agents.md cannot compensate for incorrect prices, missing attributes, unclear variants, stale inventory, or ineligible products.

Likewise, a complete product catalog does not make store policies and business identity irrelevant. These are separate information layers.

For the product-level audit, see How to Audit a Product Catalog for AI Shopping.

How to inspect the endpoints

Replace the example domain with your canonical storefront domain:

https://www.example.com/agents.md
https://www.example.com/llms.txt
https://www.example.com/llms-full.txt

Check each URL in a browser or with an HTTP client. Record whether it returns a successful response, whether the body is readable, and whether the store identity, sitemap, policies, and linked resources are correct.

A command-line check:

curl -i https://www.example.com/agents.md
curl -i https://www.example.com/llms.txt
curl -i https://www.example.com/llms-full.txt

Headers and content both matter. A 200 response containing stale or irrelevant information is not a successful content audit. Verify that every referenced resource actually exists and represents the intended public information.

When customization is useful

Shopify documents that merchants can customize what appears in agent-discovery files by adding supported Liquid templates to the theme.

Customization is worth considering when the default output is factually wrong, incomplete for the store's structure, or omits a genuinely useful public resource. Examples might include a maintained compatibility guide, warranty policy, care instructions, or product documentation.

Before adding content, ask:

  1. Is the default information wrong or incomplete?
  2. Does the resource exist and help a shopper make a decision?
  3. Can the team keep it accurate over time?

Do not add keyword-heavy URL lists just to make the file longer. Do not introduce a second version of a shipping or returns policy that conflicts with the actual policy page. A concise, maintained source of truth is more useful than an expansive but stale file.

What these files cannot prove

A successful endpoint check proves only that the endpoint was reachable and returned the observed content at the time of the test.

It does not prove that a particular AI platform fetched or used the file, that a product entered a shopping catalog, that an agent understood every linked page, or that a product will appear for a specific shopping prompt.

If a product is missing from a shopping result, investigate the relevant distribution path and product eligibility before treating /agents.md as the cause. See Why Aren't My Shopify Products Showing in ChatGPT Shopping?.

A simple validation workflow

  1. Save the current endpoint responses.
  2. Check store identity, canonical URLs, sitemap, and policies.
  3. Verify every linked resource.
  4. Record any customization and its deployment date.
  5. Recheck the same endpoints after deployment.
  6. Run a small set of consistent shopping prompts if product discovery is the concern.
  7. Keep endpoint observations separate from live AI answers, referrals, and orders.

If several things change at once, do not attribute a later change in AI answers to the discovery file alone. Query wording, market, inventory, model changes, and other sources can affect results.

Final takeaway

Shopify's /agents.md, /llms.txt, and /llms-full.txt are store-discovery resources. They can make public store context easier for compatible agents to locate, but they are not product feeds or ranking guarantees.

Verify the live endpoints, correct factual errors, add only useful and maintainable resources, and keep store-level information aligned with product data and policies.

Official documentation

Continue exploring

Continue with the guide or research topic most relevant to this article.