How to Add llms.txt to Shopify: Replace the Default File
Good news: Shopify now publishes an llms.txt for every
store automatically. Bad news: the default is Shopify's pitch, not
yours. This guide shows how to swap in a curated file with a single
theme template — no app, no Cloudflare Worker — and verify it is live.
Shopify Now Serves llms.txt Natively
For most of 2025, adding llms.txt to a Shopify store meant
a workaround: intercept /llms.txt in a Cloudflare Worker
fronting the store, or upload the file to Shopify Files and create a URL
redirect from yourstore.com/llms.txt to the CDN link. Both
approaches are dead now. Shopify serves the route at the platform level,
and every store gets a generated file — open
yourstore.com/llms.txt and you will get a real response,
no setup required.
That sounds like the problem is solved. Then you read the file and find the catch: it was generated by Shopify, for Shopify — and it shows.
Why the Default Shopify llms.txt Undersells Your Store
- It leads with Shopify, not you. The default recommends the Shop app, links Shopify's developer tools, and points to pages for starting a new store — in some cases before a single product appears. An AI engine that reads the file first learns about the platform, not about your brand.
- It skips what matters. Your top collections, best sellers, FAQ and about page are not prioritized — and may be missing entirely.
- It has no descriptions. Bare URLs force an AI to fetch each page and guess what it covers, which is exactly what
llms.txtexists to prevent. - It wastes space on developer links. Lines aimed at people building on Shopify carry zero value for a shopper asking ChatGPT or Perplexity which store sells what they want.
| Aspect | Shopify default | Your custom file |
|---|---|---|
| Leads with | Shopify ecosystem | Your brand and catalog |
| Catalog links | Generic, unprioritized | Top collections and best sellers |
| Link descriptions | Rare | One line per link |
| Update control | Platform decides | You decide |
The fix is a curated file — the same principle as the e-commerce examples in our llms.txt sample library, but written around your store.
Step 1: Write Content an AI Can Act On
Start from your sitemap: Shopify generates one at
yourstore.com/sitemap.xml. Paste it into the free
llms.txt generator
to draft the file, then curate — delete out-of-stock lines, thank-you
pages and thin pages until only the links you want AI engines to reach
remain. A proven shape for a store:
# Meadow & Stone Tea Co.
> Meadow & Stone sells loose-leaf tea and brewing kits, ships worldwide from Portland, OR.
## Collections
- [Best Sellers](https://meadow.example.com/collections/best-sellers): the 20 teas customers reorder most
- [Gift Sets](https://meadow.example.com/collections/gift-sets): curated tea and kit bundles under $60
## Products
- [Jasmine Silver Needle](https://meadow.example.com/products/jasmine-silver-needle): single-origin jasmine green tea, 50 g pouch
- [Cold Brew Kit](https://meadow.example.com/products/cold-brew-kit): carafe, filter and two sampler tins
## Useful Pages
- [About](https://meadow.example.com/pages/about): sourcing, story and the team
- [Shipping & Returns](https://meadow.example.com/pages/shipping): delivery times and the return policy Curated beats exhaustive: a dozen strong links with clear descriptions outperform a dump of hundreds of SKUs, and AI engines reward files that follow the llms.txt best practices — short summaries per link, grouped sections, no dead URLs.
Step 2: Add a templates/llms.txt.liquid Theme File
Shopify treats llms.txt the way it treats
robots.txt: a special template overrides the generated
file. Confirmed on the Shopify developer community and in 2026 guides,
the method is:
- In your Shopify admin go to Online Store → Themes.
- Open the three-dot menu next to your live theme and choose Edit code.
- Inside the
templatesfolder, click Add a new template. - Pick a plain template (not JSON), and name it exactly
llms.txt.liquid— the.liquidextension is mandatory; a file namedllms.txtwill not be served. - Paste your curated Markdown content into the template and click Save.
Your content is now served at yourstore.com/llms.txt,
replacing the Shopify default. Theme code edits do not affect your store
front end: the template only answers that one route.
Step 3: Verify, Then Keep It Fresh
Confirm the file is live and served correctly:
curl -s -o /dev/null -w "%{http_code}" https://your-store.com/llms.txt
# Expect: 200 — then view the URL and check it is your content Paste the URL into the free llms.txt checker to validate structure and links against the spec. Then set a maintenance cadence: refresh the file after major catalog or pricing changes, seasonal collection swaps, and product retirements. Each subdomain or regional storefront needs its own file at its own root, since URLs, currency and inventory differ between them.
Once the default is replaced, Shopify stops speaking for you and your catalog speaks first. Draft the file from your sitemap with the free llms.txt generator, publish it through the template, and validate with the checker — a five-minute job that puts your products ahead of the platform in every AI answer.