Knowledge
Shopify ExcellenceTutorial6 min

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 create and deploy llms.txt on Shopify — manually or with apps like Index AI.

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.

AI referral traffic converts 23% higher than traditional organic search and is worth 4.4x more per visit. Making your store understandable to AI systems is one of the highest-ROI activities you can do right now.

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.

List your top 20-30 products with one-line descriptions and direct URLs. AI systems use these links to crawl and index your product pages more effectively.

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.

Write the file from the perspective of answering the question: 'If an AI assistant needed to recommend products from my store, what would it need to know?' That framing keeps the content focused and useful.

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.

Test your redirect by visiting yourstore.com/llms.txt in an incognito browser window. If you see your content, the redirect is working. If you see a 404, double-check the redirect path — it should be exactly '/llms.txt' without a trailing slash.

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.

Set a calendar reminder to review your llms.txt quarterly. As you add products, discontinue items, or change policies, your llms.txt should be updated to reflect the current state of your store.

The Easy Way: Automate With Index AI

Everything above works. But it has obvious drawbacks: it's manual, it goes stale, and it requires you to understand the specification and maintain the file yourself. If you have 50+ products or update your catalog frequently, manual maintenance becomes a real burden. This is exactly why we built llms.txt generation into Index AI. The app automatically generates and maintains your llms.txt file based on your live Shopify product data. When you add a product, it's reflected in your llms.txt. When you update a price or mark something as sold out, the file updates. When you create a new collection, it appears automatically. Index AI also handles the technical deployment cleanly — serving the file as proper plain text at your domain root, with correct headers and formatting. No URL redirect workaround needed. The file follows the latest llms.txt specification and is optimized for how each major AI platform actually parses it. Beyond llms.txt, Index AI handles the broader AI visibility stack: Schema.org structured data, IndexNow integration for instant indexing, AI crawler management in robots.txt, and monitoring of how your store appears in AI-generated responses. It's the full GEO toolkit in one app. Whether you set up llms.txt manually or use an app, the important thing is having one. The stores that make themselves understandable to AI systems now will have a significant advantage as AI search continues its explosive growth.

If you're managing more than 30 products, automation pays for itself quickly. Manual llms.txt files go stale within weeks as catalogs change — and stale information in AI responses can hurt more than no information at all.

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, automating with an app like Index AI saves ongoing maintenance time and ensures the file stays current. 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 or frequent catalog changes, automate with Index AI to keep the file current and properly formatted