If you run a Shopify store, open https://yourstore.com/llms.txt right now. There's almost certainly a file there. You didn't write it — Shopify generates one for every store as part of its Agentic Commerce push.
Here's the part worth knowing: the default file often steers AI shopping agents toward Shopify's own Shop app rather than your store and your pages. It's a sensible default for Shopify. It's not necessarily the one you want.
So on Shopify the job isn't "add an llms.txt" — it's take control of the one you already have.
First, look at what you're serving
Open /llms.txt on your own domain and read it as an agent would. Ask:
- Does it point at my collections, products and policies?
- Or does it mostly route to Shopify infrastructure?
- Is it a curated shortlist, or a dump?
That tells you whether you need to do anything at all.
Option 1 — override it with a theme template (recommended)
The cleanest way to take control. In Online Store → Themes → ⋯ → Edit code, open the Templates folder and create a new template named:
llms.txt.liquid
Shopify serves that template at /llms.txt, so its content replaces the default. Keep it short and curated:
# Example Store
> Example sells handmade ceramics. This file points AI shopping agents at the
> pages that matter.
## Catalog
- [Best sellers](https://example.com/collections/best-sellers): Top products
- [New arrivals](https://example.com/collections/new): Latest additions
## Help
- [Shipping & returns](https://example.com/policies/shipping-policy): Policies
- [Contact](https://example.com/pages/contact): Support
Because it's a Liquid template you can generate parts of it dynamically — but resist the urge to loop over every product (see below).
Option 2 — use an app
The Shopify App Store has several llms.txt apps that generate the file from your products, collections and pages, and refresh it as the catalog changes. Good if you don't want to touch theme code — but review what it outputs, because the default behaviour of most generators is "include everything."
The mistake almost everyone makes: dumping the catalog
llms.txt is a curated index, not a sitemap. A 60-line file beats a 5,000-line one, because an agent reading it has a limited context budget and every junk entry spends it.
List collections, best sellers and key policies — not all 2,000 SKUs. The agent can follow a collection link if it needs depth; it can't recover from drowning in your entire product feed.
One thing you can stop doing
If you set this up in 2024–2025, you may have uploaded a file to Shopify's CDN and added a URL redirect to reach it. That workaround is obsolete — Shopify serves /llms.txt natively now, so use a theme template or an app instead of maintaining a redirect.
Then verify it
The failure you won't notice: a file that looks right but links to collections you renamed or products you retired. Paste your domain into an llms.txt validator — it confirms the file is reachable and well-formed, and fetches every linked URL so dead links surface before an agent hits them. Re-check after big catalog changes.
Shopify handed you a head start on this one. Ten minutes of curation turns it from a file that exists into a file that sells for you.
Top comments (0)