← Back to blog

How to set up llms.txt and why one file isn't enough

How to set up llms.txt and why one file isn't enough

llms.txt is a text file at the root of your site where you list which pages matter to language models. The idea is simple: help the bot stop guessing. In practice, one file solves very little — and one wrong path means you've sent the AI somewhere you didn't intend.

Below: how llms.txt works, what to put in it, the typical mistakes people make on their own, and why after a "quick fix" your visibility sometimes drops instead of climbing.

What llms.txt is and why it exists

The format was proposed as a counterpart to robots.txt, but for LLM crawlers. The file usually contains:

  • a short description of the company or project;
  • a list of URLs with notes: services, pricing, FAQ, contacts;
  • sometimes links to markdown versions of pages or a sitemap for models.

The file doesn't guarantee you'll show up in AI answers. It lowers the odds that a bot grabs a random page — a 2019 blog post, an expired promotion, a draft in a test folder.

Without llms.txt, a model can still find you. With a broken llms.txt, it can "learn" from junk faster than it would with no file at all.

Who reads the file: GPTBot from OpenAI, ClaudeBot, PerplexityBot, and other LLM crawlers. Google still leans on its own index, but the overlap is real in practice: a clean site structure helps everyone. The file doesn't replace indexing in Google, but it lowers the odds that a model pulls the wrong page when answering a user.

Don't confuse llms.txt with llms-full.txt and GitHub mirrors. Take the spec from the official format repository, but write the content for your own domain. Templates from blog posts often include fields like author and version that you don't need and that just add noise.

Five signs of a broken llms.txt

  1. Paths from someone else's template 404 on your domain.
  2. 50+ URLs — the model can't tell what matters.
  3. Pricing is in a PDF — the bot sees a link, not the numbers.
  4. robots.txt blocks pages listed in the file — you're fighting yourself.
  5. The file wasn't updated after service URLs changed — dead links.

A broken pointer is worse than no pointer: the bot crawls, finds junk, and logs instability.

A minimal working example

