Book a Free Consultation

llms.txt Guide: What It Does and How to Write One

TL;DR (Too Long; Didn't Read)

llms.txt is a plain Markdown file at the root of your site that lists your most important pages for AI tools. It takes under an hour to write. No major AI search engine has confirmed it uses the file to choose sources, so treat it as cheap housekeeping, and fix crawler access, schema and content first.

A plain text file at the root of a website connected to three AI assistant chat bubbles

What Is llms.txt?

llms.txt is a Markdown file you place at yourdomain.co.za/llms.txt. It gives AI tools a short, curated summary of your business and a list of links to the pages that matter most. Jeremy Howard of Answer.AI proposed it in September 2024 as a way for language models to read a site without wading through menus, scripts and adverts.

A normal web page is built for browsers. An AI tool that fetches it gets navigation, cookie banners, tracking code and footer links mixed in with the content it wanted. llms.txt strips all of that away. You write a heading, a one-paragraph summary and a handful of links with short notes, and you decide which pages an AI tool should read first.

The file is a suggestion, not a control. It does not block anything, it does not grant access to anything, and nothing forces an AI system to read it. Access rules still live in robots.txt. If you want the full picture of how this fits with the rest of AI search, start at our AI search optimisation hub.

Does ChatGPT, Gemini or Google Read llms.txt?

As of November 2026, no major AI search engine has publicly confirmed that it uses llms.txt to decide which pages to cite. Google's John Mueller has said publicly that he knows of no AI system that uses it and compared it to the old keywords meta tag. OpenAI, Anthropic and Perplexity document their crawlers but not llms.txt support.

That matters, because a lot of agencies now sell llms.txt as an AI ranking fix. It is not one. ChatGPT, Perplexity and Google AI Overviews pick sources from their own search indexes, built by crawlers such as OAI-SearchBot, PerplexityBot and Googlebot. Those crawlers read your pages. Nobody has shown that they read your llms.txt first, or at all.

So where does the file get used? Mostly in developer tools. Companies such as Anthropic, Cloudflare and Stripe publish llms.txt files for their documentation, and AI coding assistants and agents can load those files when a person points them at the docs. When someone pastes your domain into an AI assistant and asks it to read your site, a clean llms.txt gives it a better starting point than your homepage HTML.

Our view: llms.txt is cheap insurance, not a growth lever. We publish one for nexusseo.co.za because it costs us nothing to keep up. We would never charge a client for it as an AI visibility service on its own.

The llms.txt Format, Line by Line

The proposal sets a simple Markdown structure. An H1 with your site or business name is the only required part. After it come a blockquote with a short summary, optional paragraphs of extra context, and H2 sections that each hold a list of links. A section called "Optional" marks links an AI tool can skip when it is short on space.

Here is the full structure for a made-up Durban plumber. Swap in your own details:

# Example Plumbing

> Example Plumbing is a family-run plumbing company in Durban North,
> KwaZulu-Natal. We repair burst geysers, blocked drains and leaks for
> homes and small businesses from Umhlanga to Durban North.

Prices on this site are in Rand and include VAT. We do not install
solar geysers.

## Services
- [Geyser repairs](https://www.example.co.za/geysers/): Burst geysers, element and thermostat swaps, plumbing COCs
- [Blocked drains](https://www.example.co.za/drains/): High-pressure jetting and camera inspections
- [Pricing](https://www.example.co.za/pricing/): Call-out fee and common job prices in Rand

## Areas
- [Service areas](https://www.example.co.za/areas/): Durban North, Umhlanga, La Lucia, Glenashley

## Optional
- [Blog](https://www.example.co.za/blog/): Maintenance tips and geyser guides

Each part has a job:

  • H1 (# Name): the business or site name, written the way you want AI tools to repeat it. Use the same name as your Google Business Profile.
  • Blockquote (>): two or three sentences on who you are, what you do and where. This is the part an AI tool is most likely to lift into an answer, so keep it factual.
  • Plain paragraphs: anything a reader needs to interpret your pages correctly, such as "prices include VAT" or "we only serve KZN".
  • H2 link lists: each line is - [Page name](URL): what the page covers. The note after the colon is optional but useful.
  • ## Optional: secondary pages. Tools that need a short context can drop this section.

The proposal also suggests offering a Markdown copy of each page at the same URL with .md added. Few business sites do this, and you can skip it unless you publish technical documentation.

How to Write and Publish llms.txt

Writing a good llms.txt takes 30 to 60 minutes for a small business site. Choose your 10 to 30 most useful pages, write the summary, save the file as UTF-8 plain text named llms.txt, and upload it to the root of your domain so it loads at yourdomain.co.za/llms.txt. Then test that it loads.

  1. Pick the pages. Services, pricing, service areas, about and contact, and your two or three best guides. Leave out tag pages, thank-you pages, old promotions and anything you would not want quoted.
  2. Write the summary first. If you cannot describe the business in three factual sentences, fix that before you touch the file. The same sentences should match your homepage, Google Business Profile and directory listings.
  3. Add a short note to every link. "Call-out fee and common job prices in Rand" tells an AI tool far more than "Pricing".
  4. Upload it to the root. On WordPress, recent versions of Yoast SEO and Rank Math can generate the file for you, but edit what they produce, because an automatic list of every page defeats the purpose. On a static host such as Cloudflare Pages or Netlify, put llms.txt in the same folder as robots.txt. Some hosted website builders do not let you add files at the domain root, so check before you pay anyone to write one.
  5. Test it. Open yourdomain.co.za/llms.txt in a browser. It should show plain text, not a 404 page or a download prompt. Click every link and confirm each one loads without a redirect.

If your site sits behind Cloudflare, check that its bot protection does not challenge requests for llms.txt. A file that only humans can load helps nobody. The crawler checklist in our AI search optimisation hub covers the rest.

llms.txt vs llms-full.txt vs robots.txt

These three files do different jobs. robots.txt tells crawlers what they may and may not fetch, and the major AI crawlers follow it. llms.txt is a curated reading list with links. llms-full.txt puts the full text of your key pages into one file, so a tool can read everything in a single request instead of following links.

File What it does Do AI crawlers follow it? Do you need it?
robots.txt Allows or blocks crawlers by user agent Yes, the major ones document that they respect it Yes, every site
llms.txt Summary plus a curated list of key pages No confirmed use by AI search engines Nice to have
llms-full.txt Full text of key pages in one file No confirmed use by AI search engines Only for documentation-heavy sites

llms-full.txt is not part of the original proposal. Documentation platforms made it popular because developers wanted to load a whole manual into an AI assistant at once. For a ten-page business site, it adds a second file you have to keep in sync and gives you little in return.

The one that moves the needle is robots.txt. If it blocks OAI-SearchBot or PerplexityBot, ChatGPT search and Perplexity cannot read your pages, and no llms.txt will change that. Our AI crawlers and robots.txt guide shows what to allow and block.

Common llms.txt Mistakes

Most llms.txt problems come from treating it as a sitemap or as a sales page. The file works best as a short, accurate, maintained list. The mistakes below are the ones we see most often.

  • Listing every URL. A 300-line list of every blog post is a sitemap in Markdown. Curate. If a page would not help someone understand your business, leave it out.
  • Letting it go stale. When we merged eight overlapping blog posts on 7 November 2026, every old URL had to come out of our llms.txt and llms-full.txt as well. The same clean-up turned up a few duplicate lines. A redirected or deleted link sends an AI tool to the wrong page.
  • Writing marketing copy. "Durban's leading, award-winning, number one plumber" gives an AI tool nothing it can check. "Plumbing company in Durban North, repairs geysers and drains" does.
  • Using it to block AI. Writing "do not train on this site" in llms.txt does nothing. Use robots.txt for that.
  • Putting it in a subfolder. /blog/llms.txt or /files/llms.txt will not be found. It belongs at the root.
  • Contradicting your other listings. If llms.txt says Umhlanga and your Google Business Profile says Durban North, you have created the kind of inconsistency that confuses AI engines. Use one set of facts everywhere.

Want to know what AI engines say about your business?

Our AI visibility audit checks crawler access, schema and how ChatGPT, Gemini and Perplexity describe you today, then gives you a prioritised fix list.

See the AI Visibility Audit

Is llms.txt Worth It for a South African Business?

Yes, if you treat it as a one-hour housekeeping job. No, if someone is charging you thousands of Rand for it as an AI visibility service. The file is cheap to make and harmless to keep, but there is no public evidence that it gets a business cited more often in ChatGPT, Gemini or Google AI Overviews.

For most SA businesses the order of work should be: let the AI search crawlers in through robots.txt and Cloudflare, add schema markup that states who you are and where you trade, write pages that answer customer questions in plain language (our AI citability guide covers how), and keep your business details identical on your site, Google Business Profile and directories. Do llms.txt after those, or alongside them if it is quick.

There is one case where it earns more of your time: software companies, SaaS products and anyone with technical documentation. Developers already load llms.txt files into their AI coding tools, and a good one makes your product easier to build with.

Frequently Asked Questions

What is llms.txt?

llms.txt is a Markdown file at the root of a website, for example yourdomain.co.za/llms.txt. It gives AI tools a short summary of the business and a curated list of links to the most important pages, so they can read the site without navigation, scripts and adverts getting in the way.

Does llms.txt help you rank in ChatGPT or Google AI Overviews?

There is no public evidence that it does. No major AI search engine has confirmed that it uses llms.txt to choose sources, and Google has said publicly that it does not rely on it. Crawler access, structured data and clear, answer-first content have a far bigger effect on AI citations.

Where do I put my llms.txt file?

At the root of your domain, in the same place as robots.txt, so it loads at yourdomain.co.za/llms.txt. Save it as UTF-8 plain text. A file inside a subfolder such as /blog/llms.txt will not be found.

What is the difference between llms.txt and robots.txt?

robots.txt controls access: it tells crawlers which pages they may fetch, and the major AI crawlers follow it. llms.txt is only a reading list. It cannot block or allow anything. If you want to stop or allow AI crawlers, edit robots.txt.

Do I need llms-full.txt as well?

Most business sites do not. llms-full.txt holds the full text of your key pages in one file and is mainly useful for software documentation that developers load into AI coding tools. For a small business site it is a second file to keep updated with little benefit.