Originally published on webdecoy.com.
llms.txt is a small Markdown file at the root of your site that tells AI tools what the site is and where its best pages are. This guide shows what goes in it, how to add one to WordPress in a couple of minutes, and how to see which AI crawlers fetch it.
What llms.txt is
The format was proposed at llmstxt.org in September 2024. The idea is simple: AI tools work better with a short, clean summary than with a full HTML page of menus, scripts and ads. So a site publishes /llms.txt with:
- An
#heading with the site name. - A
>quote with a one-line summary. - Optional plain text with more context.
-
##sections, each a list of links with a short description.
Here is a small one:
# Example Bakery
> Sourdough recipes, baking guides and a weekly bread newsletter.
All recipes are tested at home and use metric weights.
## Pages
- [About](https://example.com/about/): Who runs the site and how recipes are tested
- [Start here](https://example.com/start/): The five recipes to bake first
## Posts
- [Beginner sourdough loaf](https://example.com/beginner-sourdough/): A step-by-step first loaf with photos
- [Sourdough starter from scratch](https://example.com/starter/): Make a starter in seven days
It lives at https://yoursite.com/llms.txt, next to robots.txt and your sitemap.
llms.txt vs robots.txt
They do different jobs, and you can use both:
| robots.txt | llms.txt | |
|---|---|---|
| Purpose | Tells crawlers what not to fetch | Points AI tools to your best content |
| Format |
User-agent and Disallow rules |
Markdown links with descriptions |
| Blocks anything | Asks crawlers to stay out | No |
If you want AI training crawlers kept out, that is robots.txt's job. See how to block AI crawlers with robots.txt. A common setup is to block training crawlers in robots.txt, and publish llms.txt for AI search and assistants that you want to cite you.
Option 1: WebDecoy (free, updates itself)
WebDecoy for WordPress builds llms.txt from your content and keeps it current.
- Install WebDecoy from Plugins > Add New Plugin, or from WordPress.org.
- Go to WebDecoy > Settings > Good Bots and scroll to llms.txt.
- Tick Serve llms.txt.
- Optional: write a Summary (the tagline is used if you leave it empty), add an Introduction, choose which content types to list (pages and posts by default; WooCommerce products or any other public type if you like) and set Links per section.
- Save, then click View your live llms.txt.
What WebDecoy puts in the file:
- Your site name, summary and introduction.
- One section per content type, with each item's title, link and a one-line description from its excerpt.
- Only published content. Private, draft and password-protected posts are left out, and so are posts you marked noindex in Yoast SEO, Rank Math or SEOPress, hidden WooCommerce products, and cart, checkout and account pages.
The file rebuilds when you publish, edit or delete a post, so it never goes stale. The settings page shows a preview before you turn it on.
If another plugin already serves llms.txt (Yoast SEO, Rank Math, All in One SEO or Website LLMs.txt), or there is an llms.txt file on your server, WebDecoy leaves that one in place and tells you which.
Option 2: Write it by hand
For a small site that rarely changes, a hand-written file works:
- Write the file in the format above. Keep it to the pages you want AI tools to read first, not every post you have.
- Save it as
llms.txtand upload it to your web root, the folder withwp-config.php, over SFTP or your host's file manager. - Open
https://yoursite.com/llms.txtto check it.
You will need to edit it whenever you add or remove important pages.
Check it is working
Fetch it from the command line:
curl -sI https://yoursite.com/llms.txt
curl -s https://yoursite.com/llms.txt | head -20
You want a 200 status and a text/plain or text/markdown content type. If you get your theme's "page not found" page, a cache or your web server is answering first. Purge your cache and check your permalink settings.
See which AI crawlers read it
Publishing llms.txt is half of it. The other half is knowing who reads it.
WebDecoy's AI Traffic page in WordPress counts AI crawler visits by name (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot and over 200 others), with fetches of llms.txt included in each crawler's count. It also counts visitors that AI assistants such as ChatGPT, Perplexity and Claude send to your pages. No account is needed.
Quick checklist
- Decide what AI tools should read first: your about page, key guides, product pages.
- Turn on llms.txt in WebDecoy, or upload a hand-written file.
- Check
/llms.txtreturns 200 with your content. - Keep training crawlers out with robots.txt if you want to.
- Watch the AI Traffic page to see which crawlers visit.
Install WebDecoy from WordPress.org to add llms.txt to WordPress in one click.
Top comments (0)