GEO & AI Search OptimizationHeuristic Structure Score 90/100Updated: 12/4/2026

How to Write a High-Signal /llms.txt File (2026 Templates)

Direct Answer Summary

A high-signal /llms.txt is a concise, link-dense index of docs, pricing, and specs — not a sitemap dump. Serve it as text/plain or text/markdown with HTTP 200, keep it current, and split deep content into /llms-full.txt.

Check in 30s: Will ChatGPT, Perplexity & Claude index your site? (Free)
Checks robots.txt, OAI-SearchBot, /llms.txt & JSON-LD
Or compare live:
Direct answer: A high-signal /llms.txt is a concise, link-dense index of your docs, pricing, and specs — not a sitemap dump. Serve it as text/plain or text/markdown with HTTP 200, keep URLs current, and move deep content into /llms-full.txt. In the 2026-12-01 WorkAgent GEO 200-site benchmark, Data & AI Infrastructure leaders reached 93% /llms.txt adoption by following exactly this pattern.

What /llms.txt is (and is not)

/llms.txt is a plain-text Markdown file at your domain root that tells AI crawlers and retrieval systems where your authoritative content lives. It is not a sitemap replacement, not a marketing landing page, and not a place to list every URL you own. Think of it as a curated table of contents: short descriptions, stable links, and a clear separation between core docs and everything else.

Annotated B2B SaaS template

```markdown

Acme Data Platform

Acme is a managed analytics warehouse for B2B SaaS teams. Docs, pricing, and API specs below.

Docs

Pricing & Plans

Specs & Trust

  • Security: SOC 2, encryption, data residency
  • Status: uptime and incident history

Optional

```

Keep each line to one URL plus a short description. Aim for 15–40 links total. If you need to expose full page text for retrieval, publish /llms-full.txt with expanded content and link to it from the main file.

Anti-patterns that break retrieval

Anti-patternWhy it hurtsFix
HTML 404 soft responsesCrawlers receive a 200 HTML page instead of a 404, so the file appears valid but contains no usable linksReturn a real HTTP 404 for missing files; never serve an HTML error page at /llms.txt
Bloated copy (500+ marketing URLs)Dilutes signal; retrieval systems cannot distinguish docs from campaign pagesCap at ~40 links; move the rest to /llms-full.txt or omit
Stale URLsDead links waste crawl budget and erode trustAudit quarterly; remove or redirect broken entries
Wrong Content-TypeSome clients reject text/html or application/octet-streamServe text/plain; charset=utf-8 (or text/markdown)

Exact HTTP checks

Run these before shipping:

```bash

Must return 200 and text/plain or text/markdown

curl -sI https://acme.com/llms.txt | grep -iE 'HTTP/|content-type'

Must return 404 for a missing path, not 200 HTML

curl -sI https://acme.com/llms.txt.bak | head -1

```

Expected: HTTP/2 200 and content-type: text/plain; charset=utf-8. A 200 with content-type: text/html is a soft-404 anti-pattern — fix it.

Benchmark context and scope

In the 2026-12-01 200-site index, Grafana Labs, Neon, and PingCAP (TiDB) each scored 100/100 (Grade S) with /llms.txt, JSON-LD, SSR, and both GPTBot and OAI-SearchBot allowed. ClickHouse scored 94/100 and Databricks 72/100 (no JSON-LD). These are point-in-time measurements, not guarantees of AI ranking. /llms.txt is a discovery aid; retrieval quality still depends on content accuracy, structure, and freshness.

Scope boundary: This guide covers the file format and HTTP serving. It does not cover crawler policy (see robots.txt) or structured data (see JSON-LD).

For a one-time check of your own /llms.txt headers and link health, run the free audit: https://geo.workagentpro.com/audit?lang=en&utm_source=smart_promote&utm_campaign=llms-txt-specification-examples-template-2026

Frequently Asked Questions (FAQPage Schema)

Q1: What should a B2B SaaS company put in /llms.txt vs /llms-full.txt?
/llms.txt should be a concise index (15–40 links) of docs, pricing, and specs with one-line descriptions. /llms-full.txt holds expanded page content for retrieval; link to it from the main file.
Q2: Does dumping 500 marketing URLs into /llms.txt hurt AI retrieval quality?
Yes. Bloated link lists dilute signal and make it harder for retrieval systems to identify authoritative docs. Cap the main file at ~40 links and move the rest to /llms-full.txt or omit.
Q3: What Content-Type should /llms.txt return?
Serve it as text/plain; charset=utf-8 (or text/markdown) with HTTP 200. A 200 response with text/html is a soft-404 anti-pattern and should be fixed.
Q4: How do I verify my /llms.txt is served correctly?
Use curl -sI https://yourdomain.com/llms.txt and check for HTTP 200 plus content-type text/plain or text/markdown. Also confirm missing paths return a real 404, not an HTML page.
Found this guide useful? Share it with your team on X or Telegram:
WorkAgent GEO · Open-Source Technical Audit & Zero-Token Draft Workspace

Check your website’s AI readiness free in 30 seconds

Run a free, no-login check of robots.txt rules, /llms.txt, HTML readability, and JSON-LD — then sign up free (+6 credits) to generate industry-matched GEO articles.

Check in 30s: Will ChatGPT, Perplexity & Claude index your site? (Free)
Checks robots.txt, OAI-SearchBot, /llms.txt & JSON-LD
Or compare live: