NumberSleven · Transactional

llms.txt — What It Is, Why It Matters, and How to Implement It

March 25, 2026 5 min read

What llms.txt is

llms.txt is a plain-text file served at the root of your domain (yourdomain.com/llms.txt) that provides AI language models with a structured, human-readable summary of your website. Think of it as robots.txt for AI — a file that tells AI crawlers and language models what your site contains, how it’s structured, and what each section is for.

The format is intentionally simple: sections separated by headings, plain prose descriptions, and URLs. No special syntax, no schema markup. The goal is maximum parsability by AI systems that may be consuming your site as part of a larger context window.

Why it matters more for service businesses

Service businesses — consultancies, professional services, agencies — have complex offerings that AI systems struggle to categorise correctly from page content alone. A website with four service packages, multiple delivery variants, and different pricing structures for different client types is hard for an AI to summarise accurately.

An llms.txt file cuts through this by providing a direct, authoritative summary in a format designed for AI consumption. When Perplexity crawls your site and constructs its understanding of what you do, an llms.txt file gives it a pre-structured summary to work from rather than requiring it to infer your offering from page content alone.

What to include

The most effective llms.txt files for service businesses include: a concise business description (2–3 sentences), a structured list of all services with prices and URLs, a list of key pages with their purpose, a list of expertise areas and keywords, entity information (legal name, location, credentials), and API/REST endpoints if you expose any.

Keep it factual and structured. This is not marketing copy — it’s a reference document for AI systems. Clarity and completeness matter more than persuasiveness.

Implementation in WordPress

The correct implementation serves the file via a server-side route rather than as a static file in the webroot. This is because WordPress handles all requests through index.php, and a static file in the webroot may not be served correctly depending on your hosting configuration.

The approach: register a custom rewrite rule that matches ^llms\.txt$ and routes it to a WordPress template redirect handler that reads the file from your theme directory and outputs it with Content-Type: text/plain. This ensures the file is always served correctly regardless of hosting configuration, and lets you update the content from your theme files without server access.

Keeping it current

The main risk with llms.txt is staleness — a file that describes services, prices, or contact details that have changed is worse than no file, because it creates confident misinformation in AI responses. Build a process to update it whenever a service price changes, a new service is added, or contact details change.

Ready to start?

Book a Discovery Sprint

45 minutes. Fixed fee. Written summary within 48 hours. Credited toward any package if you proceed.