Home / Companies / WorkOS / Blog / Post Details
Content Deep Dive

Your docs have a new audience

Blog post from WorkOS

Post Details
Company
Date Published
Author
Garen Torikian
Word Count
1,329
Language
English
Hacker News Points
-
Summary

Optimizing content for AI agents involves serving markdown instead of HTML to make information more accessible and efficient for these digital consumers, as static HTML can hinder their ability to extract useful content. The process includes detecting AI agents through Accept headers and User-Agent strings, such as axios/, to serve them markdown that excludes unnecessary React components, thereby ensuring clarity and usability. This approach also highlights the importance of reordering middleware to prevent routing errors that could mislead agents, as they often do not provide feedback on content issues. The adoption of llms.txt, akin to robots.txt, is suggested to offer a plain-text version of a site, benefiting agents like OpenAI with descriptive User-Agent strings. The evolving nature of AI agents emphasizes the need for adapting documentation strategies to cater to both human and AI audiences, ultimately improving the content's quality and accessibility.