---
title: Creating and customizing an llms.txt file
summary: null
url: >-
  https://www.fastly.com/documentation/guides/full-site-delivery/responses/creating-and-customizing-an-llms-file
---

The llms.txt file gives large language models (LLMs) and AI agents a curated, Markdown-formatted overview of your website's most 

## Creating an llms.txt file

To create and configure your llms.txt file, follow the steps below:

1.   Log in to the [Fastly control panel](https://manage.fastly.com).

2.   From the [**Home**](https://manage.fastly.com/home) page, select the appropriate service. You can use the search box to search by ID, name, or domain.

3.   Click **Edit configuration** and then select the option to clone the active version.

4.   Click **Content**.

5. Click the **llms.txt** switch to enable the llms.txt response.
6. In the **TXT Response** field, customize the response for the llms.txt file. The editor starts with a placeholder template that you should replace with a description of your site and links to the pages you want LLMs to know about.
7. Click **Save** to save the response.
8.   From the **Activate** menu, select **Activate on Production** to deploy your configuration changes.

## Manually creating and customizing an llms.txt file

If you need to customize the llms.txt response, you can follow the steps below to manually create the synthetic response and condition:

1.   Log in to the [Fastly control panel](https://manage.fastly.com).

2.   From the [**Home**](https://manage.fastly.com/home) page, select the appropriate service. You can use the search box to search by ID, name, or domain.

3.   Click **Edit configuration** and then select the option to clone the active version.

4.   Click **Content**.

5. Click **Set up advanced response**.
6. Fill out the **Create a synthetic response** fields as follows:
   - In the **Name** field, enter an appropriate name. For example `llms.txt`.
   - Leave the **Status** menu set at its default `200 OK`.
   - In the **MIME Type** field, enter `text/plain`.
   - In the **Response** field, enter the Markdown content of your llms.txt file. For example, a top-level heading with your site name, a short description of the site, and a list of links to your most important pages.
7. Click **Create**.
8. Click the **Attach a condition** link to the right of the newly created response.
9. Fill out the **Create a condition** fields as follows:
   - From the **Type** menu, select the desired condition (for example, `Request`).
   - In the **Name** field, enter a meaningful name for your condition (e.g., `LLMs`).
   - In the **Apply if** field, enter the logical expression to execute in VCL to determine if the condition resolves as true or false. In this case, the logical expression would be the location of your llms.txt file (e.g., `req.url.path == "/llms.txt"`).
10. Click **Save**.
11.   From the **Activate** menu, select **Activate on Production** to deploy your configuration changes.

> **HINT:** For an in-depth explanation of creating custom responses, check out our [Responses Tutorial](https://www.fastly.com/documentation/guides/full-site-delivery/responses/responses-tutorial).

## Related content

- [Creating and customizing a robots.txt file](https://www.fastly.com/documentation/guides/full-site-delivery/responses/creating-and-customizing-a-robots-file)
- [Response object API documentation](https://www.fastly.com/documentation/reference/api/vcl-services/response-object/)
