llms.txt with Statamic: Automatically Serving Your Content to AI Assistants

Published on 5 min read
Short answer

An llms.txt file is a concise Markdown index at /llms.txt that tells AI assistants what your site offers and links to your key pages. It is an open proposal rather than a formal standard and is not required for Google Search. With Statamic, you can generate it automatically from your pages and articles so it stays up to date with zero extra maintenance.

What llms.txt is

An llms.txt file is a plain Markdown document hosted at /llms.txt at the root of a website. It gives AI assistants and automated agents a concise entry point: who runs the site, what it covers, and which URLs contain the most useful information.

Proposed by Jeremy Howard on llmstxt.org on September 3, 2024 (with version 2 dated August 10, 2026), it addresses a practical problem: HTML pages are designed for human browsers, packed with navigation, layout markup, and scripts. A compact Markdown overview with curated descriptions is far cleaner for language models to ingest.

What llms.txt can — and cannot — do

Before investing time, keep three realistic facts in view:

  • Not an official standard. Unlike robots.txt (standardized as RFC 9309 by the IETF in 2022), llms.txt is an open community proposal evolving on llmstxt.org and GitHub.

  • Not an access-control mechanism. Crawler permissions still live in robots.txt. llms.txt is intended to be fetched on demand when an assistant answers a user’s question.

  • Not required for Google Search. Google explicitly states that appearing in AI Overviews or AI Mode requires no special AI text files — standard SEO fundamentals remain decisive.

llms.txt neither replaces strong copy nor clean technical foundations; it is simply a helpful directory for assistants looking for a structured starting point. For broader AI search fundamentals, see our article Making Your Website Ready for AI Search.

How an llms.txt file is structured

The proposal specifies a predictable Markdown outline so even conventional parsers can read it cleanly:

  1. An H1 heading with the website or project name (the only required element).

  2. A blockquote with a concise summary.

  3. Optional paragraphs or lists without headings (such as provider and contact details).

  4. H2 sections containing bulleted Markdown links: [Name](URL), optionally followed by a colon and brief description.

By convention, an “Optional” section marks secondary links an agent may skip when context space is tight. The specification also suggests offering clean Markdown copies of key pages by appending .md to their URL.

Why Statamic generates llms.txt effortlessly

A hand-edited llms.txt goes stale quickly as new articles publish or URLs change. In Statamic, you generate it directly from your live collections so it stays current automatically.

A dedicated route and template

Statamic’s Route::statamic() renders a plain-text Antlers template with full access to globals and collections while disabling the HTML layout:

// routes/web.php
Route::statamic('llms.txt', 'llms', [
    'layout' => null,
    'content_type' => 'text/plain; charset=utf-8',
]);

Pulling entries from collections

Inside the template, the collection tag outputs every published article alongside its canonical URL and concise summary field:

## Articles
{{ collection:artikel sort="date:desc" }}
- [{{ title }}]({{ permalink }}): {{ summary }}
{{ /collection:artikel }}

Because collection tags only return published entries by default, drafts stay hidden and newly published articles appear automatically using the exact summaries you already wrote for human readers.

A live example

Our own site works this exact way: stella-projects.de/en/llms.txt is generated dynamically by Statamic from our global settings, published pages, and articles.

Do not forget static caching

If you run Static Caching, add /llms.txt (and localized equivalents like /en/llms.txt) to your collection invalidation rules so publishing an entry flushes the cached file immediately.

Statamic, Laravel, or TYPO3: What fits when?

  • Statamic is our default recommendation for company sites, magazines, and multilingual knowledge bases — generating llms.txt natively without extra plugins.

  • Laravel joins whenever you need authenticated Markdown docs, live ERP/product feeds, or dedicated agent endpoints inside the same codebase.

  • TYPO3 is reserved for existing TYPO3 ecosystems, very large multi-site portals, or organizational mandates.

Key details to keep in mind

  • Public content only. Anyone can fetch the file — never expose private or internal information.

  • Curate rather than dump everything. Keep the file concise enough for an LLM context window; your XML sitemap handles exhaustive URL lists.

  • Keep claims accurate. Assistants may quote descriptions verbatim, so avoid outputting stale meta descriptions.

  • Stay realistic. An llms.txt file never guarantees AI citations — it simply makes key pages easy to discover when an assistant inspects your domain.

Checklist for your llms.txt

  1. Write a crisp site name and two-to-three-sentence summary.

  2. Select the highest-signal pages: services, contact, core guides, and documentation.

  3. Pull factual descriptions from structured CMS fields.

  4. Register the plain-text route and layout-free template.

  5. Add /llms.txt to your static caching invalidation rules.

  6. Open the file in your browser and test whether an AI assistant can answer key questions about your site from it.

Conclusion

llms.txt is a lightweight, low-effort way to give AI assistants a clean map of your site. With Statamic, it stays automatically synchronized with your published pages and articles. Explore our Statamic agency and Laravel agency pages, or write to us if you would like to set up llms.txt on your site.

Frequently Asked Questions

Questions and Answers

  • No. Google states clearly that no special AI text files are needed for AI Overviews or AI Mode. llms.txt is aimed at assistants and agents explicitly looking for a concise site overview.

  • No. robots.txt governs crawler access permissions, whereas llms.txt provides a curated Markdown directory of your key content.

  • By generating it dynamically from your CMS collections. In Statamic, a plain-text template lists published entries automatically, and static cache invalidation rules keep it fresh.

  • Statamic handles a site-wide llms.txt effortlessly. Laravel enters when exposing live data from external systems, authenticated docs, or custom endpoints for AI agents within the same codebase.

  • Yes. We set up the route, template, and cache invalidation rules and curate the right content fields with you. Reach out via our contact form.

Sources
  1. llmstxt.org: The /llms.txt file, v2
  2. Google Search Central: AI features and your website
  3. IETF: RFC 9309 – Robots Exclusion Protocol
  4. Statamic Docs: Routing
  5. Statamic Docs: Collection Tag
  6. Statamic Docs: Static Caching
Tags

Planning a project?

We are happy to advise you on websites, web applications, and the right tech stack — personally and without obligation.