A structure with no claim to being a standard (there isn't one yet):

# Company name
> Short version: what you do, city, who you serve.

## Services and pricing
- https://example.com/services/ — pricing and timelines
- https://example.com/faq/ — answers for customers

## About
- https://example.com/about/ — licenses, team

## Contacts
- https://example.com/contacts/

Every URL must load, return 200, and match what's on the site and in your business listings. Redirects to another domain, http instead of https, a typo in the path — that's already a mistake.

Comments after the URL are optional but help: "pricing current as of May," "clinic license," "FAQ for booking." One line of context lowers the odds that the model uses a page for the wrong purpose.

Why one file is nowhere near enough

llms.txt doesn't replace:

  • solid commercial content on your pages;
  • Schema.org and an FAQ with real questions;
  • consistent listings in Google Business Profile and Yelp;
  • open access for the right bots in robots.txt;
  • reviews and mentions off-site.

The file is a pointer. If the pointer leads to an empty room, the model won't recommend you. Plenty of owners spend an evening on llms.txt and never touch the pricing on their site. ChatGPT names whoever has prices and an address that match everywhere.

For the bigger picture on AIO: the AIO vs SEO article. On AI assistant recommendations: how to get into AI assistant recommendations.

Where the file lives: only /llms.txt at the domain root — not in a subfolder, not renamed to txt.pdf. For subdomains, blog.example.com and example.com are separate files if you want both visible. On WordPress and site builders you sometimes need a dedicated "file at root" block, otherwise the editor saves a page instead of a text resource.

Update llms.txt when pricing, promotions, or service URLs change. An old file with dead links is worse than none: the bot crawls, hits 404s, and logs instability. A quarterly cross-check against your sitemap is a reasonable minimum for a live business.

On a one-page landing site, the file is nearly pointless — the bot only sees that one page anyway. On a multi-page site without llms.txt, a model more often grabs a blog post, a press release, or an expired promotion. You never told it what matters.

Markdown versions of pages help if they match the HTML and include pricing. A file linking to empty markdown with no numbers is another pointer into an empty room.

llms.txt structure for language models
A pointer only works if the pages behind the links are live and consistent with your listings.
llms.txt check
Does the file exist, and are bots reading it?
The audit shows technical access, robots.txt, and critical gaps around llms.txt.

Mistakes people make on their own

Copy-pasting from someone else's site

You downloaded llms.txt from a SaaS template. The paths /docs/, /api/, /pricing/ 404 on your domain. The bot logs junk. Trust in the domain doesn't grow.

Listing everything

50 URLs including utility pages, tags, and city duplicates. The model can't tell what matters. Five strong pages beat fifty noisy ones.

Forgetting https and the trailing slash

example.com/services and example.com/services/ are the same to you, but may be different to a crawler. Use the canonical address from your sitemap.

Publishing and never checking

The file is there, but nginx returns 404 on /.well-known/ or the cache serves an old version. Check: open it in incognito, run the URL through the Leadsy audit.

Blocking bots after publishing

llms.txt says "read us," robots.txt says "you can't." AI doesn't argue — it just leaves. That's how you scare off visibility in one evening.

The English-site version

Two languages means two sets of URLs in one file, or two files on different domains. Mix ru and en without labels and the model confuses geography and currency. For a company with an en version, label the sections explicitly.

Auto-generating from the sitemap

A script dumps 500 URLs into llms.txt. Formally neat, semantically junk. Hand-picking beats "let the robot figure it out."

The order of work if you do it yourself

  1. Audit before edits. Find out whether bots see you and what's already broken.
  2. A list of 5–10 canonical URLs: services, pricing, FAQ, about, contacts.
  3. Check every URL by hand and in the report.
  4. Publish /llms.txt at the root, no BOM, UTF-8.
  5. Reconcile with robots.txt: the right user-agents aren't in Disallow.
  6. Re-audit in a week, not sooner — give crawlers time.

If the express audit shows red on technical access or schema, fix that first. llms.txt comes second, not first.

When it's better to hire someone

No developer, a site builder with broken URLs, multiple subdomains, an old WordPress with duplicates — DIY will cost more than fixing it. One wrong Disallow in robots.txt wipes out a tidy llms.txt.

Leadsy runs a Full audit + action plan: which URLs go in llms.txt, what to fix in schema, what to open up to bots. Turnkey implementation too — if there's no one to make server-side changes.

Where to start today

Don't copy someone else's llms.txt. Don't publish the file before an audit. Don't block bots "just in case."

Start with the snapshot in the form below. Then 5–10 URLs with live content. Cross-check against robots.txt. Re-audit in a week — not sooner.

Example: a dental clinic listed five URLs, but the pricing was in a PDF. The bot saw a link, not the prices. ChatGPT named the clinic with prices in HTML. They moved pricing onto the page — a shift without touching the file.

Typical: an evening on llms.txt, pricing on the site untouched. ChatGPT names whoever has numbers that match in HTML and in listings. The file doesn't replace pricing.

On WordPress — FTP or static upload to root. On Webflow — a custom file at root. On Squarespace — a hosted document block. One check: the text opens via a direct link in incognito, not "we uploaded it in the admin panel."

UTF-8 without BOM. If an HTML 404 page is served instead of text, bots leave and trust drops.

Priority with no developer: (1) audit, (2) phone and address on site = listings, (3) pricing and FAQ in HTML, (4) robots.txt, (5) schema, (6) llms.txt, (7) re-snapshot. Jumping to step six without 2–4 is the most common failure.

If the file is already live and AI traffic is zero, don't delete it in a panic. Find what's breaking the picture harder. Deleting without diagnosis leaves the holes and removes one pointer.

llms.txt amplifies what's already built. It won't save an empty site. Pricing: pricing page. Questions: FAQ.

A free audit shows whether the file exists, whether bots read the pages in it, and what to fix first. Without a snapshot, one evening with a broken file can cost you a month of visibility.

Who owns llms.txt at a company: the developer places the file, marketing supplies the URL list, the owner signs off on pricing and services. One person "throwing in some links" without cross-checking is the typical failure.

Don't delete the file in a panic if "it didn't work in a week." Fix listings, schema, robots first. Then look at the pointer again.

Separately, on hosting with a WAF: an allowlist for LLM crawlers matters more than a new paragraph on your homepage. It shows up in the audit under technical access.

Typical: you published llms.txt and forgot about pricing in HTML. ChatGPT names the clinic with prices on the page. The file didn't replace content — it just pointed where to look.

No more than 10–15 lines in the file for a multi-page site. The rest goes in the sitemap. Otherwise you dilute what matters.

Pair it with schema and FAQ: the pointer leads to pages with facts, not empty shells.

Free diagnostic
Find out whether AI platforms see you
Paste your URL. Report in a couple of minutes, no server access needed.

Read also