An llms.txt file is a short plain text guide for AI tools. It sits at your web address followed by /llms.txt, and it tells those tools what your business offers and which pages matter most. Think of it as a welcome sheet written for machines, not a page for shoppers. It does not sell anything on its own. It helps AI assistants describe your business correctly when someone asks about it.
Platform screens change over time. If a menu name in this guide does not match what you see, check the vendor docs linked in Sources for the current path.
Shopify makes this a little awkward. There is no folder you can open and drop a file into at the top level of your domain. That means you cannot publish the file the direct way. You get there in two moves instead: put the file in your store's file storage, then point your /llms.txt address at it with a redirect. Shoppers and AI tools who visit that address end up at your file either way.
Why the redirect is the whole trick
A tempting wrong turn is the theme editor. Your theme has an Assets folder, and it will happily accept your file. But anything placed there is served under /assets/, so your file would live at /assets/llms.txt. AI tools check /llms.txt. They do not go hunting in your assets folder. So the theme route leaves you with a file nobody finds.
The route that works uses Shopify's own file storage. Once uploaded, your file lives on Shopify's content delivery network, with a long cdn.shopify.com address. That address is fine. What matters is that your own /llms.txt address forwards to it. You do not need to edit theme code, and you do not need an app, to do this.
What your file should contain
A good file starts with your business name, then a short paragraph that says what you sell, who you serve, and anything distinctive about how you work. After that, group your best links under plain headings, such as Shop, Guides, and Policies. Each link gets a one line note saying what a reader will find there. Keep the list short. This is a curated shortlist, not a copy of your site map.
Here is an example for a fictional pottery shop, so you can see the shape of it:
# Harbor Lane Pottery
> Harbor Lane Pottery makes stoneware dinnerware and vases by hand in a small coastal workshop, selling online across the country and offering studio classes on weekends.
## Shop
- [Dinnerware sets](https://examplepottery.com/collections/dinnerware): Everyday stoneware plates, bowls, and mugs in four glazes.
- [Vases](https://examplepottery.com/collections/vases): Hand thrown vases sized for single stems and full bouquets.
## Guides
- [Care guide](https://examplepottery.com/pages/care-guide): How to wash, store, and handle stoneware so it lasts.
- [Studio classes](https://examplepottery.com/pages/classes): Weekend class dates, skill levels, and booking details.
## Policies
- [Shipping and returns](https://examplepottery.com/pages/shipping-returns): Flat rate shipping and a 30 day return window on unused pieces.
## Optional
- [Studio journal](https://examplepottery.com/blogs/journal): Notes on new glazes and work in progress.
Swap in your own business, your own pages, and your own details. Do not copy this example into your store.
The steps, in order
First, check whether a file is already live. Type your domain followed by /llms.txt into a browser. If your file appears, you do not need to publish anything new. Just read it and fix anything out of date.
Next, draft the file on your own computer in a plain text editor. Save it with the exact name llms.txt, all lowercase. Watch out for editors that quietly add a second extension, which turns the name into llms.txt.txt and breaks the whole setup.
Then upload it. In your Shopify admin, open Content, then Files, choose Upload files, and select your file. When the upload finishes, copy the content delivery network address Shopify gives it. You will need that address in the next step.
Now build the redirect. In your admin, open Online Store, then Navigation, then View URL Redirects, and choose Create URL redirect. Put /llms.txt as the starting address and paste the address you copied as the destination, then save.
Last, test it the way a visitor would. Type your domain followed by /llms.txt into a browser again. Your file text should load. Do not be surprised if the address bar changes to the long content delivery network address after the page loads. That shift is normal and it means the redirect is working.
Two extras worth knowing
If your catalog changes often, keeping a hand written file current gets tedious. The Shopify App Store has apps that build the file for you and keep it served at your /llms.txt address without manual uploads. For a shop that rarely changes, the manual route above is plenty. For a shop with new products every week, an app may be the honest choice.
If you want the file served directly, with no redirect step in between, that takes a developer and an edge function in front of your store, such as a Cloudflare Worker. Most small businesses do not need that. A working redirect does the job.
Keeping it current
This file goes stale quietly. Rename a collection and the old link in your file breaks, and no alarm sounds. A simple habit fixes that: whenever you rename a collection, change a policy, or close a guide page, open your file and update it in the same session. Then upload the new version and check that the redirect still points at the latest upload. A scan will flag broken links in the file, but your own habit catches them sooner.
Two things this file is not. It is not where crawler permissions live. Those belong in robots.txt, which on Shopify you edit through the robots.txt.liquid template in your theme. And it is not a checkout. It points AI tools at your pages. It does not complete a purchase.
Frequently Asked Questions
Why can I not just upload llms.txt to my theme?
Because theme assets are served under /assets/, not at your domain root. AI tools look for the file at /llms.txt, so a file in your theme folder sits where they never check.
After the redirect, why does the address bar show a different address?
That is the redirect doing its job. Your /llms.txt address forwards to the file on Shopify's content delivery network, so the browser ends up showing that longer address while displaying your file.
How often should I update the file?
Whenever your store changes in a way the file describes. New collections, renamed pages, and changed policies all deserve an update in the same session, so the file never points at pages that no longer exist.
Do I need an app to do this?
No. The upload plus redirect method needs no app and no code. An app only becomes useful when your catalog changes so often that manual updates stop happening.
Verified Sources & Technical Documentation
- Shopify developer docs, theme templates General Docs https://shopify.dev/docs/storefronts/themes/architecture/templates
- Shopify Help Center, editing theme code General Docs https://help.shopify.com/en/manual/online-store/themes/customizing-themes/edit-code/edit-theme-code
- llms.txt proposal Specific https://llmstxt.org
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.