Skip to content
iMakeMVPs
← Back to Blog
GEOJune 15, 20257 min read

How to Add llms.txt to Shopify: Override the Default File and Start Getting Cited in ChatGPT

Shopify auto-generates your llms.txt, but the default file will not earn you AI citations. Here is how to override it with a custom template in under 10 minutes.

By Samer Shaker

Shopify Already Created Your llms.txt, But It Won't Get You Cited in ChatGPT

Browser window showing a Shopify store's bare-bones default llms.txt file at yourstore.com/llms.txt with sparse placeholder text

Shopify stores already have an llms.txt file. Go to yourstore.com/llms.txt right now. The file exists, auto-generated by Shopify. It will not get you cited in ChatGPT.

The default file is bare bones. It lists browse links, a contact page, and UCP/MCP endpoints. No product descriptions. No collections. No statement of what your store actually sells or why a shopper should buy from you. An AI model reading that file learns almost nothing about your business.

This matters because the traffic stakes are real. Adobe Analytics tracked a 693% year-over-year increase in AI referral traffic to US retail sites during holiday 2025. Visitors arriving from AI tools convert 31% more often than average visitors and generate 254% more revenue per visit.

AI-referred shoppers are worth capturing. But AI tools only cite stores they understand. A file that says “browse all products at this URL” gives a language model nothing to work with. The fix is to override the default.

Every Workaround Guide You've Read Is Already Obsolete

Why the Old Tricks Silently Broke

Most store owners followed guides that told them Shopify blocked files at the root directory. That was true. Before Shopify went native with llms.txt, merchants got creative. Three workarounds circulated widely: Cloudflare Workers to intercept the route, CDN redirects that uploaded the file to Shopify Files and pointed /llms.txt at the CDN URL, and app proxies that routed requests through a third-party endpoint. All three worked at the time. None of them work now.

When Shopify started serving /llms.txt natively at the platform level, redirect workarounds stopped firing. Anton Ekström spotted the rollout first, and Shopifreaks confirmed the details. Redirect entries remain visible in admin settings but silently stopped working once Shopify took over the route. If you have a redirect still active, Shopify's generated default file takes precedence. You are not serving your content. You are serving theirs.

The Two Things That Actually Get You Cited: Your llms.txt Content and Your robots.txt Permissions

Most store owners create the llms.txt file and call it done. Getting cited in ChatGPT requires two levers working together: what your llms.txt says, and which crawlers your robots.txt allows.

Your llms.txt content is Lever 1. The file needs to describe your collections, products, and store clearly. Vague or thin descriptions give AI models nothing useful to cite.

Your robots.txt permissions are Lever 2. This is where most stores fail silently.

GPTBot Trains the Model. OAI-SearchBot Generates Live Answers.

Here is the distinction almost every guide gets wrong. GPTBot is OpenAI's training crawler. It collects data to improve future models. Allowing GPTBot does not generate live ChatGPT citations.

OAI-SearchBot is a different crawler entirely. It powers real-time ChatGPT search. OpenAI is explicit about this: “Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers.” Block OAI-SearchBot and your store disappears from ChatGPT answers, regardless of how good your llms.txt file is. PerplexityBot does the same job for Perplexity.

Add both directives to your robots.txt now:

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

That is the minimum required for live AI citation coverage.

Copy This Template Into Your Theme Editor Right Now

Four steps get your custom file live. Follow them in order and do not skip the warning before you paste the template.

Step 1 — Open Your Theme Code Editor

In your Shopify Admin, go to Online Store > Themes. Click the three-dot menu on your active theme, then select Edit code. This opens the theme code editor where you can add and modify template files.

Step 2 — Create templates/llms.txt.liquid

In the left sidebar, find the templates/ directory. Click Add a new template. Set the file type to .txt and name it llms. Shopify will create the file as templates/llms.txt.liquid.

Critical warning before you write a single word: creating this file completely replaces Shopify's auto-generated default. Ilana Davis puts it plainly: “Once you've added the file, you override the default from Shopify. So don't leave this blank if you aren't ready to modify the document.” A blank file or a thin file with three lines actively harms your AI discoverability. Every AI crawler that reads your file and finds nothing will deprioritize your store.

