How to Customize llms.txt on Shopify

Inspect Shopify’s managed llms.txt and customize it with the dedicated Liquid template when needed.

Try

Setup steps

  1. Read the managed file on your primary storefront domain

    Shopify serves /llms.txt by default using the content of /agents.md. Fetch it at the domain root, without a market or locale prefix.

  2. Override the active theme only if you need different content

    In Online Store → Themes → Edit code, create templates/llms.txt.liquid for an llms.txt-only override. Use templates/agents.md.liquid when you want one shared description. Keep the sample store variables and replace the support URL.

    Override the active theme only if you need different content example
    # {{ agents.store_name }}
    
    > Store information for customers and shopping assistants.
    
    ## Store information
    - [Agent instructions]({{ agents.store_url }}/agents.md)
    - [Sitemap]({{ agents.sitemap_url }})
    - [Support](https://example.com/pages/contact)
    
  3. Check the live theme output

    Save the template and publish the theme when ready. Confirm the active theme renders your Markdown at /llms.txt.

Official platform documentation

Verify the published llms.txt

Replace example.com with the published hostname and fetch the file. The final response should be HTTP 200 with the expected Markdown body and a Content-Type of text/markdown; charset=utf-8 or text/plain; charset=utf-8.

HTTP verification command
curl -fsSL -i https://example.com/llms.txt

If status 200 comes back with an HTML homepage, sign-in screen or error page, you have an HTML fallback (a soft 404). Check the final URL and fix the route or rewrite, then fetch it again.

Frequently asked questions

Does Shopify already publish llms.txt?

Shopify’s Online Store serves a managed /llms.txt by default. It mirrors /agents.md unless you provide an override.

Can I customize all discovery files together?

Use templates/agents.md.liquid as the shared source. An llms.txt or llms-full.txt template takes precedence for its own URL.

Does llms.txt control which products an agentic storefront lists?

Shopify Catalog supplies product data to agentic storefronts. The discovery file describes your store and points to useful resources.

Scan your published site

Check the live page and its robots.txt and llms.txt. The scan is free. If you want files tailored to the report, the $12 Auto-Generated Fix Pack is available from the results.

Run a free scan