How to Write a High-Signal /llms.txt File (2026 Templates)
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.
Direct answer: A high-signal/llms.txtis a concise, link-dense index of your docs, pricing, and specs — not a sitemap dump. Serve it astext/plainortext/markdownwith 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.txtadoption 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
- Quickstart: 10-minute setup
- API Reference: REST endpoints, auth, rate limits
- SQL Dialect: supported functions and types
Pricing & Plans
- Pricing: tiers, limits, overage rules
- Enterprise: SSO, SLA, dedicated support
Specs & Trust
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-pattern | Why it hurts | Fix |
|---|---|---|
| HTML 404 soft responses | Crawlers receive a 200 HTML page instead of a 404, so the file appears valid but contains no usable links | Return 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 pages | Cap at ~40 links; move the rest to /llms-full.txt or omit |
| Stale URLs | Dead links waste crawl budget and erode trust | Audit quarterly; remove or redirect broken entries |
| Wrong Content-Type | Some clients reject text/html or application/octet-stream | Serve 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.
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.