search

Ask The Docs

Ask the Docs is a chatbot plugin for Typemill that lets your visitors ask questions about your documentation and get instant answers powered by artificial intelligence.

What it does

Once you add the chatbot to a page, visitors can type a question like "How do I publish a page?" and the AI will:

  1. Search through your documentation
  2. Read the relevant pages
  3. Give a clear answer with links to the sources

The chatbot only answers questions about your own content. It will not answer unrelated questions or follow instructions from users trying to trick it.

How to add the chatbot to a page

  1. Open any page in the visual editor
  2. Click the shortcode button (or type it manually)
  3. Choose askthedocs from the list
  4. Save and publish the page

The chatbot will appear on that page in the frontend.

Alternatively, in the raw Markdown editor you can simply type:

[:askthedocs:]

Admin settings

Open the plugin settings from the system menu. Here you can adjust the look and behaviour of the chatbot.

Appearance

If you need visitors to agree to your privacy policy before using the chatbot:

The visitor's choice is remembered in a cookie, so they only need to check it once per browser. They can uncheck it at any time.

How the AI works

Limits and protection

To keep costs under control and prevent abuse, you can set several limits:

The plugin counts visitors by their network address, so clearing cookies or using a private window does not bypass the daily limits.

Logs

Automatic maintenance

Admin dashboard

Go to System → Ask the Docs to open the dashboard.

Summaries

The AI uses short summaries of each page to decide where to look for an answer. The dashboard shows all indexed pages as a card grid.

Index status bar (top of the Summaries tab):

Important: The Rebuild & Generate and Generate All Missing buttons send the full page content to your AI provider for every empty summary. On a large site this can be expensive. A progress bar with a Stop button appears while generation is running.

Per-page actions (inside each card):

Good summaries help the chatbot find the right pages faster. New pages are added to the index with an empty summary so you can easily spot what still needs to be generated.

Questions

This tab extracts visitor questions from the session logs and shows them in a table. Each row shows the date and the question text. Click View log next to a question to open the full AI conversation for that question in a modal window.

Press Delete All Logs to remove every session log file. This also clears the question table.

Tips for best results

Colour and style

The widget uses simple inline styles based on your settings. If you want deeper styling, you can override the CSS classes in your theme:

Requirements

Support

If the chatbot does not appear, check that:

  1. The plugin is enabled
  2. The shortcode [:askthedocs:] is added to a published page
  3. The AI service is configured in the system settings
  4. The documentation index has been built at least once (visit the Ask the Docs admin page and click Rebuild & Generate)

If answers seem off-topic, tighten the Additional Agent Instructions or lower the step and page limits so the AI focuses more narrowly.