llms.txt template

An llms.txt Example and Template, Plus How to Structure the File

A copyable llms.txt example and annotated template built on the llmstxt.org spec, with B2B and store link lists, validation checks and what to leave out.

On this page

An llms.txt example worth copying is short: one H1 with the site name, a one-sentence blockquote on what the business does, a few H2 sections of links with a note after each and an Optional section last. It is plain Markdown served at /llms.txt, following the proposal at llmstxt.org, and the spec details here were checked against its version 2 in November 2026.

For where the format came from and which tools read it, see what llms.txt is. In answer engine optimization the file plays a supporting part, since the pages it lists still do the work of getting cited, as our guide to AEO explains.

What does an llms.txt example look like for a B2B site?

A B2B llms.txt example names the company, says in one line who it sells to and lists the pages a buyer reads before a sales call: product, pricing, integrations, proof and security. The file below is for a hypothetical software company, with addresses shortened for reading; in a live file each link is a full https address.

# Example Analytics

> Example Analytics is revenue reporting software for B2B finance and RevOps teams. It joins CRM, billing and ad data into one weekly pipeline report.

The pricing page is the only current source for plan prices. The product was called Example Reports until 2025; both names refer to the same software.

## Product

- [Platform overview](www.example.com/product.md): what the software does, the data it connects and who uses it
- [Integrations](www.example.com/integrations.md): the CRM, billing and ad platforms it reads from
- [Pricing](www.example.com/pricing.md): plans, seat limits and what each plan includes

## Proof and trust

- [Customer stories](www.example.com/customers.md): case studies with the metric each team tracked
- [Security](www.example.com/security.md): certifications, data residency and the subprocessor list

## Guides

- [Pipeline reporting guide](www.example.com/guides/pipeline-reporting.md): how to build a weekly pipeline report from CRM stages

## Optional

- [Blog](www.example.com/blog): every article, newest first
- [Changelog](www.example.com/changelog): release notes by month

The prose under the summary settles two things a model could get wrong: the canonical price source and an old product name. The sections follow the order a buyer evaluates, and each note says what the page answers instead of repeating its title. The .md links assume the site serves Markdown copies of those pages; otherwise link the HTML pages.

What does the llms.txt specification require?

The llms.txt specification requires one element: an H1 with the name of the project or site. Everything else is optional but must follow a fixed order.

The llms.txt standard specification is version 2 of a proposal by Jeremy Howard, first published on September 3, 2024 and modified on August 10, 2026.

OrderElementRequiredSpec rule
1Byte-order markNoMay come first
2H1 with the site or project nameYesThe only required element
3BlockquoteNoA short summary
4Prose or listsNoDetail, with no headings
5H2 file listsNoItems are [name](url) links, optionally followed by a colon and notes
6H2 named OptionalNoBy convention, secondary links an agent can skip for a shorter context

The standard llms.txt format for AI crawlers and agents is Markdown, because models read it directly, with a fixed structure that ordinary parsers can still process. The file can sit at the site root or at any path, covering the pages under that path.

Two limits apply. The spec calls itself a proposal open to community input on GitHub. It also controls no access: it leaves that to robots.txt, covered in which AI crawlers to allow or block, and describes llms.txt as a file used on demand at inference time.

How to structure llms.txt, section by section

Structure llms.txt from the general to the specific: name, one-line summary, a few lines of plain context, link sections in priority order, then Optional.

  1. Name. The brand or product name people type, matching your homepage title.
  2. Summary. What you sell, to whom and where, in one or two sentences a model could classify you from.
  3. Context notes. Short prose with no headings: the canonical price page, regions served, renamed products and house terms. The spec asks for concise, clear language without unexplained jargon.
  4. Link sections. Two to five H2 groups in the order a buyer decides. The spec asks for brief, informative descriptions; our rule of thumb is a note under 20 words on what the page answers.
  5. Optional. Archives, changelogs and the blog index, placed last as in the spec's own example.

