How Do You Create and Add llms.txt to Your Site?

Updated: 5 days ago

Key takeaways
|
I've written separately about whether llms.txt is worth your time, and the short version is that it depends on whether you have documentation worth pointing at. If you've decided you do, this is the build. The format takes 10 minutes. The judgment about what belongs in it is the actual work.
In more than 16 years of running content programs for enterprise tech brands, I've learned that a file that does something and a file that just sits there differ mainly in curation. This guide covers the format, what to include, how to add llms.txt on common platforms and how to check it's working. An earlier version of this post said Wix needed a custom workaround. That's changed, and I'll flag the correction where it lands.
What does an llms.txt file look like?
An llms.txt file is a Markdown document with one H1 for your site or company name, an optional quoted summary and H2 sections listing links, each with a short description. The proposal defines an Optional section for links an AI tool can skip. It lives at your domain root. Learn why it matters in what is llms.txt. |
Here's the shape, using a B2B software company as the example. Every element is plain Markdown, and any text editor can produce it. That's also why the format gets shipped badly so often. There's no validator to fail and no error message to read.
# Acme Data Platform
> Acme is a data observability platform for enterprise
> engineering teams. This file indexes our documentation,
> product references and technical guides.
## Documentation
- [Quickstart](https://acme.com/docs/quickstart): Install and send your first events in 10 minutes.
- [API Reference](https://acme.com/docs/api): Full endpoint reference with request and response schemas.
- [Pipeline Configuration](https://acme.com/docs/pipelines): How to define, monitor and alert on data pipelines.
## Product
- [Platform Overview](https://acme.com/platform): What the platform does and which teams use it.
- [Integrations](https://acme.com/integrations): Supported warehouses, orchestrators and BI tools.
## Optional
- [Changelog](https://acme.com/changelog): Release history.
- [Security](https://acme.com/security): Compliance posture and certifications.The Optional heading has a defined meaning, not a casual one. Links under it can be skipped when an AI tool is short on context. Put your reference material and core explanations above it, and put changelogs, legal pages and anything periodic below it. You're telling a system with limited attention what to drop first.
Keep the file short enough to read in one sitting. If you can't scan it in a minute, an AI tool with a tight budget can't use it well either. Long lists also go stale faster. A tight, accurate file beats a long, hopeful one.
How do you build an llms.txt file step by step?
Pull your page inventory, cut it to the pages that answer questions, group them into sections, write one useful line per link, add a short summary and serve the file at your root. That's 6 steps, in that order. Most of the time goes into the cutting. Learn the structure behind good sections in content chunking for AI.

Start by exporting your sitemap and sorting by whatever traffic or engagement data you have. You're looking for pages that answer questions, not pages that sell. Then cut to the canonical set, which for most B2B sites lands between 15 and 40 URLs. If you're over 80, you're building a sitemap, not an index.
Group the links into sections that match how someone would ask, like Documentation, Product, Guides and Company. Then write one line per link describing what the page answers, not what it's called. How to configure SSO for Okta and Entra ID beats SSO Setup. The description should let a tool decide whether to fetch the page without fetching it.
Add the summary last. Two or three sentences on what your company does and who it serves, kept identical to the description you use everywhere else. Inconsistent self-descriptions across your properties give any system checking you a reason to trust none of them. The knowledge graph guide covers why consistency matters.
What should go in the file and what should stay out?
Include documentation, technical guides, reference pages and canonical product explanations. Leave out landing pages built around forms, gated assets, thin pages and anything you wouldn't want quoted word for word. The test is whether you'd hand the page to a prospect who asked a technical question. Learn what makes a page quotable in what is an AI snippet.
The quotability test is the one I use most. A reference page that states things plainly passes. A landing page built around a form and three benefit statements doesn't, because there's nothing on it to quote. Listing it wastes a fetch and leaves a weaker impression than leaving it out.
Gated assets don't belong either. Listing a URL that returns a form wall delivers nothing and teaches the tool that your file is unreliable. If the gated content matters, publish an ungated summary and list that instead. You keep the conversion path without breaking trust.
Resist the urge to include everything. A sitemap exists to be complete, because a search engine decides for itself what matters. This file exists to be selective, because an AI tool is asking which pages matter and taking your word for it. A list of 200 links answers with a shrug, while a list of 30 answers with a position.
How do you add llms.txt on Wix and other platforms?
On Wix, the file is generated for you on upgraded sites, so the job is to review and edit it. On WordPress, plugins can generate it. On a custom stack, you write the file and serve it at your root as plain text. Learn the platform trade-offs in CMS for AI visibility.
An earlier version of this post said Wix needed a workaround, like a Cloudflare Worker or a Velo route, to serve the file. That's no longer true. Wix now generates and maintains llms.txt automatically for upgraded sites with a custom domain and indexing turned on. You'll find it under SEO & GEO, then Tools and settings, where you can view it, edit it or turn it off.
Editing on Wix has one catch. Once you edit the file, Wix stops updating it automatically until you reset it to the default. For most small sites, the automatic version is the better choice, because a hand-edited file goes stale the first time you change a page. Edit only if you have a clear reason and a plan to maintain it.
On other platforms, the file just has to resolve at your domain root and return plain text. Check the response after you ship. A file served as HTML defeats the purpose, and so does one that downloads instead of displaying. Open it in a browser and make sure it reads as text.
What failure modes make a file worse than none?
Indexable Markdown copies of every page, auto-generated stubs, dead links, descriptions copied from title tags and treating the file as a replacement for indexing work. Each one either adds noise or actively hurts you. All five are common. Learn the indexing side in how to get indexed by Google.
The mirror problem is the serious one. Some setups generate a Markdown copy of every page, so your about page also exists as an about.md file. If those copies are indexable, every page on your site now has a twin competing with it. Block them in robots.txt, mark them noindex and confirm in Search Console that the originals are still the indexed versions.
Stubs and dead links are quieter problems. A default file that lists your homepage and contact page tells a tool nothing your sitemap doesn't. Links that return errors teach tools to stop trusting the file. Fix both before you call the file done.
The last failure is strategic. Every hour spent perfecting this file is an hour not spent making sure your pages are indexed and easy to quote. Only one of those determines whether you can be cited. Keep the file in proportion. Google's own guidance on AI features says AI Overviews and AI Mode need no special files at all.
How do you verify your llms.txt is working?
Check four things. The file resolves at your root, it returns plain text, none of its links are broken and your server logs show it being requested. That's the full extent of what the file can prove about itself. Learn how to read the logs in server log analysis.

Set the success criteria before you ship. Otherwise you'll end up crediting an unrelated citation improvement to a file that had nothing to do with it. Then you'll repeat that claim to someone who believes you. Resolve, read, link-check and request are the honest criteria.
Expect modest numbers in the logs. Originality.ai's tracking, reported by PPC Land in June 2026, found 97% of the llms.txt files it monitored got no AI requests at all. Coding tools and the occasional AI crawler are the realistic visitors. If you see a few requests, the file is doing its job.
Then put it on a review cadence. Check it quarterly alongside your sitemap, and immediately whenever you rename a page, retire one or ship new documentation. A file that was accurate at launch and untouched for a year is a list of confident pointers to pages that moved. Give it an owner.
Where does llms.txt fit in the Engine Optimization Matrix™?
llms.txt is a small Distribution move in the LLMO row of the Engine Optimization Matrix™. It helps tools find your best pages, but it doesn't make those pages worth citing. That work lives in the Content and Authority levers. Learn what drives the LLMO row in LLM SEO.
So build it, keep it accurate and move on. Half an hour of setup and a quarterly check is the right investment for most documentation-heavy sites. For marketing sites, the automatic version on platforms like Wix is usually enough. Spend the rest of the time on pages engines want to quote.
Most teams get the file right and the order wrong. Indexing comes first, extractable content comes second and files like this come last. Follow that order and llms.txt becomes a small bonus instead of a distraction. That's all it was ever meant to be.
What else do people ask about adding llms.txt?
Where does the llms.txt file go?
At the root of your domain, so it loads at yourdomain.com/llms.txt. It should return plain text.
How many pages should llms.txt list?
For most B2B sites, 15 to 40. If you're listing more than 80, you're rebuilding your sitemap.
What format is llms.txt?
Markdown. It has one H1, an optional quoted summary and H2 sections of links with one-line descriptions.
What is the Optional section in llms.txt?
A section for links AI tools can skip when they're short on context. Put changelogs and legal pages there.
How do I add llms.txt on Wix?
Wix generates it automatically on upgraded sites with a custom domain and indexing on. Review it under SEO & GEO, then Tools and settings.
Should I edit Wix's automatic llms.txt?
Only if you'll maintain it. Editing stops Wix's automatic updates until you reset the file to the default.
How do I know if llms.txt is working?
Confirm it loads as plain text, has no broken links and appears in your server logs. Don't expect it to raise citations on its own.
Can llms.txt cause duplicate content?
The file itself can't. Indexable Markdown copies of every page can, so block and noindex them.
Related guides
About the author. Harold Bell is the founder of MQL Magnet and has spent about 16 years in enterprise technology marketing, working with brands like Cisco, Rubrik and Nutanix in different capacities. He's a member of the Forbes Communications Council, the creator of the Engine Optimization Matrix™ and the author of Partner Over Product. |




