On this pageWhat six AI engines name and cite when asked how to generate llms.txt

How to Generate an LLMs.txt File: A Step-by-Step, Evidence-Led Workflow

GauravXtrusio10 min read

Short answer

Generate llms.txt from a short list of approved public pages, save it as UTF-8 Markdown, and publish it where your site can serve the file directly. Start with the site name, add a brief description, then group useful links. Check the actual response and every destination before calling the job complete.

Xtrusio technical guide showing an llms.txt file generated from canonical website pages

Disclosure: Xtrusio is our product. It appears in the study, the endpoint check, step 5 and the FAQ.

  1. 1Choose the pages and the scope: one current, canonical page for each question a reader should be able to answer.
  2. 2Write a file you can copy and check: a site name, a short summary and grouped, described links, saved as UTF-8 Markdown.
  3. 3Choose a generation method your team can maintain: by hand, or from approved navigation.
  4. 4Publish the file, then test what the URL returns and that every destination works.
  5. 5Separate file delivery from AI visibility: a served file does not show that an AI answer used it.
  6. 6Give maintenance an owner and a review date.

What six AI engines name and cite when asked how to generate llms.txt

Xtrusio asked six AI engines (ChatGPT, Claude, Gemini, Perplexity, Google AI Overviews, Google AI Mode) "How to generate an LLMs.txt file?" and "What is an LLMs.txt file and how does it relate to consent?". That is 12 answers per run, collected on 26 August and again on 27 November 2026.

Answers (of 12) that cite each site or name each tool, two llms.txt questions (rows ordered by the 27 November count)
Site cited, or tool namedAnswers, 26 Aug 2026Answers, 27 Nov 2026
llmstxt.org
7 of 12
4 of 12
Mintlify named
3 of 12
4 of 12
gitbook.com
8 of 12
3 of 12
firecrawl.dev
4 of 12
3 of 12
mintlify.com
6 of 12
3 of 12
xtrusio.com
0 of 12
3 of 12
Firecrawl named
4 of 12
3 of 12
VitePress named
0 of 12
3 of 12
Docusaurus named
1 of 12
3 of 12
llmstxtgenerate.com
4 of 12
2 of 12
GitBook named
2 of 12
2 of 12

The generation methods engines name most are documentation platforms that build the file for you (Mintlify, GitBook, VitePress, Docusaurus) and crawlers (Firecrawl). That matches the choice in step 3: generate from navigation you already maintain, or write it by hand.

How we ran the study

  1. 1Picked the two llms.txt questions from our 114-question set.
  2. 2Sent each to 6 engines: ChatGPT, Claude, Gemini, Perplexity, Google AI Overviews, Google AI Mode. One answer each: 12 answers per run.
  3. 3Saved every full answer with its cited pages.
  4. 4Extracted the tools named and the sites cited in each answer.
  5. 5Counted the answers per row, on 26 August and again on 27 November 2026.

Limits. One answer per question per engine per run, so counts are small and a single run can differ from the next. Answers come from the engines' APIs, and the two Google engines are scraped for US, English, desktop. A citation is a source an engine used, not a ranking.

You do not need an AI writing subscription to create the file. An editor can write a small one manually; a changing documentation site can generate it from approved navigation. The work is choosing accurate destinations and keeping them current. A generator cannot make an inaccessible page readable or guarantee a citation.

1. Choose the pages and the scope

Start with one current public page for each question you want the file to answer. Write the questions first. Then record each page’s canonical URL, the preferred address you want readers to use, and what the page actually answers.

Use /llms.txt for the whole site or /docs/llms.txt for the documentation section. Jeremy Howard’s llms.txt proposal (v2.1, read 27 November 2026) gives these 2 placement patterns and applies the most specific file to each path. The /llms.txt file, v2.1

Reader needsSelectExclude or fix
Understand the productCurrent product overviewAn old campaign page with retired claims
Connect an integrationCurrent setup instructionsA guessed Markdown URL that has never been tested
Check a limitationPublic documentation naming the limitA marketing summary that omits it
Understand data handlingCurrent public security or privacy pageA customer-only audit report

This example gives you a four-row source record to review before writing. A homepage alone rarely answers all four questions. Open each candidate while signed out. Exclude account pages, internal environments, tracking variants, expired campaigns and confidential links.

