Knowledge Hub
Shopify ExcellenceTutorial6 min read

How to Set Up llms.txt on Your Shopify Store (Step-by-Step Guide)

llms.txt helps AI search engines understand your store. Learn how to write and deploy llms.txt on Shopify with the URL redirect method, verify that AI crawlers can read it, and where it fits next to product data and structured data.

Tim Meyer

Tim Meyer · Founder & CEO

Mar 23, 2026

How to Set Up llms.txt on Your Shopify Store (Step-by-Step Guide) – llms.txt helps AI search engines understand your store. Learn how to write and d

If you've been paying attention to AI search — ChatGPT, Perplexity, Google AI Overviews — you've probably noticed something: most Shopify stores are invisible to these systems. They can't crawl your store efficiently, they don't understand your product catalog, and they have no structured way to learn what your brand actually does. That's the problem llms.txt solves. It's a simple text file, hosted at yourstore.com/llms.txt, that gives large language models a machine-readable summary of your business. Think of it as robots.txt for AI — except instead of telling crawlers what to avoid, you're telling them what to pay attention to. I built Index AI partly because I saw how painful it was to set this up manually on Shopify. But whether you use our app or do it by hand, every store should have an llms.txt file in 2026. Here's exactly how to set one up.

What Is llms.txt and Why Does It Matter?

The llms.txt standard was proposed by Jeremy Howard in late 2024 as a way for websites to communicate directly with large language models. The idea is simple: AI systems struggle to parse complex HTML pages with navigation menus, JavaScript widgets, and dynamic content. They need a clean, structured text file that summarizes what a website is about.

