By Steve Merrill · July 18, 2026
To set up an llms.txt file on Shopify, create a plain-text Markdown file listing your most important pages, place it at yourstore.com/llms.txt, and keep it updated. That's the whole job. But understand up front: llms.txt is a proposed convention, not a guaranteed ranking factor.
I've had a hard time getting people to slow down on this one. Everybody wants the AI hack. This isn't that. It's a simple courtesy file that hands AI models a clean map of your store. Nothing more.
The idea is close to how robots.txt works, except this file is written for language models instead of crawlers. It skips the code and the clutter and points straight at the pages a shopper would care about. Here are the seven steps.
1. Understand what llms.txt actually is
llms.txt is a small Markdown file that points AI models at your most useful pages instead of making them guess through your whole site. It was proposed by Jeremy Howard and is documented at llmstxt.org. No major AI company has confirmed it as a ranking factor, so treat it as a helpful signal, not a promise. Data does not lie, and the honest data here is that this is early. Set it up because it's cheap and clean, not because someone told you it guarantees traffic.
2. Put the file at your root domain
The file has to live at yourstore.com/llms.txt so tools know where to look. Shopify blocks writing to the true root by default, so most stores serve it through a URL redirect or a small app. Get the location right or nothing else matters.
3. List your key pages and product URLs
Include the pages you'd want a customer to see first: homepage, top collections, best-selling product URLs, shipping and returns policy, and your contact page. Write each as a Markdown link with a short plain description. Skip the junk. A tight file of 15 good links beats a dump of 200. The goal is that a model reading it can tell in seconds what you sell and where to send a buyer.
4. Format it as clean Markdown
Start with an H1 of your store name, a one-line blockquote summary of what you sell, then H2 sections holding bulleted links. The llmstxt.org spec lays out this exact structure. Keep it readable by a human, because if a person can scan it, a model can too.
5. Let it complement robots.txt and your sitemap
llms.txt does not replace the files you already have. Your robots.txt controls which crawlers get in, and your Shopify sitemap lists every URL on the store. llms.txt sits next to them and curates the few pages that matter most for an AI answer. Think of it as the short list on top of the full catalog. All three files work together, and none of them cancels out the others.
6. Test that the file loads correctly
Open yourstore.com/llms.txt in a browser and confirm it returns plain text with a 200 status, not a 404 or your theme's HTML. Click through every link to make sure each one resolves. A file that loads as a redirect loop or points at dead pages does more harm than good. Do this check the same day you publish it, not a week later when you've moved on.
7. Keep it updated as your store changes
Refresh the file whenever you launch products, rewrite a policy, or kill old URLs. A stale llms.txt that sends AI to pages you deleted is worse than not having one. Put it on the same schedule you use for your sitemap and forget it the rest of the time. A short quarterly check is usually enough for most stores.
How We Chose These Steps
These steps follow the published spec at llmstxt.org and Shopify's own documentation on file hosting and sitemaps. We kept the framing honest: llms.txt is early, adoption is uneven, and no search engine has promised it moves rankings.
FAQ
Q: Is llms.txt an official Shopify feature?
No. It's a community proposal from llmstxt.org, not a Shopify product feature or a confirmed ranking signal. You add it yourself.
Q: Will llms.txt make my store rank higher in AI answers?
There's no proof it does. It may make your key pages easier for AI tools to find and read, but adoption by the big AI companies is still limited.
Q: Where does the file go on Shopify?
At your root, yourstore.com/llms.txt. Shopify restricts root writes, so most stores use a redirect or an app to serve it there.
Q: Does llms.txt replace my sitemap or robots.txt?
No. Keep both. Robots.txt controls access, the sitemap lists all your URLs, and llms.txt highlights the pages you most want AI to read.
Want help getting your Shopify store ready for AI-driven shopping? See how we do it at WRKNG Digital's agentic commerce page.