Common Crawl’s 31 August 2026 analysis found that 22.56% of the files in its corpus contained no links. Its generator comparison found a median of 21 links in files identified as Yoast output and 3 in files identified as Wix output. Pick the pages that answer your readers’ questions before accepting a generator’s list. Common Crawl’s July 2026 crawl analysis

Check: Open each candidate URL in a signed-out browser and record the question it answers. Pass if each selected URL opens publicly at its preferred address and answers its assigned question. Red flag: A private path, retired claim or homepage used in place of a relevant source.

2. Write a file you can copy and check

  1. Pick the approved public pages.
  2. Put the site name on the first line with #.
  3. Add a short summary with >.
  4. Group links under ## headings and give each link a short description.
  5. Put skippable links under ## Optional.
  6. Save the plain-text file as UTF-8 Markdown named llms.txt and deploy it.
  7. Fetch the public file and open every listed URL.

Copy this template into a plain-text editor. Replace the site name, summary and example URLs with approved content. Keep the hashes, angle bracket and Markdown link brackets as written.

# Example Co

> Product documentation.

## Pages

- [Product](https://example.com/product): What the product does
- [Setup](https://example.com/setup): How to set up the product

## Optional

- [Changelog](https://example.com/changelog): Release notes
PartWhat to enterCheck
H1Site or project nameOne at the top
SummaryA brief descriptionMatches current pages
H2A useful link groupUse clear topics
LinksCanonical public URLsOpen every destination

The v2.1 proposal (read 27 November 2026) requires just 1 element, the H1 with the site or project name. Common Crawl’s 31 August 2026 analysis found that 49.90% had a title, blockquote and grouped link bullets. Only 32.94% included explanatory link notes. Give each link a description that tells the reader what the page answers. The /llms.txt file, v2.1 and Common Crawl’s July 2026 crawl analysis

Use a clean Markdown destination when the site publishes one. Open it before listing it. If adding .md fails, use the real public page. If you maintain both versions, compare their material facts after updates.

For discovery, a developer can advertise the applicable index with rel="describedby" and the page’s Markdown version with rel="alternate" type="text/markdown". Both work in HTML link elements or HTTP response headers. Server records can show whether a client followed the advertised URL. The /llms.txt file, v2.1

Check: Open the saved llms.txt in a plain-text editor and follow every Markdown link. Pass if the file begins with the site H1 and each link opens the public page its description promises. Red flag: A missing H1, literal template URL or guessed Markdown path.

3. Choose a generation method your team can maintain

Which llms.txt generator or manual method fits your site?
If you haveUseWhat to review
A small, stable siteWrite the file by hand in a plain-text editor and maintain it in the site’s public assets. A plugin or AI subscription is optional.The content owner checks links after relevant changes.
A public site you want to crawl onceFirecrawl’s free web generator takes a site URL and produces llms.txt and llms-full.txt. The API key is optional.Remove duplicate, irrelevant or retired pages. Download the short index for review.
Public docs you want to turn into a starter fileMintlify’s free standalone generator takes a docs URL and requires no signup. It returns a Markdown starter with a title, summary, sections and described links.Edit the groups and descriptions, then deploy the file yourself.
An application with frequently updated docsGenerate the file in the build from reviewed navigation or an approved content manifest.The developer checks the output. The editor checks descriptions against the pages.
Hosted documentationCheck the platform’s existing endpoint before adding a second file. Mintlify generates an index when docs are published and allows a custom file.The documentation owner checks scope, versions and anonymous access.
A CMS-driven websiteExport selected approved public entries or use the CMS’s existing generator.The CMS owner excludes private, duplicate and retired entries.

For a one-off crawl of public pages, start with Firecrawl. Its 22 May 2026 guide lists 2 file outputs. For a starter based on documentation structure, use Mintlify. Its generator guide, updated 24 September 2026, describes 1 docs URL as input and no signup. One run of either free web generator costs $0 in generator fees. Firecrawl’s generator guide and Mintlify’s free generator guide

Fully authenticated Mintlify sites require sign-in for both files. Partially authenticated sites expose files that list only public pages. The companion llms-full.txt contains expanded page content. Publish it when your consuming workflow needs that detail and your team can keep it current. Mintlify’s llms.txt documentation

Common Crawl’s 31 August 2026 analysis found that 68.27% of files in its corpus followed a template. Treat generated text as a starting point. If you use a language model, give it the approved URLs and descriptions. Ask it to format those entries and flag gaps. Check for invented paths and descriptions that turn limits into promises. Common Crawl’s July 2026 crawl analysis

Check: Generate or hand-write the file and compare its links and descriptions with the approved source list. Pass if each entry matches an approved public page and someone owns the next update. Red flag: A plugin creates a competing endpoint or adds pages outside the intended scope.

4. Publish the file, then test what the URL returns

Deploy the raw file, then fetch the public URL while signed out. Check the HTTP status, content type and body together. A successful response can still contain the homepage.

Where to place llms.txt before deployment
Site setupFile or route
Next.jspublic/llms.txt in the project.
Hugo or Docusaurusstatic/llms.txt in the project. For docs mounted under a path, test the URL with that prefix.
VitePresspublic/llms.txt under the source directory, such as docs/public/llms.txt.
Static host or custom serverDeploy the file to the public web root, or map the exact path to a plain-text response. Use the site owner’s usual deployment process.
Hosted docsOpen the existing platform endpoint. For docs mounted at /docs/, test /docs/llms.txt.

Framework references. Next.js public folder, Hugo directory structure, Docusaurus static assets and VitePress asset handling.

Replace example.com with your domain. On Windows, curl.exe selects the executable. On macOS or Linux, use curl. The first command fetches headers and the body. The second is a quick header check. If the route redirects, add -L to the first command and inspect the final response.

curl.exe -i https://example.com/llms.txt
curl.exe -sI https://example.com/llms.txt
The public Xtrusio llms.txt endpoint returned HTTP 200 and text/markdown on 30 September 2026. The response shows the site heading, summary and grouped links. Xtrusio’s public llms.txt

A response can succeed while the file is wrong

Common Crawl’s 31 August 2026 analysis found that 519,484 of 1,287,207 HTTP 200 responses for /llms.txt and /llms-full.txt returned HTML, or 40.36%. For /llms.txt alone, 52.5% of HTTP 200 responses carried a text body. The body check catches a homepage or branded error page served by a default route. Common Crawl’s July 2026 crawl analysis

How to interpret the response and fix failures
What you seeWhat to do
HTTP 200, raw Markdown and the expected site H1Open every listed destination.
HTTP 200 with a homepage or other HTMLCorrect the file route so it takes precedence over the fallback, then retest.
HTTP 404 for a guessed .md linkUse a working public destination or publish the missing Markdown version.
A sign-in prompt or access denialRemove the destination from a public guide or confirm that it belongs in an authenticated guide.
A live page with an outdated descriptionUpdate the description to match the page.
A redirected or duplicate URLReplace it with the current canonical destination.

For each listed link, check the final URL, status, readable body, public access and description. In the link-check example, 19 working links ÷ 20 listed links × 100 = 95%. Fix or remove the broken link and rerun the check. Save the expected file, returned response, date and person responsible so you can compare them after the next deployment.

Check: Run curl.exe -i https://example.com/llms.txt with your domain and open every listed destination while signed out. Pass if the final response is HTTP 200 with text/plain or text/markdown and the expected Markdown H1, and each destination loads and matches its description. Red flag: HTTP 200 with homepage HTML, a branded error page, a sign-in screen or a robots.txt body.

5. Separate file delivery from AI visibility

There are three different questions after deployment: Can the file be fetched? Did a relevant client request it? Did an answer cite or accurately describe your pages? Evidence for one does not answer the others.

Verified server request records can support a claim that a client requested a path. Whether an answer then cited your page is a separate check. An answer can cite a page it found through another route. Do not attribute that citation to llms.txt simply because it happened after publication.

Google Search ignores llms.txt. Its AI optimization guide, read 27 November 2026, says the file neither helps nor harms visibility in Google Search. Other services may still read it.

To check whether answers change, save the buyer question, engine, date, full answer and cited URLs. Xtrusio can keep these records together. The saved answer below includes source URLs; it says nothing about whether an agent fetched llms.txt.

Saved ChatGPT citation list showing two Xtrusio pitch-deck URL variants; private client paths blurred

Use the saved answer to identify which page and explanation the buyer encountered. On a later check, use the same questions and settings, and note failures or other page changes. A changed answer alone cannot tell you why it changed. The CMO metrics guide explains why comparable denominators matter.

6. Give maintenance an owner

Recheck the index when a listed product, documentation version, policy or URL changes. Generate from approved records where practical, check the diff, and test the resulting public response. A file that was correct at launch can become misleading without ever returning an error.

The job is done when the file is readable, its selected destinations work, its descriptions are current and someone owns updates. Judge later visibility separately. If you need help connecting a technical change to verifiable answer evidence, ask Xtrusio about a free evaluation using your own buyer questions. Publishing llms.txt is not a promise of a recommendation.

Questions people ask

What is the minimum valid llms.txt file?

Under the current v2 proposal, the only required element is an H1 containing the site or project name. A useful file also adds a short summary and grouped links with descriptions.

Where should llms.txt be published?

Publish it at the root as /llms.txt for the whole origin, or at a path for one section such as /docs/llms.txt for content beneath that path. The most specific applicable file describes that scope.

Does llms.txt replace robots.txt or sitemap.xml?

Robots.txt communicates crawler access preferences. A sitemap lists discoverable URLs for search systems. An llms.txt file is a curated Markdown guide to selected resources.

How should a changing site maintain llms.txt?

Generate it from canonical navigation, documentation metadata or a controlled content manifest during the build. Fail the build when listed URLs are broken or excluded.

Does llms.txt help AI visibility?

The Google Search AI optimization guide, read 27 November 2026, says llms.txt has no effect on visibility there. For other services, check the answers and their citations directly.

How can I check whether AI answers changed after I publish llms.txt?

Save the buyer question, engine, date, full answer and cited URLs. Ask again later using the same settings. Xtrusio keeps these records together for enterprise software (SaaS) companies. First month free. Plans from $1,500 a month, then custom.

Method

Study: see "How we ran the study" above. Google statement and specification facts were read on 27 November 2026 (Google guide and llmstxt.org). The example page selection on this page is a worked example of the method, not a scan of a real company. Xtrusio facts come from the public docs linked in Sources.

Frequently asked questions

What is the minimum valid llms.txt file?

Under the current v2 proposal, the only required element is an H1 containing the site or project name. A useful file also adds a short summary and grouped links with descriptions.

Where should llms.txt be published?

Publish it at the root as /llms.txt for the whole origin, or at a path for one section such as /docs/llms.txt for content beneath that path. The most specific applicable file describes that scope.

Does llms.txt replace robots.txt or sitemap.xml?

No. Robots.txt communicates crawler access preferences, a sitemap lists discoverable URLs for search systems, and llms.txt is a curated Markdown guide to selected resources.

Does adding llms.txt improve AI rankings?

Not in Google: Google Search ignores llms.txt. Other AI services may read it, but none publishes a ranking benefit.

How should a changing site maintain llms.txt?

Generate it from canonical navigation, documentation metadata or a controlled content manifest during the build, then fail the build when listed URLs are broken or excluded.

Sources

Own findings

On 26 August 2026, Xtrusio sent two llms.txt questions to six AI engines and counted cited domains across 12 saved answers, finding that gitbook.com appeared in 8.

On 27 November 2026, Xtrusio repeated the same two questions across the same six engines and counted cited domains across 12 saved answers, finding that xtrusio.com appeared in 3.

  1. Xtrusio’s AI answer collection methodology covers six platforms as standard (Grok on request), provider APIs, DataForSEO and one answer per neutral question per engine. Read 27 November 2026.
  2. Xtrusio’s guide to tracking published URL citations. Read 27 November 2026.
  3. Google Search Central’s guide to optimizing for generative AI features. Read 27 November 2026.
  4. Jeremy Howard’s llms.txt proposal, v2.1, read 27 November 2026.
  5. Common Crawl’s content analysis of llms.txt files. Published 31 August 2026.
  6. Firecrawl’s guide to its llms.txt generator. Updated 22 May 2026.
  7. Mintlify’s free generator guide. Updated 24 September 2026.
  8. Mintlify’s llms.txt documentation covers hosted files, authentication and overrides.

Topics

  • How to Generate an LLMs.txt File

Gaurav

AI visibility research at Xtrusio, Xtrusio

Xtrusio is the Perception Engine for B2B brands.

Free check

See how AI engines answer about you

Get your free AI visibility check

Talk to us about the managed plan (free trial)