Version 2 also asks for clean Markdown copies of pages agents may need, at the same URL with .md appended (page.html.md) or the extension replaced (page.md), discoverable through rel="alternate" type="text/markdown" links, while rel="describedby" points a page to the llms.txt that covers it. The notes follow the rules that make any page easy to quote, covered in our style guide for content AI answers extract.

An llms.txt example for an online store

A store's llms.txt works best when it points to collections and the pages that settle a purchase: sizing, shipping, returns and warranty. The store below is hypothetical, with addresses shortened the same way.

# Example Outdoor Co.

> Example Outdoor Co. sells insulated jackets, sleeping bags and camp cookware online and ships to the US and Canada.

Prices and stock change daily; the product pages are the current source.

## Collections

- [Insulated jackets](shop.example.com/collections/jackets): down and synthetic jackets, with fill power and warmth notes per style
- [Sleeping bags](shop.example.com/collections/sleeping-bags): bags sorted by temperature rating and packed weight
- [Camp kitchen](shop.example.com/collections/cookware): stoves, pots and utensils

## Buying help

- [Size guide](shop.example.com/pages/size-guide): chest, waist and length charts for every jacket fit
- [Shipping and returns](shop.example.com/policies/shipping-policy): delivery times by region and the 30-day return window
- [Warranty](shop.example.com/pages/warranty): what the repair program covers and how to file a claim

## Optional

- [Journal](shop.example.com/blogs/journal): trip reports and gear care guides

On Shopify, the platform manages /llms.txt and mirrors the store's /agents.md by default, and a theme can override /llms.txt alone with a templates/llms.txt.liquid file of plain text or Markdown plus Liquid. Only the request and agents objects work there, and the file is served only at the bare primary domain. Shopify advises editing agents.md.liquid instead in most cases.

A copyable llms.txt template with notes

The template follows the spec's order. Replace each line with your own text and delete the optional parts you do not need.

# Company or product name

> What you sell, to whom and where, in one or two sentences.

Plain notes for a model: the canonical page for prices, regions served, renamed products and any house terms.

## First section, most important pages

- [Page name](full https address of the page): what this page answers, in under 20 words
- [Page name](full https address of the page): what this page answers, in under 20 words

## Second section

- [Page name](full https address of the page): what this page answers

## Optional

- [Page name](full https address of the page): material a model can skip when context is short
  1. The H1 is the only required line, and nothing visible goes above it.
  2. Every list item needs its [name](url) link. The colon and note are optional, though the note carries most of the value.
  3. Name the last section Optional, the convention for secondary links an agent can skip. Version 2 dropped its special meaning for tools, per the change notes on llmstxt.org.

How to use the llms.txt file to guide AI chatbots

To use an llms.txt file to guide AI chatbots, write for the moment a tool reads it, when an agent asked about your site fetches the file for context. A short map plus a few factual instructions does more then than a long list of links.

The live file from Stripe shows the instruction side. It skips the blockquote, puts CLI setup and sandbox advice in an opening "Start here" section, carries a section titled "Instructions for Large Language Model Agents: Best Practices for integrating Stripe" and links more than 400 Markdown pages before its Optional section (read in November 2026). Write your own instructions as facts a model can check against your pages.

Google is a separate case. Its page on AI features says, "You don't need to create new machine readable files, AI text files, or markup to appear in these features," meaning AI Overviews and AI Mode, per Google. The file's audience is agents and tools that fetch it. To see whether your wider work changes how often assistants name you, track AI share of voice and use the methods in AI Overview tracking and what Search Console shows.

How to validate llms.txt before you publish

Validate llms.txt by fetching it, checking its order, parsing it, testing every link and asking an agent real questions from it.

