How to Write an llms.txt File for Your SaaS
Put a Markdown file at /llms.txt with your product name, a one-line summary, and links to your key pages, each with a short note on what it answers. It gives AI tools a clean map of what you do and where to read more. Th
Put a Markdown file at /llms.txt with your product name, a one-line summary, and links to your key pages, each with a short note on what it answers. It gives AI tools a clean map of what you do and where to read more. The free AI starter kit we build our own products with writes it with you.
The shape
# Your Product
> One sentence on what it does and who it's for.
A short paragraph with the facts people ask about: price, platforms, what makes it different.
## Product
- [Pricing](https://example.com/pricing/): plans and what each includes
- [Features](https://example.com/features/): what it does
## Guides
- [How to get started](https://example.com/start/): set up in five minutes
Start with one sentence
Say what the product does and who it's for, the way you'd answer "what is it?" out loud.
Add the facts people ask
Price, platforms, what's free, what makes it different. AI tools quote these when someone asks about you.
Link the pages that matter
Pick the pages that explain your product and answer common questions. Give each one a short note on what it answers.
Keep it current
Update it when you add a key page or change pricing. Stale facts get quoted too.
What goes wrong
| What you see | Why | Fix |
|---|---|---|
| AI describes you wrongly | No clear summary | One plain sentence at the top |
| Old prices in AI answers | File not updated | Update it with every pricing change |
| Every page listed | Treated like a sitemap | Pick the pages that explain you |
| Links with no context | No notes | One line on what each page answers |
Get the set we use
The starter kit writes your llms.txt and the pages it links to. Get the starter kit free on GitHub.
Questions
What is llms.txt?
A Markdown file at the root of your site that tells AI tools what your product is and which pages matter most.
Does llms.txt replace a sitemap?
No. A sitemap lists every page for search engines. llms.txt picks the few that explain your product, with a note on each.
How often should I update llms.txt?
Whenever you add a key page or change what you sell. It takes minutes.
Originally published at wednesday.is.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.