Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

How to Add an /llms.txt File to Your Shopify Store (No Shopify Plus Required)

If you've checked your server or CDN logs recently, you've probably noticed a surge in AI crawlers—GPTBot,ClaudeBot,PerplexityBot, andGoogle-Extended`—hitting your storefront alongside traditional search bots. When a sh

If you've checked your server or CDN logs recently, you've probably noticed a surge in AI crawlers—GPTBot,ClaudeBot,PerplexityBot, andGoogle-Extended`—hitting your storefront alongside traditional search bots.

When a shopper asks ChatGPT, Perplexity, or Google AI Overviews for product recommendations, these bots try to read your store. The problem with standard Shopify themes is that product and collection pages are packed with Liquid template bloat, mega-menus, cart drawers, and tracking scripts. AI crawlers burn through their context window parsing HTML noise instead of your actual catalog specs and policies.

That’s why the /llms.txt standard (proposed by Jeremy Howard) is quickly becoming essential for e-commerce stores. It gives AI search engines a clean, structured Markdown index of your store right at the root domain.

The Shopify Root Directory Catch

Unlike a standard Next.js or Nginx setup where you can just drop a static file into /public, Shopify doesn’t let you upload custom text files directly to the root path (yourstore.com/llms.txt) unless you’re using complex Cloudflare Workers or a Shopify Plus proxy.

Fortunately, there is a clean 4-step workaround using Shopify’s native File CDN and URL Redirects that works on any basic Shopify plan.

Step 1: Generate Your Clean Markdown File

Instead of writing Markdown by hand for dozens of products and collections, run your storefront URL through this free llms.txt generator.

It automatically parses your Shopify XML sitemap, strips out the Liquid/HTML DOM clutter, and generates both:

  • /llms.txt (your store's structured summary index)
  • /llms-full.txt (comprehensive product and policy context)

(It’s 100% free, requires no signup, and doesn't cap your URL count).

Step 2: Upload to Shopify Files

  1. Open your Shopify Admin.
  2. Go to Content > Files in the left sidebar.
  3. Click Upload files and select the llms.txt file you just downloaded.
  4. Once uploaded, click the Link icon next to the file to copy its Shopify CDN URL (it will look like https://cdn.shopify.com/s/files/1/.../llms.txt).

Step 3: Create a Root URL Redirect

Because AI bots look for /llms.txt at your root domain and automatically follow 301/302 redirects:

  1. In Shopify Admin, go to Content > Menus (or Online Store > Navigation).
  2. Click View URL Redirects in the top right corner, then click Create URL redirect.
  3. In Redirect from, enter: /llms.txt
  4. In Redirect to, paste the full https://cdn.shopify.com/... URL from Step 2.
  5. Click Save redirect.

(Test it by visiting yourstore.com/llms.txt in a new tab—it will immediately serve your plain-text Markdown file!)

Step 4: Add a Discovery Hint in theme.liquid

To make sure every crawler discovers your file even if it lands on a deep product page first:

  1. Go to Online Store > Themes > Edit code.
  2. Open layout/theme.liquid.
  3. Inside the <head> section, add this single line:

html
<link rel="describedby" href="/llms.txt" type="text/plain" />

Wrapping Up

If you want to dive deeper into handling multi-language Shopify markets, automating catalog updates, or verifying bot hits, check out the full Shopify llms.txt guide.

Are you already seeing referral traffic from Perplexity or ChatGPT Search on your stores, or are you still blocking AI bots in robots.txt? Let me know in the comments!`

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.