How-To

How to write an llms.txt file?

Answer

Write llms.txt in clean markdown with a short brand description, then sections of URL bullets grouped by topic. Place the file at the root of your domain at /llms.txt. The file should be human-readable and machine-parseable, typically 50 to 200 lines.

Required structure

Start with H1 (the brand name) and a one-paragraph description. Add H2 sections like 'Core service pages', 'Free tools', 'Resources', 'Contact'. Under each H2 list URLs as bullet links with short descriptions. Keep it tight.

What to include

Canonical brand info (AI Instructions page, brand facts), core service pages, free tools, resources, contact details. Use proper markdown link syntax: Title.

Where to publish

Save the file as llms.txt and place at the site root. Make sure it returns 200 OK and Content-Type: text/plain or text/markdown. Spacemen Digital's reference implementation is at /llms.txt. The Readiness Check verifies llms.txt presence.

Want help shipping AEO into your site?

Run the free 50-signal AI Agent Readiness Check or book a free scoping call.

Score my site