One more hard constraint: Liquid tags do not work inside llms.txt.liquid. No {{ product.title }}, no {% for %} loops. You write static content manually.

Shopify theme code editor showing the templates/ directory with a new llms.txt.liquid file open

Step 3 — Add Static Content That Describes Your Store

Paste this template and fill in every placeholder before saving. The structure follows the official llms.txt specification: one H1 with your store name, an optional blockquote description, and H2 sections listing your key pages as linked items.

# [Your Store Name]

> [2-sentence description of what you sell and who your customers are.]

## Top Collections
- [Collection Name](https://yourstore.com/collections/collection-slug): One-line description of what this collection includes.
- [Collection Name](https://yourstore.com/collections/collection-slug): One-line description.

## Best-Selling Products
- [Product Name](https://yourstore.com/products/product-slug): Brief description of what it is and who it's for.
- [Product Name](https://yourstore.com/products/product-slug): Brief description.

## Policies
- [Return Policy](https://yourstore.com/policies/refund-policy): Your return window and conditions.
- [Shipping Info](https://yourstore.com/policies/shipping-policy): Delivery timeframes and carriers.
- [Contact](https://yourstore.com/pages/contact): Email and phone for customer support.

List 4-6 collections and 4-6 products. Keep each description to one sentence. Use your actual URLs. Save the file when every placeholder is replaced.

Step 4 — Verify the File at yourstore.com/llms.txt

Open a browser and visit https://yourstore.com/llms.txt. You should see your static content. If you still see Shopify's default output, wait up to 5 minutes for the cache to clear, then reload.

If editing theme code sounds like too much, Yoast SEO for Shopify handles this without touching a file. It includes an opt-in toggle that auto-generates your llms.txt weekly. It pulls your top 10 best-sellers, 5 largest collections, policies, and homepage automatically.

Your Next Move: Audit Your robots.txt and Monitor Your AI Traffic

Analytics dashboard showing traffic sources with an AI referral segment highlighted

Open your robots.txt file today and confirm that OAI-SearchBot and PerplexityBot are not blocked. If they are, fix that first. A clean llms.txt means nothing if the crawlers cannot reach your site.

Then set up AI referral tracking in GA4. Create a segment that filters referral sessions from chat.openai.com and perplexity.ai. Watch that segment weekly. Perplexity citations typically appear within one week of setup. ChatGPT citations take one to four weeks.

The stores configuring their llms.txt and robots.txt correctly today will hold a measurable visibility advantage as more shoppers move to AI-first search. Set this up now, before your competitors do.

Frequently Asked Questions About llms.txt on Shopify

Does Shopify automatically create an llms.txt file for my store?

Yes. Shopify auto-generates llms.txt at yourstore.com/llms.txt for every store. If you have not touched your theme files, the file already exists and is live.

What is the difference between GPTBot and OAI-SearchBot on Shopify?

They do completely different jobs. GPTBot collects training data for future AI models. Allowing it does not generate live citations for your store. OAI-SearchBot powers real-time ChatGPT search.

What happens if I create a blank llms.txt.liquid file in Shopify?

A blank file wipes out Shopify's default and leaves AI crawlers with nothing. Your store becomes invisible to those crawlers. Only create the file when you are ready to populate it with real content.

Can I use Liquid variables inside llms.txt.liquid on Shopify?

No. Liquid tags are not supported inside llms.txt.liquid. No variables, no for loops. All content must be static plain text.

Do I need an app to add llms.txt to Shopify, or can I do it manually?

No app required. You can create templates/llms.txt.liquid directly in the Shopify theme code editor. If you prefer a no-code option, Yoast SEO for Shopify handles it with a single toggle. Merchants who also run a WordPress site can follow the same answer-first logic covered in the WordPress llms.txt guide.

Get Your AI Visibility Score

Find out where you rank in ChatGPT, Claude, and Perplexity. We run a live search and show you exactly what is blocking you.

Get My Free AI Audit →