Your website was built for people who can browse. An AI assistant cannot browse the way a person does. It opens your homepage, meets menus and popups and banners, and has only a limited amount of text it can read before it has to answer. An llms.txt file is a short map you hand it instead, so it reaches the facts about your business without wading through the clutter.
What goes in that map is a choice, and the choice is the whole job. A good file names your business, sums it up in a paragraph of facts, and points to the handful of pages that answer the questions customers keep asking. A bad file lists everything, and teaches the assistant nothing.
llmstxt.org maintains the file as a community proposal. It is not a web standard, and no standards body has ratified it. The proposal sets out a simple shape: an H1 with the site name, which is the only part you must include, a blockquote with a short summary, optional detail with no headings, and H2 sections of links, each one a link title, an address, and a one line note. A section called Optional holds links an assistant can skip when it is short on room.
Begin with the questions customers ask
Do not start by listing your pages. Start by listing the questions an assistant gets asked about your business. What do you sell, and for whom. Where do you ship, and how long does it take. What does it cost to return something. Which product fits a beginner. Those questions decide what goes in the file.
For a stationery shop, the questions are simple. What kinds of notebooks do you carry. Do you sell fountain pens. Do you ship outside the country. What is the return window on an unused pen. Every one of those questions has a page on the site that answers it, and those pages are the ones that belong in the file.
The summary comes first
Open the file with a blockquote, one paragraph of plain facts. What you sell, who buys it, where it ships, and what makes the range distinct. Keep slogans out. A model cannot use a slogan to answer a question, and a paragraph full of them reads as if the business has nothing concrete to say.
For a stationery shop, that paragraph might read: Fern and Paper sells notebooks, pens, and desk supplies from its Chicago shop, shipping across the US. It stocks fountain pens for beginners and runs a free nib tuning service for pens bought in the shop.
That paragraph already does most of the work. A model that reads only that paragraph can describe the business without guessing.
Then the pages, in groups
Group the links under H2 headings, one list per group, with a one line note on each link. The note is what makes the file useful. Without it, the file is only a list of addresses, and the assistant has to open every one to learn what it holds.
Policies first, because they are the pages assistants get asked about most and the pages most sites bury deepest. Link shipping, returns, and warranty, and put the short facts in the note, for example the return window, so the model can state it without opening the page.
Guides next. Link the pages that help a customer choose: buying guides, size guides, care instructions. Give each one a note that says what question it answers, not just what it is called.
Then the catalog. Link collections and categories, not single products. A notebooks collection stays live when a single notebook sells out, and the model can follow it to what is in stock now. Add a note on each collection that says what range it covers and who it is for.
Then about and contact. Link your about page, and, for a business with a door customers can walk through, where it is and when it opens. A model describing your business needs to know where you are based.
Optional last. Put your blog, press page, and changelog here. These are pages an assistant can skip when it is short on room, and the proposal gives them a clear home so they do not crowd the main list.
A complete sample for a stationery shop
Say you run a stationery shop. Your file might look like this, with your own domain in place of the example domain:
# Fern and Paper
> Fern and Paper sells notebooks, pens, and desk supplies from its Chicago shop, shipping across the US. It stocks fountain pens for beginners and runs a free nib tuning service for pens bought in the shop.
## Policies
- [Shipping and returns](https://yourdomain.com/pages/shipping-returns): Free shipping over 40 dollars. 30-day returns on unused items.
## Guides
- [Fountain pen starter guide](https://yourdomain.com/pages/fountain-pen-starter): How to choose a first fountain pen, nib size, and ink.
- [Notebook paper guide](https://yourdomain.com/pages/notebook-paper): Paper weights and ruling, and which pens work on each.
## Shop
- [Notebooks](https://yourdomain.com/collections/notebooks): Hardcover and softcover notebooks, described by paper weight and ruling.
- [Fountain pens](https://yourdomain.com/collections/fountain-pens): Beginner and everyday fountain pens, listed with nib size.
- [Desk supplies](https://yourdomain.com/collections/desk-supplies): Pen holders, desk trays, and paper clips.
## Optional
- [Journal](https://yourdomain.com/blogs/journal): Writing notes and shop news.
That file is done. What you will not find in it matters as much as what you will: no single product pages, no sale banners, nothing behind a login, and no checkout.
Leave these out on purpose
Single product pages, except for a small number of flagship products that define your business. Link the collection instead, so the file does not go stale when a product sells out or gets renamed.
Skip sale and seasonal pages. A page that expires teaches the assistant about an offer that no longer exists. Keep it out, and refresh the file when that seasonal range ends.
Pages that need a login, along with cart and checkout pages. An assistant cannot open them, so linking them adds nothing and wastes room.
Pages that repeat each other. When two pages cover the same ground, point to the better one. The file should point at the best source for each fact, not at every page that mentions it.
Keep it short, and keep it current
The proposal says the file itself stays small enough to fit in context, with the detail living behind the links, fetched only when needed. Use that as your test. Read the file aloud. Past a minute, you have too much in it. Cut back to collections and key pages.
Then come back to it. Collections get renamed. Categories get removed. Guides get rewritten. A file pointing at last season's catalog will teach the assistant about last season's catalog. Check it every time your catalog changes, and again when a policy changes, because a wrong return window in this file is worse than no return window at all.
Getting the file live is a separate step, and the route depends on your platform. Some hosted platforms do not give you access to the site root, so the workaround differs. Check the vendor docs in Sources for the current path for your platform before relying on a menu name or click path in a guide.
What this guide leaves out
Writing the file is one page of a larger job. Your catalog drifts, the way assistants behave changes, and being readable is not the same as being recommended, and being recommended is not the same as being bought from. That wider job is what monitoring and a full audit exist for.
Frequently Asked Questions
Should I list every product in llms.txt?
No. Link collections and key pages instead. Leave out single product pages, sale pages that will expire, and anything behind a login. A dead link here does more damage than a missing one, because the whole point of the file is that it can be trusted.
What is the one part I must include?
An H1 with your site or business name. That is the only required part in the proposal. Everything else is optional, but a file with only a name tells an assistant almost nothing, so add the summary and the link sections.
Can llms.txt block crawlers?
No. It has no allow or disallow syntax, and no crawler treats it as permission. Blocking is a robots.txt job.
How often should I update it?
Every time your catalog changes, and every time a policy changes. A file that points at last season's catalog teaches the assistant about last season's catalog.
Verified Sources & Technical Documentation
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.