Merchants keep searching for how to generate an llms.txt file for a Shopify store, and the honest answer has a twist that a lot of older tutorials have not caught up with. So here is the current version, re-checked against Shopify's documentation in November 2026: what the file is, what a good one contains, and how generating one on Shopify actually works now.
What llms.txt is, in one paragraph
llms.txt is a Markdown file served at your domain root, yourstore.com/llms.txt, that gives AI assistants a curated map of your most important pages with a line of context for each. Where sitemap.xml dumps every URL for a search crawler to chew through, llms.txt is editorial. It says: if you only read a few things about this store, read these, and here is what each one is. It started as a proposal by Jeremy Howard for helping language models read a site in a single fetch. It is a convention, not a standard, and Google has said Google Search does not use it. The full history and format live in llms.txt, explained.
What belongs in it
Whatever file ends up serving this job for your store, the content brief is the same. A useful llms.txt for a merchant contains:
- A brand description that a stranger could repeat. Two or three sentences: what you sell, who it is for, what makes you different. Write it in plain, factual language, because whatever reads it will work from exactly these words.
- Your top collections and a few flagship products, each with a one-line annotation. Not the whole catalog. Curation is the entire value of the file.
- Shipping and returns policies. These are the facts a shopper checks right before buying, so link the real policy pages.
- FAQ or help content that answers the recurring questions in your category.
- Anything that proves trust: your about page, guarantees, certifications that matter in your niche.
And what does not belong: URL dumps, marketing fluff with no facts in it, pages that expire in a week, discount codes, and anything you would not want repeated verbatim.
A short example
Here is the shape of a good file for a made-up outdoor brand. Notice how little of it is URLs and how much is context.
# Northfold Outfitters
> Northfold makes waterproof jackets and packs for hikers in wet climates.
> Everything is designed in Portland and tested in the Cascades. Free returns within 30 days.
## Collections
- [Rain jackets](https://northfold.example/collections/rain-jackets): three-layer shells, sizes XS to 3XL
- [Day packs](https://northfold.example/collections/day-packs): 18 to 30 litre packs with roll-top closures
## Flagship products
- [Cascade Shell](https://northfold.example/products/cascade-shell): our best-selling jacket, PFAS-free finish
## Policies
- [Shipping](https://northfold.example/policies/shipping-policy): US and Canada, 2 to 5 business days
- [Returns](https://northfold.example/policies/refund-policy): 30 days, free return label
## Help
- [Sizing guide](https://northfold.example/pages/sizing): how our fits compare to other brands
- [Care instructions](https://northfold.example/pages/care): washing and re-proofing
The Shopify twist: llms.txt mirrors agents.md
Here is the part that changed. Shopify now serves agents.md at the domain root of every store, and by default /llms.txt and /llms-full.txt mirror its content. On May 28, 2026 Shopify announced that all three paths can be customized through theme templates: templates/agents.md.liquid sets the content for all three, and a dedicated llms.txt.liquid or llms-full.txt.liquid takes over just that one path. Any path without its own template falls back to your agents.md template, then to Shopify's default. The details are in Shopify's agents.md.liquid reference.
This is good news, because the old path for llms.txt on Shopify was awkward: a theme could not drop an arbitrary text file at the domain root, so you needed an app or an app proxy just to serve one. Now Shopify serves the file for you. It also means agents.md is usually the better file to think about, because beyond the curated index it carries the transaction details, the endpoints an agent uses to search your catalog and build a checkout. How the three root files divide the labor is mapped in robots.txt vs llms.txt vs agents.md.
So on Shopify, "generate an llms.txt" usually translates to: put the right content in your agents.md template, and the mirror does the rest.
How to actually generate it
Step 1: Read what you are serving today. Open yourstore.com/llms.txt and yourstore.com/agents.md in a browser. Unless you have already customized them, you will find the platform default: technically present, generically worded, and near-identical to every other store's. That sameness is the problem you are about to fix, and why the default is generic is its own story.
Step 2: Draft the content. Work through the "what belongs" list above against your own store. The exercise that produces the best files is pretending you are briefing a new employee in 300 words: what we sell, who buys it, our best collections, our policies, why people trust us.
Step 3: Publish it through your agents.md template. Create templates/agents.md.liquid in your theme and put the content there. Your edits ship like any other theme change, and /llms.txt serves the same content unless you give it a template of its own. Keep Shopify's transaction section in the file, since agents need it. The mechanics are in how to customize your Shopify agents.md.
Step 4: Keep it current. A discovery file is a promise about your store, and promises rot. Collections change, policies change, bestsellers rotate. Once you add a custom template, Shopify says you take responsibility for keeping its content current. A file describing your 2025 catalog is worse than the default, because it is confidently wrong. The failure pattern is common enough that we wrote up why agents.md goes stale separately. Put a quarterly review on the calendar at minimum.
The honest caveats
Two of them, as always. First, no discovery file guarantees you placement in AI answers. Assistants weigh relevance, price, availability, reviews, and signals nobody outside the platforms controls. What the file does is remove ambiguity about what your store is. Second, the file is one layer of several: it does not fix blocked crawlers, thin product data, or a mis-categorized catalog entry. It is the introduction, not the whole interview.
If you want to know whether the rest of the interview holds up, the free AI-Readiness Checker reads your discovery files, your structured data, and your crawler access the way an agent would, and grades the lot in under a minute. If you would rather not write the file by hand, AgentReady generates a brand-specific agents.md from your live catalog. You paste the template into your theme once, and AgentReady flags you when your store changes so you can paste the updated version. Shopify keeps serving the file either way.

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