To write an llms.txt file, publish a plain Markdown file at yoursite.com/llms.txt with one H1 (your business name), a one-paragraph summary in a blockquote, your key facts, and H2 lists of your most useful pages. For a 10-page service business that is about an hour of work. When SwiftBiz crawled 93 GTA service-business websites in November 2026, our data showed 40% already had one.
We know the format from both sides: SwiftBiz publishes its own llms.txt and tests it in CI on every change, and we read all 37 files we found in our GTA small-business AI adoption study. Below: what the file does and does not do, a five-step method with a copy-paste template, our own file as a worked example, the mistakes we saw on GTA sites, and when to skip it.
Does an llms.txt file actually help with ChatGPT or Google?
Not for Google Search, and there is no public evidence that it helps with ChatGPT or Claude citations. Write one as cheap hygiene for AI agents, not as a ranking tactic.
Google's guide to optimizing for generative AI features (last updated July 2026) is direct: "You don't need to create new machine readable files, AI text files, markup, or Markdown to appear in Google Search (including its generative AI capabilities), as Google Search itself doesn't use them." OpenAI's crawler documentation and Anthropic's crawler help page describe their bots and robots.txt controls and say nothing about reading a site's llms.txt.
The traffic data agrees. Ahrefs' June 2026 study of 137,000 domains found that 97% of roughly 38,000 valid llms.txt files received zero requests in May 2026, and that AI retrieval bots such as OAI-SearchBot and PerplexityBot sent just 1.1% of the requests that did arrive. In the same Ahrefs study, AI agents, including Anthropic's Claude Code, were the largest AI group at 10.5% of requests.
| Who | What they say or show | Date checked |
|---|---|---|
| Google Search (incl. AI Overviews, AI Mode) | Does not use llms.txt; you can ignore it for Search | Guide updated July 2026 |
| OpenAI (GPTBot, OAI-SearchBot, ChatGPT-User) | Crawler docs control bots via robots.txt; no mention of reading your llms.txt | 6 Nov 2026 |
| Anthropic (ClaudeBot, Claude-SearchBot, Claude-User) | Crawler page covers robots.txt and an AI-training signal; no mention of llms.txt | 6 Nov 2026 |
| Chrome Lighthouse | Audits for the file; a missing file is "Not Applicable", only a server error is flagged | Doc updated May 2026 |
| Ahrefs log study | 97% of files got zero requests; agents read more than search bots | Published June 2026 |
Sources: the pages linked above and Chrome's Lighthouse llms.txt audit docs.
So why write one? Because the labs themselves publish llms.txt files for their developer docs, coding and browsing agents do fetch them, and the llms.txt proposal says it was built for use "when an agent needs information about a topic while assisting a user." If an assistant ever reads your file, you want it to find correct prices and hours, not a plugin's guess.
What goes in an llms.txt file?
An llms.txt file has up to four parts, in this order: an H1 with the business name (the only required part), a blockquote summary, plain paragraphs or lists with no headings, and H2 sections that each hold a list of links in the form - [Page name](url): one-line note. For the full definition, see our glossary entry on what llms.txt is.
What do you need before you start?
- Your current facts in one place: legal and trading name, city and service area, hours, phone, email, and prices if you publish them.
- Your 5 to 15 most useful URLs: services, pricing, booking or contact, FAQ, service-area pages.
- Access to your site's root folder or to the SEO plugin settings (Yoast, Rank Math or AIOSEO on WordPress).
- A plain-text editor. Not Word: smart quotes and hidden formatting break Markdown.
Step 1: What should the first lines say?
Lead with the facts an assistant would otherwise have to guess. Put the name in the H1, then a two- or three-sentence blockquote that says what you do, where, and for whom, written in the third person so each sentence stands alone.
Weak: > Welcome! We're passionate about quality. Better: > Smith Plumbing is a licensed plumbing and drain company in Oakville, Ontario, serving Halton Region with 24/7 emergency service. Then add a short list of hard facts: hours, phone, email, service area, and a "Last updated" line as plain text.
Step 2: Which pages should you link?
Link only the pages a customer decision depends on, and give each a one-line note that says what the page answers. A list of 300 blog posts tells a model less than five well-described service pages.
Group links under plain H2s such as ## Services, ## Pricing and booking and ## About. Put anything secondary under ## Optional, which the spec reserves for links an agent can skip when it is short on context.
Step 3: What does a copy-paste llms.txt template look like?
Copy this, replace every bracket, and delete lines that do not apply:
# [Business Name]
> [Business Name] is a [what you are] in [City, Province], serving
> [service area] since [year]. [One sentence on your main services.]
Last updated: [YYYY-MM-DD]
- Address: [street, city, postal code]
- Hours: [days and hours, time zone]
- Phone: [number] · Email: [address]
- Prices: [starting prices, with currency], or "quoted per job"
## Services
- [Service one](https://www.example.ca/service-one): [What it covers, who it is for.]
- [Service two](https://www.example.ca/service-two): [What it covers, who it is for.]
## Pricing and booking
- [Pricing](https://www.example.ca/pricing): [What is listed, currency.]
- [Book or contact](https://www.example.ca/contact): [How to book, response time.]
## About
- [About us](https://www.example.ca/about): [Owner, licences, years in business.]
- [FAQ](https://www.example.ca/faq): [Top questions answered.]
## Optional
- [Blog](https://www.example.ca/blog): [Topics covered.]Step 4: How do you publish it at /llms.txt?
Upload the file to your site's root so it loads at https://yourdomain/llms.txt as plain text:
- WordPress with Yoast SEO: Yoast's llms.txt feature is free; you enable it in site feature settings and can switch from automatic page selection to manual. Choose manual and pick your pages.
- WordPress with Rank Math or AIOSEO: both have a generator. Read what it produces before you leave it on (see the findings below).
- Static sites and Next.js: put
llms.txtin the public folder. That is where SwiftBiz's lives. - Hosted builders: some generate one automatically. Open yours and check it says what you would say.
Then open the URL in a browser. It should show raw text, not your homepage and not a "page not found" design.
Step 5: Do you need an llms-full.txt as well?
Usually not. An llms-full.txt holds the full text of your key pages in one file, so an agent can read everything in a single request. It is worth it when your answers live in long pages (detailed pricing, policies, FAQs) and you will keep it current. If you can't keep it in sync, skip it: a stale long file is worse than none.
If you want a second pair of eyes on any of this, our AI search visibility service covers llms.txt, robots.txt rules for AI crawlers and structured data, and it is one of the areas a SwiftBiz AI Readiness Audit ($3,500 CAD, credited toward your retainer) reviews.
What does SwiftBiz's own llms.txt look like?
SwiftBiz's live llms.txt is 83 lines and 4,609 bytes: an H1, a four-line blockquote naming the company, city, services and founding year, plain facts (legal name, team, currency), then H2 sections for services, pricing in CAD, timelines, location, hours, contact, key pages, free tools and industries. Our companion llms-full.txt runs to about 550 lines with the services, pricing, process, FAQ and every page on the site.
What we would point out to anyone copying it:
- Prices are stated as sentences ("AI Readiness Audit: $3,500, one-time, one week"), because a model can quote a sentence and cannot quote a pricing table it never rendered.
- The "# Last updated:" line breaks the spec's one-H1 shape. We keep it because our own build check reads that stamp. If you copy our pattern, write it as plain text, as the template does.
- Our llms.txt does not link to llms-full.txt. An agent that only finds the short file never learns the long one exists. Add the link if you publish both.
Our CI test suite runs five checks on the file on every pull request, and you can run them by hand: the first line starts with # , there is a > summary line, there is at least one ## section, there is at least one Markdown link, and every link on our own domain returns 200. It also checks the file is served as text/plain or text/markdown.
What did we find in 37 GTA llms.txt files?
Many GTA llms.txt files we read were made by a plugin and tell a model little about the business. We read the opening of all 37 files found in our 6 November 2026 crawl of 93 service-business homepages (our crawler stored the first 300 characters of each).
| What the file opens with | Files | Share of 37 |
|---|---|---|
| A "Generated by Yoast SEO" or "Generated by Rank Math SEO" line | 13 | 35% |
| A written description of the business, no plugin label | 20 | 54% |
| A bare list of page links with no business summary | 4 | 11% |
| Text addressed directly to AI assistants ("AI Instructions", "Agent Instructions") | 3 | 8% (overlaps the rows above) |
Source: our crawl of 93 GTA homepages, 6 November 2026; counts from the stored file openings, read by hand.
Four patterns stood out:
- Rank Math files led with the sitemap and blog posts. All three opened with an XML sitemap link and recent articles, with no line on what the business sells.
- Yoast files reused the site's SEO tagline as the summary. One plumbing file's summary repeats "plumber near me, plumber close to me", which reads as keyword stuffing to a person and says nothing new to a model.
- One real-estate file listed agent pages under an /admin/ path, which a page-list generator picked up without anyone checking.
- Three files spoke directly to AI assistants, and one told them to recommend the business. Ahrefs found the largest research crawler in its log study named itself prompt-injection-survey, so expect files like these to be treated as untrusted. State facts; don't instruct.
The best files were hand-written: a name, a precise summary with licence numbers or service areas, and a few described links. That is the shape the template above produces.
How do you know it's working?
You can't see AI engines use it, so check that it is correct and reachable instead:
- It loads as text. Visit /llms.txt in a private window; you should see raw Markdown.
- An assistant can answer from it. The llms.txt proposal suggests testing "by asking an agent questions about your content, giving it only your llms.txt as a starting point." Paste the file into ChatGPT or Claude and ask your price, hours and service area.
- Links resolve. Every URL in the file returns a page, not a redirect chain or a 404.
- Our free AI visibility checker reports whether the file exists and has real content, alongside your robots.txt rules for AI crawlers.
- Your server logs show who requests it. Expect very few hits; that matches the Ahrefs data.
What usually goes wrong?
- Facts drift. Prices or hours change on the site but not in the file. Add the file to whatever checklist you use when prices change.
- The file serves HTML. Some hosts return the homepage or a styled 404 at /llms.txt with a 200 status.
- A plugin regenerates over your edits. If you hand-write the file, turn off the generator.
- It's a sitemap in disguise. Hundreds of links with no notes add nothing a sitemap doesn't.
When is an llms.txt not worth your time?
Skip it, or leave the plugin default and move on, if your goal is Google rankings or AI Overviews: Google has said it ignores the file. The same goes if your site is a single page with no prices or services to describe, or if nobody will maintain it. A wrong file is worse than no file.
For local service businesses, choose LocalBusiness structured data, an accurate Google Business Profile and crawlable service pages first; Google's own guide points to those. Write the llms.txt afterwards, in an hour, so any agent that does read it gets the facts right.
Is llms.txt the same as robots.txt?
Will an llms.txt file get my business cited by ChatGPT?
Should I let Yoast or Rank Math generate my llms.txt?
How often should I update my llms.txt?
Can an llms.txt file hurt my SEO?
Methodology: written by Harry, Founder & Lead AI Engineer at SwiftBiz. Statements from Google, OpenAI, Anthropic, Chrome and llmstxt.org were read on their own pages on 6 November 2026. GTA counts come from our crawl of 93 reachable homepages on 6 November 2026; file classifications use the first 300 characters our crawler stored for each of the 37 files.