Your llms.txt file sits at the root of your domain (e.g., https://yourstore.com/llms.txt) and contains a markdown-formatted overview of your business — who you are, what you sell, your key pages, and any information you want AI systems to prioritize. When AI crawlers like GPTBot, PerplexityBot, or ClaudeBot visit your site, they check for this file and use it to build a more accurate understanding of your brand.

Why does this matter for e-commerce? Because AI shopping is exploding. ChatGPT Shopping, Perplexity Shopping, and Google AI Overviews are already recommending products to millions of users. If an AI system doesn't understand your store, it can't recommend your products. Stores with llms.txt are giving these systems exactly what they need to surface the right products to the right people.

The llms.txt Specification: What Goes in the File

The llms.txt format follows a straightforward markdown structure. Here's what a typical file looks like for a Shopify store:

# Your Store Name

> A one-line description of your store and what makes it unique.

## About

  • Founded: 2020
  • Based in: Berlin, Germany
  • Category: Premium skincare
  • Price range: €25–€120

## Products

  • [Vitamin C Serum](https://yourstore.com/products/vitamin-c-serum): Best-selling brightening serum with 15% L-ascorbic acid
  • [Hydrating Moisturizer](https://yourstore.com/products/hydrating-moisturizer): Lightweight daily moisturizer for all skin types

## Collections

  • [Best Sellers](https://yourstore.com/collections/best-sellers)
  • [New Arrivals](https://yourstore.com/collections/new-arrivals)

## Policies

  • Free shipping on orders over €50
  • 30-day return policy
  • Climate-neutral shipping

The key principles: use markdown headings to organize sections, include direct URLs to important pages, keep descriptions concise and factual, and focus on information that helps AI systems recommend your products accurately. Avoid marketing fluff — AI models are trained to extract facts, not respond to persuasion.

Writing Your llms.txt File Manually

Open any text editor and create a new file. Start with your store name as an H1 heading, followed by a blockquote with your value proposition. Then build out the sections described above.

Here's a practical approach: Open your Shopify admin and go to Products. Sort by best-selling. Take your top 20-30 products and list them with their full URLs and a one-sentence description each. Then go to Collections and list your main collections. Add your key policies — shipping, returns, anything a customer (or AI) would want to know before recommending you.

A few rules to follow. Keep the total file under 10,000 words — AI systems have context limits and you want them to read the whole thing. Use plain language, not marketing speak. Include specific details: price ranges, ingredients, materials, sizing info. These are the facts AI systems use when deciding whether to recommend your product for a specific query.

Don't include everything. This isn't a sitemap. It's a curated summary of what matters most. If you sell 500 products, pick the 30 that drive 80% of revenue. If you have 20 collection pages, list the 8 that matter. The goal is signal density — maximum useful information per line.

Save the file as llms.txt (plain text, UTF-8 encoding). Now comes the tricky part: getting it onto your Shopify store.

Deploying llms.txt on Shopify (The URL Redirect Method)

Shopify doesn't let you upload arbitrary files to your domain root. There's no FTP access, no file manager for the root directory. But there's a workaround that's been used for years for similar files like ads.txt — and it works perfectly for llms.txt.

Step 1: Create a new page in Shopify. Go to Online Store > Pages > Add Page. Title it 'llms.txt' (the title doesn't really matter, but this keeps it organized). In the page content, paste your llms.txt content. Set the URL handle to 'llms-txt'. Save it. Your content is now at yourstore.com/pages/llms-txt.

Step 2: Create a URL redirect. Go to Online Store > Navigation > URL Redirects. Click 'Add URL redirect.' Set the redirect from '/llms.txt' to '/pages/llms-txt'. Save.

Now when any AI crawler — or anyone else — visits yourstore.com/llms.txt, they get redirected to your page with the content. Most AI crawlers follow redirects without issue.

The limitation of this approach: the content is served as HTML (wrapped in your theme), not as a plain text file. Some purists argue this is suboptimal because AI systems need to parse through your theme's HTML to extract the llms.txt content. In practice, modern LLMs handle this fine — they're trained to extract content from HTML. But if you want a cleaner solution, read the next section.

Verifying Your llms.txt Is Working

After deployment, you need to verify that AI systems can actually find and read your file. Here's how to check.

First, visit yourstore.com/llms.txt directly in your browser. You should see your content rendered on the page. If you get a 404, your URL redirect isn't set up correctly. Go back to Online Store > Navigation > URL Redirects and check the paths.

Second, test with AI systems directly. Open ChatGPT and ask: 'What can you tell me about [yourstore.com]? Check their llms.txt file.' Do the same with Perplexity. If the AI can describe your store accurately using details from your llms.txt, it's working.

Third, check your server logs (or Shopify analytics) for visits from AI crawlers. Look for user agents containing GPTBot, PerplexityBot, ClaudeBot, or ChatGPT-User. If these bots are hitting your llms.txt URL, they're reading it.

Fourth, make sure your robots.txt isn't blocking AI crawlers. Go to yourstore.com/robots.txt and check for any Disallow rules targeting GPTBot, PerplexityBot, or ClaudeBot. If you find blocks, you'll need to modify your robots.txt through your Shopify theme's robots.txt.liquid file.

One common gotcha: Shopify's default robots.txt blocks /pages/ paths for some themes. If your redirect points to /pages/llms-txt and that path is blocked in robots.txt, AI crawlers will be redirected to a URL they can't access. Check this explicitly.

Where llms.txt Fits in the Bigger AI Visibility Picture

Everything above works. But keep llms.txt in proportion: it is one small, cheap signal, and it goes stale if nobody maintains it. If you have 50+ products or update your catalog frequently, put a quarterly review in the calendar and keep the product list to your bestsellers and evergreen collections instead of trying to mirror the whole catalog.

What AI shopping assistants read first is your product data: category and category attributes, GTINs, titles, descriptions, images, prices, stock and policies. ChatGPT, Gemini and Copilot get products through Shopify Catalog and from your pages and structured data. A perfect llms.txt cannot compensate for missing GTINs or a return policy that only exists in a PDF.

This is where our Index AI app comes in. It does not generate llms.txt — we deliberately left that out of the 2026 version. Instead it checks every product for what Shopify Catalog and the AI channels require, adds structured data through an app embed with a live audit, checks crawler access in robots.txt and agents.md, and measures whether ChatGPT, Gemini and Perplexity actually name your store when buyers ask, with a fact check of prices, stock and return windows in those answers.

Whether you set up llms.txt manually or leave it for later, the order of priorities is clear: product data and crawler access first, structured data second, llms.txt as the finishing touch.

Conclusion

Setting up llms.txt on your Shopify store is one of the simplest, highest-impact things you can do for AI visibility in 2026. The manual method takes about an hour — write the file, create a Shopify page, set up a redirect, verify it works. For stores with larger catalogs or frequent changes, keep the file short and review it quarterly; the bigger levers for AI visibility are complete product data, structured data and crawler access — which is what Index AI checks and measures. Either way, you're giving AI search engines exactly what they need to understand and recommend your products. The stores doing this now are the ones showing up in ChatGPT Shopping, Perplexity answers, and Google AI Overviews. The ones that aren't are invisible. Don't be invisible.

Key takeaways

  • 01llms.txt is a markdown-formatted text file at your domain root that helps AI systems understand your store and products
  • 02The file should include your store description, top 20-30 products with URLs, main collections, and key policies
  • 03On Shopify, deploy using the URL redirect method: create a page with your content, then redirect /llms.txt to that page
  • 04Verify by visiting the URL directly, testing with ChatGPT/Perplexity, and checking that robots.txt doesn't block AI crawlers
  • 05For stores with 30+ products, keep llms.txt short and review it quarterly — the bigger levers are product data, structured data and crawler access, which Index AI checks and measures
Tim Meyer

Written by

Tim Meyer

Founder & CEO, BrandUp Factory

About Tim