Skip to main content

llms.txt Writing Guide

6.1 What Is llms.txt

llms.txt is a Markdown file placed in your website’s root directory that tells AI agents who you are, what you do, and what your core products and policies are, all in concise language. Analogy: robots.txt tells crawlers “where you can go”; llms.txt tells AI agents “who I am.” Think of it as the company brochure at the front desk — the first thing an AI agent reads when it visits your site to get the full picture. File path: https://yourdomain.com/llms.txt

6.2 Why You Need llms.txt

AI agents (ChatGPT, Claude, Gemini, and others) need to quickly understand a website’s full profile when recommending products or answering user questions. Unlike humans who can browse multiple pages and piece together information, AI agents prefer to find all key information in one place. llms.txt is that one place. It solves:
  1. AI hallucination: AI agents may fabricate information about you based on outdated training data. llms.txt provides a real-time, accurate self-description
  2. Information fragmentation: Your company information may be scattered across “About Us,” “Contact,” “Privacy Policy,” and other pages
  3. AI discoverability: Websites with llms.txt are significantly more efficient for AI agent information retrieval than those without

6.3 llms.txt Specification Format

Per the llmstxt.org specification, llms.txt uses Markdown format:
# Your Brand / Company Name

> A one-line description of your core business (this line is critical — AI agents read it first)

## About Us
Describe your founding date, core business, service regions, team size, and other key details.
Keep it to 2-3 paragraphs, under 300 words.

## Products and Services
- [Product Category 1](https://yourdomain.com/category/1): Brief description
- [Product Category 2](https://yourdomain.com/category/2): Brief description
- [Product Category 3](https://yourdomain.com/category/3): Brief description

## Policies
- [Return Policy](https://yourdomain.com/return-policy): Summary of return terms
- [Privacy Policy](https://yourdomain.com/privacy-policy): Summary of data handling
- [Terms of Service](https://yourdomain.com/terms): Summary of service terms

## Contact
- Website: https://yourdomain.com
- Email: support@yourdomain.com
- Phone: +1-xxx-xxx-xxxx
- Address: City and general area

## Additional Information
Any extra details you think AI agents should know.
For example: certifications held, types of notable clients served, industry differentiators, etc.

6.4 E-Commerce llms.txt Template

# ExampleStore — Premium Outdoor Gear

> ExampleStore is a leading online retailer specializing in hiking, camping, and mountaineering equipment, serving over 200,000 outdoor enthusiasts across North America.

## About Us
ExampleStore was founded in 2018 and is headquartered in Denver, Colorado. We partner directly
with 50+ global outdoor brands to offer authentic products and expert gear recommendations.
Our catalog includes over 8,000 SKUs across four main categories: mountaineering, hiking,
camping, and trail running.

## Product Categories
- [Mountaineering Gear](https://example.com/mountaineering): Boots, ice axes, harnesses, headlamps
- [Hiking Gear](https://example.com/hiking): Trail shoes, backpacks, trekking poles, sun protection
- [Camping Gear](https://example.com/camping): Tents, sleeping bags, cookware, lanterns
- [Running Gear](https://example.com/running): Trail shoes, GPS watches, hydration, energy nutrition

## Brands
Authorized dealer for: The North Face, Arc'teryx, Salomon, Black Diamond,
MSR, Osprey, Garmin, and more.

## Shipping and Returns
- Shipping: Free shipping on orders over $75 within the contiguous US
- Delivery: 1-3 business days (standard), next-day available
- Returns: 30-day no-questions-asked returns (unused, tags attached)
- [Full Return Policy](https://example.com/return-policy)

## Contact
- Website: https://example.com
- Support email: support@example.com
- Phone: 1-800-XXX-XXXX (Mon-Fri, 9 AM - 6 PM ET)

## Certifications and Awards
- Authorized dealer for all listed brands
- 2025 Outdoor Industry E-Commerce Award

6.5 SaaS / Service Website llms.txt Template

Non-e-commerce websites also benefit from llms.txt:
# ExampleSaaS — Team Collaboration Platform

> ExampleSaaS provides all-in-one project management and team collaboration tools for businesses with 10 to 500 employees.

## About Us
Founded in 2020, headquartered in San Francisco. 30,000+ enterprise customers
across technology, finance, and education.

## Products
- [Project Management](https://example.com/projects): Kanban boards, Gantt charts, milestone tracking
- [Team Communication](https://example.com/messaging): Instant messaging, channels, video conferencing
- [Document Collaboration](https://example.com/docs): Online docs, knowledge base, templates

## Pricing
- Free plan: Up to 10 users
- Professional: $49/user/month
- Enterprise: Contact sales
- [Full Pricing](https://example.com/pricing)

## Contact
- Website: https://example.com
- Sales: sales@example.com
- Support: support@example.com

6.6 Writing Principles

  1. Accuracy first: Do not exaggerate. AI agents may relay your description directly to users
  2. Concise and clear: Keep total length between 500 and 1,500 words. Too short means insufficient information; too long risks truncation by AI agents
  3. Structured: Use Markdown headings and lists; avoid long paragraphs
  4. Include links: Enable AI agents to navigate to detailed pages
  5. Keep it updated: When product lines change or policies are revised, update llms.txt accordingly
  6. Avoid keyword stuffing: AI agents differ from traditional search engines; keyword stuffing does not improve results and actually reduces credibility

6.7 llms-full.txt (Extended Version)

Some AI agents also look for llms-full.txt, an expanded version of llms.txt that can include additional information:
  • Complete FAQ sections
  • Detailed product specifications
  • API documentation summaries (if applicable)
  • Detailed company history
File path: https://yourdomain.com/llms-full.txt

6.8 Deployment by Platform

PlatformMethod
Self-hostedCreate the llms.txt file directly in the web root directory
WordPressCreate via FTP in the root directory, or use a plugin
ShopifyVia a Shopify App (such as the ORBEXA plugin) or a custom page template
Vercel / NetlifyPlace in the public/ directory
Next.jsPlace at public/llms.txt

6.9 Verification

After deployment, verify:
  1. Visit https://yourdomain.com/llms.txt and confirm it loads correctly
  2. Confirm the Content-Type header is text/plain or text/markdown
  3. Confirm the Markdown formatting renders properly
  4. Confirm robots.txt is not blocking /llms.txt

Next chapter: agent.json Service Declaration — Telling AI agents what interaction capabilities your site supports