Validation, in order
Five checks before an llms.txt file goes live
1
Fetch it
Expect a 200 with text
2
Check the order
H1 first, then the blockquote
3
Parse it
llms_txt2ctx with --optional
4
Check every link
200, public, allowed by robots
Test with an agent
Five buyer questions
Each linked page must sit outside any login and be allowed by robots.txt.
Run the checks in this order, and finish by asking an agent five buyer questions with only the file to start from.
  1. Fetch it. Open /llms.txt in a browser or with curl -I and expect a 200 response with text and no redirect to the homepage.
  2. Check the order. The H1 first, then the blockquote, prose without headings and link lists.
  3. Parse it. Run pip install llms-txt, then llms_txt2ctx llms.txt > llms.md, the v1-era CLI still published on llmstxt.org that turns the file into an XML context document, though version 2 no longer makes it part of the proposal. With --optional True added, every section you wrote should appear in the output.
  4. Check every link. Each should return 200 at its final address, sit outside any login and be allowed by robots.txt.
  5. Test with an agent. The spec suggests asking an agent questions with only the llms.txt as a starting point. Use five questions buyers ask before a sales call.

Our free AI Visibility Checker fetches a page, its robots.txt and its llms.txt the way an AI crawler would, which catches a missing file or a crawler block in one pass.

What to keep out of llms.txt

Keep out anything a model cannot open, should not read or would repeat wrongly. Each line should point to a live, public and current page.

  • Gated pages. A login, paywall or form sends an agent to a dead end.
  • Pages that need JavaScript to show their text. Our look at whether AI crawlers render JavaScript cites a December 2024 Vercel and MERJ study in which GPTBot did not render it.
  • Messy addresses. Swap tracking parameters, session IDs and staging hosts for canonical URLs.
  • Every post you have. The spec says a sitemap covers too much content to fit in a context window, and a file listing everything inherits that problem.
  • Claims your pages do not make. Prices or terms found only in llms.txt have no page behind them.

Once the file is live, redraft it from your sitemap with our free llms.txt Generator whenever the site changes shape. For the file and the pages behind it built together, Apex, EGGKNITE's AEO program, is built to get brands cited by ChatGPT, Claude, Gemini and Perplexity.

Sources

Frequently asked questions

Where should the llms.txt file live?
At the root of your domain, at /llms.txt, for most sites. Version 2 of the spec also lets a file sit at any path, covering the pages under that path, so a /docs/ section can carry its own. On Shopify, the platform serves /llms.txt from the store's agents.md by default, and a theme template can override it at the bare primary domain only.
Is llms-full.txt part of the specification?
We found no mention of llms-full.txt in version 2 of the spec at llmstxt.org, which defines llms.txt and the .md copies of pages. Some platforms serve one anyway: Shopify's documentation covers /llms-full.txt beside /llms.txt and /agents.md, and its llms.txt.liquid template leaves that file unchanged. Treat it as a platform feature and check what yours puts in it.
How long should an llms.txt file be?
Short enough that every link earns its place. We found no length limit in the spec, and the Stripe documentation file links more than 400 pages. A B2B marketing site or a store usually needs only a few H2 sections covering the pages a buyer reads before deciding, with everything secondary under Optional, which an agent can skip when it needs a shorter context.
How often should llms.txt be updated?
Every time a linked page moves, a product is renamed or a price page changes. A stale file points agents at old facts under your name. A quarterly check against your sitemap is a sensible floor, and the spec itself was revised in August 2026, so reread the proposal whenever you edit your file.

Free tools for this topic

FREE TOOLAI Brand Visibility MonitorDoes ChatGPT recommend you — or your competitor?CALCULATORAI & Automation ROI CalculatorPut a payback date on every automation idea.FREE TOOLAI Readiness ScorecardTwelve questions. Your automation roadmap, scored.

Keep reading

GlossaryWhat Is llms.txt? The Standard, ExplainedRead →GuidesWhich AI Crawlers to Allow or Block in robots.txtRead →GlossaryWhat Is AEO? Answer Engine Optimization, ExplainedRead →
CATALIST NEWSLETTER

Monthly dose of growth marketing.

Get marketing tips, narratives, guides, and playbooks delivered to your inbox.

Protected by reCAPTCHA — Google's Privacy Policy and Terms of Service apply.