Shoppers increasingly ask ChatGPT, Claude, Perplexity or Gemini for product recommendations instead of typing a query into a search engine. Those tools read websites differently from Google's crawler: they work best with clean, compact text, and a typical Magento page is mostly menus, scripts and layout. llms.txt is a proposal for giving them a better starting point. This article explains what it is, what to put in it for a store, and how much difference it is likely to make today.
What llms.txt is
llms.txt was proposed by Jeremy Howard of Answer.AI on 3 September 2024, at llmstxt.org. It is a plain Markdown file published at the root of a site (https://example.com/llms.txt) that gives AI tools a short summary of the site and a curated list of its most useful links, each with a one-line description.
The format is deliberately simple:
- An H1 with the name of the site. This is the only required part.
- An optional blockquote with a short summary.
- Optional paragraphs or lists with more detail.
- Optional H2 sections containing lists of links in the form
[Name](url): description.
A common companion is a longer "full content" file, often called llms-full.txt, which includes the actual text of the key pages rather than just links.
What a Magento store's llms.txt should contain
For a shop, the most useful llms.txt reads like a briefing for a new sales assistant:
# Example Outdoor Store
> Outdoor clothing and camping equipment, shipping across the UK
> from our warehouse in Leeds. Prices in GBP, free delivery over £50.
## Categories
- [Waterproof Jackets](https://example.com/jackets.html): men's and women's, 3-layer and insulated
- [Tents](https://example.com/tents.html): 1 to 6 person, backpacking and family
## Popular products
- [Summit 3L Jacket](https://example.com/summit-3l.html): £189, in stock
## Customer service
- [Delivery](https://example.com/delivery): rates and times
- [Returns](https://example.com/returns): 60-day returns policy
The points that matter most for a store:
- A clear one-sentence summary of what you sell, where you ship and in which currency.
- Your main categories, with short descriptions.
- Key products with correct prices and availability. Out-of-date prices are worse than none, so this must be generated from the catalog, not written once by hand.
- Policy pages such as delivery, returns and contact details, which assistants are often asked about.
- Nothing you would not want quoted: no internal notes, no disabled products, no pages blocked from search.
Who actually reads it?
This is the honest part. llms.txt is a proposal, not an official standard, and the major AI providers have not published documentation saying their crawlers use it. Some documentation platforms and AI tools do read or generate llms.txt files, and developers use them to point coding assistants at the right documentation, but there is no guarantee that a given assistant will read yours.
So treat llms.txt as a low-cost, low-risk addition rather than a ranking lever:
- It costs almost nothing once it is generated automatically.
- It does not replace normal SEO: crawlable pages, structured data and a sitemap still matter more.
- If AI tools do use it more widely, stores that already publish an accurate file benefit first.
How to publish one on Magento
You can upload a static llms.txt to your web root, but on a real store it goes stale the moment prices or stock change. A better approach is to generate it from the catalog:
- Build it from live data: store name and summary from configuration, categories from the menu, products with current price and stock, and CMS pages you choose.
- Respect exclusions: skip disabled and out-of-stock products, hidden categories and pages marked noindex.
- Handle multiple store views, so each language or region serves its own file with the right currency.
- Regenerate on a schedule (for example nightly via cron) and serve the file quickly, without rebuilding it on every request.
That is exactly what my LLMs.txt Generator extension does: it builds llms.txt and an optional full-content file from your catalog, per store view, on a schedule, from the admin or from the command line.
Summary
- llms.txt is a proposed Markdown file that summarises your site for AI tools.
- For a store, include a clear summary, categories, key products with live prices, and policy pages.
- Nobody can promise that a particular AI assistant reads it today, so treat it as a cheap extra, not a replacement for SEO.
- Generate it from your catalog so it never shows outdated prices.
Sources
Need help with this?
Upgrade-safe custom modules for checkout, pricing, B2B workflows, integrations and admin tools.
Custom Module Development