# Generate an llms.txt file for your site

Source: https://support.storeconnect.com/articles/llms-txt-for-stores · Last modified 21 August 2026

`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/).

:::note
Serving `llms.txt` requires StoreConnect website v21 or later.
:::

Unlike `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).

## How llms.txt works

`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).

## llms.txt format and content

You can use any number of AI tools to generate a basic llms.txt for your site. The output will look something like this:

```markdown

# [Your Store Name]

> [Your Store Name] is a premium online retailer specializing in [Niche], offering high-quality [Product Category] with fast, worldwide shipping and easy returns.

## Core Categories
- [Shop All Products](https://yourstore.com)
- [Best Sellers](https://yourstore.com)
- [New Arrivals](https://yourstore.com)

## Customer Care
- [Shipping Information](https://yourstore.com)
- [Returns & Refunds](https://yourstore.com)
- [Contact Support](https://yourstore.com)

## Featured Products
- [Premium Leather Jacket](https://yourstore.com) - $299.00
- [Handcrafted Ceramic Mug](https://yourstore.com) - $24.00
```

## Create your llms.txt file

1.  Go to the **Pages** list for the store and click **New**.
2.  Set the **Path** field to `llms.txt` (no leading `/`).
3.  Replace the default `{{ content_page | render_content_blocks }}` snippet in the **Content Body** field with your llms.txt content.
4.  Save the record.
5.  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.

To update the llms.txt later, edit the **Content Body** on this record.

:::tip
An 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).
:::

## Writing dynamic content

The **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.

## Remove llms.txt

Delete 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.

## llms.txt and stealth mode

`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.

Enabling 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:

- Stealth mode's robots.txt returns `Disallow: /`, which instructs compliant crawlers not to request any path on the store, including `/llms.txt`.
- 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.

In 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.

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/llms-txt-for-stores