Nexis CRO Blog
llms.txt for Shopify Stores: Setup Guide (2026)
How to publish llms.txt at your Shopify store root so ChatGPT, Perplexity, and Claude can discover your catalog, policies, and buying guides without wading through your full sitemap.
Key Takeaways
- llms.txt is a curated markdown manifest at
yourstore.com/llms.txtproposed by Jeremy Howard (Answer.AI, late 2024) and widely adopted by AI crawlers by 2026. - Shopify cannot host root files natively; workable paths are App Proxy, Cloudflare Worker, or Files + URL redirect (Craftshift, Surfient).
- A 25-link curated file outperforms a 500-link auto-generated dump because LLMs have limited context windows.
- Pair llms.txt with JSON-LD schema and the broader Shopify AEO guide for full AI discoverability.
What Is llms.txt and Why Shopify Merchants Need It
llms.txt is a plain-text (markdown) file at your store root that tells AI systems which pages represent your brand accurately. Unlike sitemap.xml, which lists nearly every URL, llms.txt is editorial: you choose the collections, hero SKUs, sizing guides, and policy pages that answer pre-purchase questions.
For Shopify merchants, the file matters because LLMs increasingly answer shopping queries before a user clicks Google. If your return policy lives only on a buried /policies/refund-policy page and your bestseller is three clicks deep, models may cite a reseller or a competitor with clearer public context. llms.txt is the shortcut you hand to the model.
This is not a replacement for SEO or schema. It is the curated map layer in a three-part stack: crawler access, llms.txt, and structured product data.
llms.txt vs Sitemap vs robots.txt
| File | Purpose | Shopify default |
|---|---|---|
robots.txt | Allow or block crawlers | Platform-managed with theme overrides |
sitemap.xml | Exhaustive URL index for search engines | Auto-generated |
llms.txt | Curated highlights for LLM context | Not included |
Think of llms.txt as the executive summary you would email to a buyer researching your brand. The llms.txt proposal uses an H1 title, optional blockquote summary, H2 sections, and markdown links with short descriptions.
What to Include in a Shopify llms.txt
Curate 20 to 40 links, not your full catalog. Recommended sections:
- Store summary (blockquote): category, markets shipped, return window, brand positioning.
- Hero collections: bestsellers, new arrivals, core category hubs.
- Top SKUs: 5 to 15 products with high margin or strategic priority.
- Policies: shipping, returns, warranty, sizing, sustainability.
- Buying guides: blog posts or pages that answer “which product should I buy?”
- Optional section: secondary links models can skip when context is tight.
Exclude: every variant URL, staging domains, cart/checkout paths, admin links, and auto-generated tag pages. A Surfient analysis found that machine-generated 500-page files perform worse than a focused 25-page manifest.
Example skeleton
# Acme Outdoor — Shopify Store
> US shipping; 30-day returns; technical apparel for trail runners.
## Collections
- [Trail Running](https://example.com/collections/trail): Waterproof and breathable gear
- [Bestsellers](https://example.com/collections/bestsellers): Top-rated SKUs
## Policies
- [Shipping](https://example.com/policies/shipping-policy): 2-5 day domestic delivery
- [Returns](https://example.com/policies/refund-policy): Free 30-day returns
## Guides
- [Boot fit guide](https://example.com/blogs/news/boot-fit): Size and terrain matching
How to Publish llms.txt on Shopify (3 Methods)
Shopify’s closed hosting model means you cannot FTP a file to /llms.txt. These are the methods that work in production as of 2026.
Method 1: App Proxy (recommended for Shopify apps)
An app proxy intercepts yourstore.com/llms.txt and returns markdown from your app server with Content-Type: text/plain and HTTP 200. No redirect, no HTML wrapper. This is how dedicated AEO apps (including Nexis CRO llms.txt deployment) avoid theme conflicts.
Verify:
curl -I https://yourstore.com/llms.txt
Expect HTTP/2 200 and content-type: text/plain (or text/markdown).
Method 2: Cloudflare Worker
If your custom domain runs through Cloudflare, a short Worker can serve llms.txt at the edge and pass all other paths to Shopify. Zero redirect, no app dependency (GEO Knowledge Base).
Method 3: Shopify Files + URL redirect
Upload llms.txt to Settings → Files, copy the CDN URL, then create a redirect in Online Store → Navigation → URL Redirects from /llms.txt to the file URL (eCommerce Today). Simple, but some crawlers prefer direct 200 responses over 301 chains.
Avoid: placing the file in /assets/llms.txt or rendering llms content inside a standard page template. Shopify may wrap content in HTML navigation, wasting crawler token budget (aioforecommerce.com).
llms-full.txt: When to Add a Second File
Some merchants publish llms-full.txt alongside the curated index. The full file inlines markdown text from critical policies and guides so models can read shipping and return rules without fetching multiple URLs. Keep the curated llms.txt small; put bulk content in llms-full.txt only if you can maintain freshness monthly.
Five Mistakes That Waste Your llms.txt Effort
- Auto-dumping the sitemap into llms.txt. Defeats the purpose of curation.
- Wrong content-type (
text/htmlinstead of plain text). Validate withcurl -I. - Broken or redirected links in the curated list. Audit URLs quarterly.
- Stale product references after discontinuations. Treat llms.txt like a campaign landing page.
- Blocking AI bots in robots.txt while publishing llms.txt. Crawlers must be allowed to fetch the file.
Maintenance Cadence
| Frequency | Task |
|---|---|
| Weekly | Check hero SKU links after launches |
| Monthly | Refresh policy links and bestseller section |
| Quarterly | Full URL validation and competitor citation review |
After publishing, track whether AI referrals rise in analytics and run ChatGPT citation checks on category prompts you care about.
Auto-generate and deploy llms.txt on Shopify
Nexis CRO generates, deploys, and refreshes your store's llms.txt via app proxy with no theme surgery.
Start Free AuditFAQ
- Does Shopify support llms.txt natively?
- No. Use App Proxy, Cloudflare Worker, or Files plus URL redirect to serve the file at /llms.txt with text/plain headers.
- How long should llms.txt be?
- Target under 2,000 tokens: roughly 40 to 60 lines with 20 to 40 curated links.
- What is llms-full.txt?
- An optional companion file that inlines full markdown from critical pages so models can read policies without multiple fetches.
- Do redirects work for AI crawlers?
- Often yes for GPTBot and ClaudeBot, but App Proxy or edge Workers returning HTTP 200 are more reliable than 301 chains.