Home Guides

llms.txt: what it is, and how to write one

llms.txt is a text file at the root of a website that tells AI assistants, in a few lines, who you are and which pages matter. It is optional, it takes an hour to write, and it is the one page of your site written for machines on purpose.

Published by Bosco So, AI and Hong Kong market · Updated

Where it comes from

The idea was published in September 2024 by Jeremy Howard, of the research company Answer.AI. His reasoning: a website is built for people, with menus, images and scripts, and an assistant that arrives on it has little time and limited memory. A plain file that says “here is what this site is, here are the pages worth reading” saves it the search.

The file is written in Markdown, the simple text format assistants read most easily, and lives at one address: yoursite.com/llms.txt.

How it differs from robots.txt and the sitemap

FileWhat it saysFor whom
robots.txtWhat crawlers may and may not readEvery crawler
sitemap.xmlThe full list of your pagesSearch engines
llms.txtWho you are, and the few pages that matter mostAI assistants

They work together. An assistant blocked in robots.txt will not read llms.txt either.

What goes in it

  • A title: the name of the business, on the first line.
  • A summary: two or three sentences that say what you sell, to whom, and where. This is the part most likely to be reused, so every word should be true and specific.
  • A few lines of context: who runs the business, since when, how to reach you.
  • Sections of links: your main categories, your best guides, your delivery and returns pages, your contact page. Each link on one line, followed by a sentence that says what the page contains.
  • An optional section, for pages that are useful but can be skipped when space is short.

An example for a shop

Here is what the file of a small tea shop could say, in order.

Title: Maison Example. Summary: Maison Example sells loose-leaf teas from small estates in Taiwan and Japan, online and in its shop in Lyon, and ships to France, Belgium and Switzerland.

Context: founded in 2014 by a tea taster; orders sent within two working days; returns accepted for 30 days.

Links, each with one line of description: the green teas, the oolongs, the guide “how to choose a first oolong”, the delivery page, the returns page, the contact page.

That is the whole file: about twenty lines. Ours is at sonsaura.com/llms.txt if you want to see one in place.

Writing it in an hour

  • List the ten pages you would send to someone who asks what you do.
  • Write the summary first, then cut every adjective that is not a fact.
  • Write one line per link: what the page answers, not its title again.
  • Save the file as llms.txt, in plain text, and place it at the root of the site, next to robots.txt.
  • Open yoursite.com/llms.txt in a browser to check that it displays as text.
  • Review it whenever your range, your prices or your delivery terms change.

What to expect from it

Be clear-eyed. The file is a proposal, not a standard. At the time of writing, no large assistant has publicly committed to reading it when it answers a question, and nobody has shown that it changes who gets cited.

We add it anyway, for two reasons. It is cheap. And writing it is a useful test: a business that cannot summarise itself in three true sentences has a problem on its home page as well.

Questions people ask

Is llms.txt an official standard?
No. It is a proposal published in 2024, adopted by a growing number of sites, software documentation above all. No standards body has ratified it.
Will it get my shop recommended?
Not by itself. What decides a recommendation is whether the assistant can read your pages, understands what you sell, and finds you confirmed elsewhere. llms.txt helps with the second point only.
Should I write it in several languages?
Write the main file in the language of your main market, and add a section that links to the other language versions of the site. A separate file per language folder is possible, but not expected.
Can it hurt?
Only if it says something untrue or out of date. Treat it like any published page: what it states, an assistant may repeat.

Sources

Guides

More guides.

All guides

Contact

Tell us what you sell, and where.

Whether you want to be found by more buyers, cited by AI assistants, or need software built for you. We reply in English, French and Chinese.

Write to us b.so@sonsaura.com