Documentation

Complete guide to implementing and optimizing llms.txt for your website

What is llms.txt?

llms.txt is a standardized format that helps websites communicate their structure, content, and purpose to Large Language Models (LLMs). It serves as a roadmap that guides AI systems through your website, helping them understand what you offer and how to interact with your content effectively.

Think of llms.txt as a sitemap specifically designed for AI systems, providing context and structure that helps them better understand your content.

Quick Start Guide

1

Create Your File

Use our generator tool or create a new file called llms.txt in your website's root directory.

2

Add Basic Information

Start with your website name as an H1 heading, followed by a brief description in blockquote format.

3

Organize Your Content

Add sections with H2 headings and list your important pages with descriptive links.

4

Test and Deploy

Verify your file is accessible at yoursite.com/llms.txt and validate the format.

File Structure

# Website Name

> Brief description of your website or project
> This appears as a blockquote and should summarize your main purpose

Additional context or details about your project can go here.

## Core Documentation
- [API Reference](https://yoursite.com/api): Complete API documentation
- [User Guide](https://yoursite.com/guide): How to use our platform
- [FAQ](https://yoursite.com/faq): Frequently asked questions

## Optional Resources
- [Blog](https://yoursite.com/blog): Latest updates and insights
- [Community](https://yoursite.com/community): Join our community discussions
                                        

Required Elements

  • • Website name (H1 heading)
  • • Brief description (blockquote)
  • • At least one content section

Optional Elements

  • • Additional context paragraphs
  • • Multiple content sections
  • • Detailed link descriptions

Best Practices

✓ Do

  • • Keep descriptions clear and concise
  • • Use descriptive link text
  • • Organize content logically with sections
  • • Update regularly as your site evolves
  • • Include your most important pages

✗ Don't

  • • Include every page on your site
  • • Use vague descriptions like "click here"
  • • Let the file become outdated
  • • Include broken or temporary links
  • • Make it overly complex

File Placement

Important

Your llms.txt file must be placed in your website's root directory and accessible at yoursite.com/llms.txt

Common Placement Examples:

Static Sites:
/public/llms.txt
/dist/llms.txt
/build/llms.txt

Server Configurations:
Apache: Place in document root
Nginx: Place in root directory
Node.js: Serve from public folder
                                            

Tools and Resources

Generator Tool

Use our interactive tool to create your llms.txt file with a user-friendly interface.

Use Generator

Example Files

Download example llms.txt files for different types of websites.

Need Help?

If you have questions or need assistance implementing llms.txt, we're here to help!