Today, your audience isn't just human readers—it includes AI agents, chatbots, and RAG systems that process your documentation to answer user queries. To ensure these tools provide accurate and helpful responses, your content needs to be structured with AI in mind. In this guide, we'll break down exactly how to make your documentation AI-friendly. We will cover essential technical requirements, content writing best practices, and specific tips for getting the best results out of AnswerGenius in ClickHelp.
General tips
We can divide recommendations into technical and content-related. Read more about them below.
These are technical aspects of AI-friendly documentation:
-
Content Discoverability — AI bots should be able to parse your documentation. For example, URLs that include hashbangs (!#) cannot be indexed correctly. To avoid this, use the Next Reader UI template in ClickHelp. Another example of the content that cannot be indexed correctly is content that is dynamically loaded via JavaScript. So, avoid using it in your documentation.
- Markdown availability — providing documentation in Markdown instead of PDFs or complex HTML markup, which bots may not always be able to parse. With ClickHelp, every topic in your portal can be retrieved as clean Markdown. This allows AI agents and LLM-powered tools to read individual topics without parsing HTML.
-
Using llms.txt — a curated, human-readable index file that tells AI agents which pages in your portal are the most authoritative and relevant. It follows the llms.txt convention proposed by the AI research community and is analogous to robots.txt and sitemap.xml for traditional search engines. Learn how you can configure llms.txt for your ClickHelp portal.
- MCP Server — a Model Context Protocol (MCP) server that allows AI coding assistants and agents to query your documentation programmatically. Learn more about ClickHelp Authoring MCP server.
Here are the content related tips:
- Simplify your language. Using clear and straightforward language makes your documentation easier to understand for both humans and AI bots.
- Structure your documentation. The most famous approach for structuring your documentation is Diátaxis. If the type of the topic is evident, it is easy to understand whether it suits your current goal or not.
- Keep topic length optimal. Short articles don't provide enough context, too long articles may overload the bot's context.
-
Follow the "single question - single topic" rule. Split your content to smaller topics and use sections with informative headings. Headings have more search weight when analyzing results.
- Chunk content. Since the content is processed in chunks, every section should be self-contained. It's better to repeat terms and avoid using pronouns.
-
Use semantic markup for headings. Use a strict hierarchy of headings (H1 -> H2 -> H3) that helps models correctly "chunk" the text for analysis.
-
Use full instructions. Instructions should be very detailed. If this is a code sample, then you need to specify everything needed to run it. Code samples should contain all necessary imports to run immediately. It is better to describe clear steps instead of using descriptions sentences.
- Add FAQ and Q&A sections. Users usually ask questions instead of searching a term. So, it's better to add more FAQ and Q&A sections to your documentation.
- Remove outdated information. Review your documentation. Update or delete topics that have irrelevant information.
- Write task-oriented docs. Users try to solve a particular issue or complete a task. Adding more How-to topics will help AI bots to meet users' queries.
AnswerGenius specifics
In ClickHelp we give you an option to add the AnswerGenius widget to your portal. In addition to general recommendations, there are some specifics that can help you adjust your documentation so AnswerGenius can show better results with it.
AnswerGenius uses the Retrieval-Augmented Generation (RAG) approach. It means that the bot searches your content, selects the most relevant passages, and generates a grounded answer with cited sources. Relevance priority (highest → lowest) is the following: Index keywords → Title → Headings → Text → Links.
- Use the Featured Snippets functionality that increases the relevance priority of a topic.
- Use index keywords to help the search engine to find and organize the information. Add synonyms and phrases that users use frequently. You can find the user's search queries in the Search queries report.
- AnswerGenius cannot parse images and videos. Give descriptive file names and alt text and provide transcripts for audio and video content. The more context you can give AI about your multimedia content, the better.
This is how you can improve your documentation so AI agents can work with it better.