AI search
How to add an llms.txt file to your site
Write a Markdown file at /llms.txt summarising what the site offers, with links to your most useful pages. It is a proposed convention rather than a standard, no major assistant is confirmed to consume it, and it costs an hour to publish.
Before you start
- A clear summary of what the site is for
- Your most important page URLs
The steps
-
Step 1: Create the file at the root
At /llms.txt, served as text or Markdown.
-
Step 2: Open with an H1 and one summary line
What the site is, in a sentence somebody unfamiliar would understand.
-
Step 3: Add sections for what you offer
Services with prices, guides, contact details. Use headings and links, not prose paragraphs.
-
Step 4: Link to real URLs
Absolute, canonical, and currently returning 200. A dead link here is worse than the missing file.
-
Step 5: Generate it from your data
So prices and page lists cannot drift from the site itself as content changes.
-
Step 6: Verify it loads
Fetch it and confirm a 200 with the right content type.
Be honest about the evidence
No major AI provider has confirmed it reads llms.txt. It is a proposal that gained attention rather than an adopted standard, and anyone presenting it as a requirement is overselling. Publish it because it is cheap and might help, not because it is expected to.
Generate it, do not maintain it
A hand-written llms.txt goes stale the first time prices change. This site’s version is generated from the same data that renders the pricing pages, which is the difference between a file that stays accurate and one that quietly contradicts the site.
The background behind this
llms.txt: a fair assessment of a file nobody is obliged to read covers the reasoning in about 2 minutes — free, ungated, written from client work.
Who wrote this
Anas Bin Masud builds e-commerce sites and does technical SEO for businesses in the UK, Canada, Ireland and Pakistan. These procedures are the ones I run on client work, written down rather than invented — including the ones where the honest answer is that the fix is not available on your current hosting.