LLMs.txt

Prev Next

Document360 automatically generates an llms.txt file for your knowledge base site — a Markdown-formatted text file that tells large language models (LLMs) like GPT, Claude, and Gemini what your content is about, helping AI agents accurately retrieve and cite your documentation when answering user questions.


What is llms.txt

llms.txt is an open standard that gives AI language models a structured way to understand what a website contains. It is a plain-text file written in Markdown, placed at the root of a site (for example, https://yoursite.com/llms.txt), and readable by both humans and machines.

The standard exists because LLMs struggle to navigate full websites the way search engines do. A sitemap lists every URL but provides no context. robots.txt tells crawlers what to skip but nothing about what remains. llms.txt fills the gap: it lists a site's key pages with titles, URLs, and short descriptions, giving AI models enough context to decide which pages to retrieve and how to represent the content in generated answers.


Why llms.txt matters for your knowledge base

Users increasingly turn to AI assistants — ChatGPT, Gemini, Copilot, and others — to find answers before visiting a website.

Without llms.txt With llms.txt
AI tools have no structured view of your knowledge base AI tools can read your content index before retrieving pages
Answers may cite outdated or third-party sources instead of your docs Answers are more likely to cite your documentation accurately
Article descriptions serve only search engine snippets Article descriptions contribute to both SEO and AI discoverability
No visibility into what AI crawlers can see You can audit AI crawler coverage from a single file

When to use llms.txt

  • Your users use AI assistants to find answers, and you want those assistants to cite your documentation accurately rather than produce generic responses.
  • You have written high-quality article descriptions and want them to contribute to AI discoverability, not just search engine snippets.
  • You are preparing for a product launch and want to ensure your documentation is discoverable by AI tools from day one.

Before you begin

  • To contribute to llms.txt, an article, page category, or Step by step guide must have a description set in the AI & search descriptions (GEO/SEO) tab. Content without a description is included in llms.txt by title only. To learn how to add a description, see Article SEO.
  • llms.txt is only generated for public knowledge bases, and for public content in mixed knowledge bases.

How llms.txt works

Document360 generates llms.txt automatically from your published content and its GEO/SEO descriptions — you do not create or edit it manually. The file is updated whenever you publish, update, or remove content.

The file has three parts:

  • Header — the project name and a one-line tagline describing the knowledge base
  • Workspace section heading — entries are grouped under the workspace name (for example, ## Document360 2.0)
  • Content entries — each published article, page category, and Step by step guide appears as a linked title followed by its description (if one is set)

Each entry follows this format:

- [Title](https://yourdomain.com/docs/slug.md): Description text.

NOTE
  • The article URLs in llms.txt point to the .md version of each page, not the live HTML URL. This is intentional — the .md format gives AI crawlers clean, structured content without navigation elements or page chrome.
  • Each .md page also includes a Documentation Index block at the top, pointing back to llms.txt, so AI agents navigating individual pages can always discover the full content index.

Content types included in llms.txt

Not every item in your knowledge base contributes an entry to llms.txt.

Content type Included Notes
Article Yes Appears with its title and AI & search description
Index category Yes Appears with its title and AI & search description
Page category Yes Appears with its title and AI & search description
Folder category No Folder categories hold no content of their own
Step by step guide Yes Appears with its title and AI & search description

Step by step guides are structured for AI agents and LLMs to read. Where a reader sees an interactive walkthrough, an AI agent retrieving the .md version of the guide receives the same walkthrough as an ordered sequence of steps, including each step's instruction text and image alt text.

This matters because procedural questions — "how do I set this up?" — are among the most common things readers ask an AI assistant. A guide with a clear title and description is a guide an assistant can retrieve and cite, rather than paraphrasing a text article that covers the same task.


Add an AI and search description

To ensure an article, page category, or Step by step guide appears in llms.txt with a description,

  1. Open the article, page category, or Step by step guide in the knowledge base portal.
  2. Click the More (•••) icon in the header and select SEO. The Article settings panel appears.
  3. Select the AI & search descriptions (GEO/SEO) tab.
  4. Enter a description in the Description field, or click Ask Eddy AI to generate one.
  5. Click Save.

Settings for article views summary, including SEO and engagement insights.

NOTE
  • The content must have at least 200 preprocessed words for Ask Eddy AI to be available. For a Step by step guide, the step instruction text counts towards this total.
  • To add descriptions across multiple articles at once, go to Content tools > AI & search descriptions.

Best practices

  • Write descriptions as summaries, not teasers. AI crawlers use the description to decide whether to retrieve the full article. A description like "Covers how to configure SSO using SAML 2.0 in Document360" is more useful to an LLM than "Learn about SSO in Document360."
  • Prioritize high-traffic and cornerstone articles. Use Content tools > AI & search descriptions to filter articles without descriptions and address the most important ones first.
  • Give every Step by step guide a description. A guide's screenshots carry most of its meaning for a reader, but an AI agent relies on the title, description, and step text. A guide published without a description is the weakest entry in your llms.txt.
  • Keep descriptions between 120 and 160 characters, including spaces. This length works for both search engine snippets and llms.txt entries.
  • Review AI-generated descriptions before saving. Eddy AI generates descriptions based on article content. Verify they accurately represent the article's scope and terminology before saving.
  • Write descriptions that work for both SEO and GEO. The same description appears in search engine results and llms.txt — so a well-written description improves both your search ranking snippets and AI crawler context simultaneously.
  • Check your documentation's AI readiness. Use Document360's Agent Score for Documentation to evaluate how well your knowledge base is optimized for AI agents.

Using llms.txt and the sitemap together for AI agent indexing

If you are building an AI agent or automated pipeline that needs to stay up to date with your knowledge base content, you can use llms.txt and the sitemap together to load content efficiently and keep your index current without crawling the entire site on every run.

  1. Initial load using llms.txt — Fetch llms.txt first. It gives you a structured overview of every published article, page category, and Step by step guide in your knowledge base, including each entry's title, URL, and AI & search description. Use this to build your initial content index and to prioritise which articles to retrieve based on relevance to your use case.

  2. Detect changes using the sitemap — After the initial load, switch to the sitemap for ongoing change detection. Fetch the sitemap on a regular schedule — daily is a reasonable default. Each entry in the sitemap includes a lastmod value showing when the page was last modified. Compare lastmod values against your previous fetch to identify new or updated URLs.

  3. Fetch only new or updated articles — Retrieve only the articles that are new or have changed since your last run. Each article is available as a clean Markdown page by appending .md to the article URL (for example, https://yourdomain.com/docs/article-slug.md). The .md version contains only the article content — no navigation, headers, or page chrome — making it straightforward to process for indexing.

  4. Update your index — Re-index only the changed articles. Remove entries from your index for any URLs that are no longer present in the sitemap, as this indicates the article has been removed or made private.

  5. Schedule the process — Automate steps 2 to 4 using a scheduler or any existing scheduling solution your team uses. The sitemap and llms.txt are both updated automatically whenever you publish, update, or remove content in Document360, so your scheduled process will always be working from current data.

NOTE
  • Keep request rates reasonable and avoid running full-site crawls on every scheduled run — using the sitemap to detect changes is specifically designed to prevent this.
  • Articles excluded from external search engine results in GEO/SEO settings will not appear in the sitemap or llms.txt, so your index will automatically reflect those visibility settings.

FAQ

Does excluding an article from external search engines also remove it from llms.txt?

Yes. Enabling Exclude from external search engine results in GEO/SEO removes the article from both sitemap.xml and llms.txt. Both files honour the same external indexing rules.

What happens if two articles have the same meta description?

Both entries appear in llms.txt, but duplicate descriptions reduce the quality of AI retrieval. AI crawlers may conflate the two articles or deprioritize them. Use unique descriptions for every article.

Does llms.txt affect Eddy AI search inside my knowledge base?

No. llms.txt is for external AI crawlers only. Eddy AI's assistive search within your knowledge base uses a separate indexing mechanism and is not affected by llms.txt.

How long does it take for a newly published article to appear in llms.txt?

There may be a short delay after publishing. If an article is missing, wait a few minutes and refresh the file.

Are Step by step guides included in llms.txt?

Yes. Published Step by step guides appear under the same workspace heading as articles and page categories, with a link to the .md version of the guide. Add an AI & search description to the guide so its entry carries a description rather than a title only.

Do the individual steps inside a guide appear in llms.txt?

No. llms.txt lists one entry per guide, not one entry per step. The step sequence appears in the guide's .md page, which the llms.txt entry links to.

Why do article .md URLs return a 404 on my knowledge base?

Article Markdown (.md) URLs are only available on Knowledge Base 2.0. If your project is still running on Knowledge Base 1.0, requesting an article's .md URL will return a 404 response, even though the HTML version of the same article loads correctly.

To confirm which version your project is running, contact Document360 support or check with your account team. Once your project has been migrated to Knowledge Base 2.0, the .md versions of your public articles will be accessible using the standard format:

https://yourdomain.com/docs/article-slug.md

If your project is on Knowledge Base 2.0 and you are using subfolder hosting (for example, example.com/help/) but still seeing 404 errors on .md URLs, the cause is unrelated to the Knowledge Base version. See the Nginx server configuration article for the proxy_set_header Cookie setting required to pass .md requests correctly through the proxy.

How is llms.txt related to MCP for public Knowledge base site?

llms.txt is a static index that AI tools can read. MCP for public Knowledge base site lets AI tools search your documentation and read whole pages on demand, without signing in. Its get_site_index tool returns your llms.txt file. Articles excluded from external search engine results aren't available through MCP for public Knowledge base site either.

What happens when an AI assistant returns a .md article URL to a human user?

Document360 intentionally uses .md URLs in llms.txt so that AI crawlers and language models receive clean, structured Markdown content without knowledge base navigation or page chrome. When an AI assistant reads your llms.txt file, it stores these .md URLs and may include them in citations or responses to users.

  <p>If a human user clicks a .md URL from an AI response, they will see the article rendered as plain Markdown text in their browser, without the knowledge base site navigation, header, or branding.</p>

  <p>There is no setting to disable .md article access or to control how AI assistants present URLs to human users. If you want specific .md URLs to redirect to their HTML equivalents, you can create individual <strong>Ends with</strong> redirect rules in <strong>Settings &gt; Knowledge base site &gt; Article redirect rules</strong>. Enter the article's .md slug as the source path (for example, <code>/article-slug.md</code>) and the standard slug as the destination. <a href="https://docs.document360.com/docs/article-redirect-rules">Article redirect rule</a> article for the full steps.</p>

  <p><strong>Limitation:</strong> Redirect rules do not support patterns or wildcards, so a separate rule is required for each article you want to redirect.</p>
</div>