How to Create an llms.txt File (With a WordPress Walkthrough)
How to write an llms.txt file in the llmstxt.org format, with a full service business example, three ways to add it to WordPress, and log commands to see who reads it.
To create an llms.txt file, write a short Markdown file with your site name as an H1, a one-line summary in a blockquote, and H2 sections listing your main pages as links with brief notes.
Save it as llms.txt and upload it to your site's root. On WordPress you can upload it yourself or switch it on in Yoast SEO or Rank Math.
If you want the background first (what the file is, who proposed it, and whether it's worth it), read what llms.txt is. This page is the practical part: the format, a full example, three ways to add it to WordPress, and how to check your logs to see who actually reads it.
I'll be straight about the payoff too, because it's small.
What is llms.txt, in one paragraph?
A Markdown file at the root of a site that gives AI tools a short, curated map of its most useful pages.
Jeremy Howard of Answer.AI published the proposal on 3 September 2024. Version 2, from August 2026, keeps the same format and settles a few details: a file can sit in a subfolder and cover only the pages under it, Markdown copies of pages can use either .md form, and link tags can point agents to both.
The only required part is still an H1 with the site's name.
Who reads it today, and who doesn't?
Coding agents and some AI tools do. Google Search doesn't, and no major AI search engine has said it uses the file to pick citations.
| Who | What has been said | Source |
|---|---|---|
| Google Search | Doesn't use llms.txt. Google says creating one will neither harm nor help your visibility | Google Search Central, May 2026 |
| Chrome Lighthouse | An agentic browsing audit fails if /llms.txt returns a server error, and marks it not applicable if the file is missing | Chrome for Developers |
| OpenAI, Anthropic, Google Gemini | Publish llms.txt files for their own developer docs | llmstxt.org |
| Coding agents | Use them to find API docs, according to the proposal's author | llmstxt.org v2 |
| ChatGPT search, Perplexity, Claude, Gemini, Copilot | None has publicly confirmed using llms.txt to decide what to cite | Checked 20 October 2026 |
So set your expectations low. A tidy llms.txt costs an hour and does no harm, and it gives agents a clean starting point. It won't move rankings or citations on its own. The work that does move them, such as clear pages, a named author and being findable by the right AI crawlers, comes first.
The AI search optimization guide covers that order.
How are llms.txt, llms-full.txt and robots.txt different?
llms.txt is a short map, llms-full.txt is the whole text in one file, and robots.txt is a set of access rules.
| File | What it contains | Who it's for | Status |
|---|---|---|---|
| llms.txt | A short Markdown map: site name, summary, key links with notes | AI tools and agents, on demand | Optional |
| llms-full.txt | The full text of your key pages in one Markdown file | Tools that want everything in one fetch | Optional, not part of the llmstxt.org spec |
| robots.txt | Rules for which crawlers may fetch which paths | Search and AI crawlers, before crawling | Standard. Every site should have one |
| sitemap.xml | Every indexable URL on the site | Search engines | Standard |
llms-full.txt came from documentation platforms. Mintlify, for example, generates one that combines a whole docs site, with each page's title, URL, description and full Markdown text. The llmstxt.org proposal doesn't define it. For a service business with ten or twenty pages it adds little, so I'd skip it.
What does a good llms.txt look like for a service business?
One H1, a two-line summary, an optional note, then sections of links. Here is a full example for a made-up clinic.
# Greenline Physio > Physiotherapy clinic in Toronto (Leslieville). Sports injuries, back pain > and post-surgery rehab. Direct billing to most insurers. Mon to Sat. Prices on the fees page are for 2026. Book online or call (416) 555-0142.## Services - [Sports injury physio](https://greenlinephysio.example/sports-injury/): assessment, treatment plan, return to sport - [Back and neck pain](https://greenlinephysio.example/back-pain/): who it suits, number of sessions - [Post-surgery rehab](https://greenlinephysio.example/rehab/): knee, hip and shoulder programmes ## Clinic - [Fees and insurance](https://greenlinephysio.example/fees/): session prices, direct billing list - [Our physiotherapists](https://greenlinephysio.example/team/): registration and specialities - [Location and hours](https://greenlinephysio.example/contact/) ## Optional - [Blog](https://greenlinephysio.example/blog/)
- The blockquote holds the facts an AI tool most often gets wrong: what you do, where, and for whom.
- The plain line after it is allowed by the format: paragraphs or lists with no headings, before the first H2.
- Each link has a short note after a colon, saying what the page answers.
- The Optional section holds links a tool can skip.
Version 2 keeps it as a convention.
The detail lives behind the links.
How do you add llms.txt to WordPress?
Three ways: upload a file to the root folder, switch it on in your SEO plugin, or have a tool write it.
Pick one, not two.
Option 1: upload the file yourself
The root is the folder that holds wp-config.php, often called public_html. On a standard WordPress setup the server hands out a real file before WordPress runs, so a file you upload there will be served even if a plugin also tries to generate one. That's why you should use one method only.
Option 2: Yoast SEO or Rank Math
- Yoast SEO: go to Yoast SEO, Settings, Site features. Under AI tools, switch on llms.txt and save. Yoast says the feature is free and refreshes the file automatically, and you can switch to manual page selection.
- Rank Math: go to Rank Math SEO, Dashboard, and turn on the LLMS Txt module. Then open General Settings, Edit llms.txt, and choose the post types and taxonomies to include.
- Other plugins: AIOSEO also has an llms.txt generator, according to the integrations list on llmstxt.org.
After switching it on, open the file and read it. Generated descriptions are usually pulled from the first text on each page, and on page-builder sites that can be a byline, a date or a button label. Rewrite the notes, or switch to manual selection, until each line says what the page actually answers.
Option 3: have a tool write it
I co-founded wptaskify, so weigh this with that in mind: if your site is connected to it, you can ask Claude or ChatGPT to draft the file from your real pages and save it with the edit_llms_txt tool.
Writing it by hand with the example above works just as well. The planned llms.txt Generator on this site will do the formatting for you in the browser.
How do you check your server logs for llms.txt?
Wait 30 to 60 days, download your access log, and count which user agents requested /llms.txt.
This is the only honest way to know whether the file gets read on your site. Most hosts let you download raw access logs from the control panel, and these commands work on the standard Apache or Nginx combined format, where the user agent is the sixth field when you split each line on quote marks:
# 1. Which user agents asked for llms.txt, and how often (Apache or Nginx combined log) grep "GET /llms.txt" access.log | awk -F'"' '{print $6}' | sort | uniq -c | sort -rn # 2. The same count for robots.txt, to compare grep "GET /robots.txt" access.log | awk -F'"' '{print $6}' | sort | uniq -c | sort -rn # 3. Did any bot fetch llms-full.txt or .md pages? grep -E "GET /(llms-full\.txt|[^ ]*\.md) " access.log | awk -F'"' '{print $6}' | sort | uniq -c
Record what you find in a simple table, and compare llms.txt with robots.txt.
Bots fetch robots.txt constantly, so it shows you what normal crawler traffic looks like on your site.
| Bot | llms.txt fetches | robots.txt fetches | Notes |
|---|---|---|---|
| GPTBot / OAI-SearchBot / ChatGPT-User | |||
| ClaudeBot / Claude-SearchBot / Claude-User | |||
| PerplexityBot / Perplexity-User | |||
| Googlebot | |||
| Anything else |
This site's own file is too new to have 60 days of logs. Once it does, I'll add the counts here with the date range. A user agent can be faked, so if a count looks surprising, check the IP ranges each company publishes before you trust it.
A full example file, section by section
Reading a complete small file teaches the format faster than rules do. This example belongs to a fictional dental clinic and shows the decisions inside a real file.
The header block
The clinic name, a one-line summary of what the practice does, and a short note about the site. Engines read this as the site’s self-introduction.
The services group
Each treatment page listed with a note naming the patient question it answers. Notes describe pages honestly, in one line each.
The optional group
Insurance guidance, first-visit details and the fees page. Useful to an agent planning a visit, secondary to the core list.
Keeping the file updated
- Add on publish. A new key page joins the file in the same sitting as its release.
- Remove on retirement. Dead links inside the file teach crawlers the file is stale.
- Re-read the notes quarterly. A note describing last year’s service list misleads every reader, human or machine.
Mistakes seen in real files
Three recur. Listing every URL on the site, which buries the important pages. Writing notes as adverts, which readers learn to discount. And placing the file anywhere other than the root, where most readers look for it first. A short, honest, current file at the standard location beats an ambitious one every time.
Questions people ask
Does llms.txt help me rank in Google?
No. Google's guide to generative AI features says Google Search doesn't use llms.txt, and that creating one will neither harm nor help your visibility or rankings.
Does llms.txt block AI crawlers?
No. It only describes your site. Blocking or allowing crawlers is the job of robots.txt, which the AI Crawler robots.txt Builder writes for you.
Where exactly should the file live?
At the root, so it opens at yoursite.com/llms.txt. Version 2 of the proposal also allows a file in a folder, such as /docs/llms.txt, covering only the pages under that folder.
Do I need Markdown versions of my pages?
The proposal suggests them, at the same URL with .md added, but they are optional. For most service businesses, links to the normal HTML pages are enough to start.
How often should I update it?
Whenever you add, remove or rename a main page. Plugin-made files refresh on their own, but read them after big site changes.
Related
Sources
- llmstxt.org: the /llms.txt file, v2 (Jeremy Howard)
- llmstxt.org: changes in v2 (August 2026)
- Google Search Central: optimizing your website for generative AI features
- Chrome for Developers: Lighthouse llms.txt audit
- Mintlify: llms.txt and llms-full.txt
- Yoast: how to enable llms.txt
- Rank Math: how to use llms.txt
Read next
Our wptaskify team takes repeat work off your hands with AI and helps more customers find you on Google, Maps and in AI answers.