{"title":"Generate an llms.txt file for your site","slug":"llms-txt-for-stores","url":"https://support.storeconnect.com/articles/llms-txt-for-stores","url_markdown":"https://support.storeconnect.com/articles/llms-txt-for-stores.md","subtitle":null,"summary":"Give AI tools and large language models structured context about your store by serving an llms.txt file. Set up as a content page rather than a dedicated feature, and requires StoreConnect website v21 or later.","type":"Help_Documentation","video_url":"","keywords":"llms.txt, AI crawlers, LLM context, artificial intelligence, content page, alternate content type, AI search, ChatGPT, Perplexity","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"`llms.txt` is a typical method for giving AI tools and large language models (LLMs) structured, plain text context about your site. This is similar to how `robots.txt` gives instructions to search engine crawlers. [Learn more about llms.txt](https://llmstxt.org/).\n\n:::note\nServing `llms.txt` requires StoreConnect website v21 or later.\n:::\n\nUnlike `robots.txt`, StoreConnect does not auto-generate an `llms.txt` file for you. You need to create and maintain it yourself using a [content page](content-pages).\n\n## How llms.txt works\n\n`llms.txt` is served through the same mechanism as any other alternate content type on a [content page](content-pages): a **Page** record with a file extension in its **Path** field. There is no dedicated llms.txt feature or setting, so you have full control over the file's content and when it changes. The same mechanism can serve any other on-demand feed an AI tool or answer engine expects, not only `llms.txt`. See [answer engine and generative engine optimization](answer-engine-optimization).\n\n## llms.txt format and content\n\nYou can use any number of AI tools to generate a basic llms.txt for your site. The output will look something like this:\n\n```markdown\n\n# [Your Store Name]\n\n\u003e [Your Store Name] is a premium online retailer specializing in [Niche], offering high-quality [Product Category] with fast, worldwide shipping and easy returns.\n\n## Core Categories\n- [Shop All Products](https://yourstore.com)\n- [Best Sellers](https://yourstore.com)\n- [New Arrivals](https://yourstore.com)\n\n## Customer Care\n- [Shipping Information](https://yourstore.com)\n- [Returns \u0026 Refunds](https://yourstore.com)\n- [Contact Support](https://yourstore.com)\n\n## Featured Products\n- [Premium Leather Jacket](https://yourstore.com) - $299.00\n- [Handcrafted Ceramic Mug](https://yourstore.com) - $24.00\n```\n\n## Create your llms.txt file\n\n1.  Go to the **Pages** list for the store and click **New**.\n2.  Set the **Path** field to `llms.txt` (no leading `/`).\n3.  Replace the default `{{ content_page | render_content_blocks }}` snippet in the **Content Body** field with your llms.txt content.\n4.  Save the record.\n5.  Open `https://your-store.com/llms.txt` in your browser and confirm the file returns as plain text, without the header, footer, or theme wrapper.\n\nTo update the llms.txt later, edit the **Content Body** on this record.\n\n:::tip\nAn AI agent connected to your store can draft the `llms.txt` content from your live catalog and create the **Page** record for you. See [build on StoreConnect using AI agents](use-ai-agents-with-storeconnect).\n:::\n\n## Writing dynamic content\n\nThe **Content Body** field is rendered through Liquid, so `llms.txt` content can be generated dynamically (for example, listing current product categories or pulling values from [store variables](store-variables)) instead of maintaining a fully static file.\n\n## Remove llms.txt\n\nDelete the **Page** record with the **Path** `llms.txt`, or clear its **Content Body**. Removing the page means requests to `llms.txt` return a 404, and there is no auto-generated fallback.\n\n## llms.txt and stealth mode\n\n`llms.txt` and [Stealth mode](stealth-mode) work in opposite directions: `llms.txt` gives AI tools content to read, while stealth mode tells crawlers to stay away.\n\nEnabling stealth mode does not take your `llms.txt` page offline. Stealth mode only suppresses robots.txt, the sitemap, and merchant feeds. A custom `llms.txt` content page is not on that list, so anyone who requests the URL directly still receives the file. What changes is that compliant crawlers no longer read or index it:\n\n- Stealth mode's robots.txt returns `Disallow: /`, which instructs compliant crawlers not to request any path on the store, including `/llms.txt`.\n- Every response from the store, including `/llms.txt`, carries an `X-Robots-Tag: noindex, nofollow` header, which instructs compliant crawlers not to index the content.\n\nIn short, stealth mode leaves the file readable but tells well-behaved AI crawlers not to fetch or index it. If your goal is to block AI crawlers from your store, use stealth mode. An `llms.txt` file cannot do this; it provides information to AI tools, it does not control their access."}