Skip to main content

mkdocs-ai-chatbot

Add the Asyntai AI chat assistant to your MkDocs site. It answers visitor questions from your own documentation, day and night.

Works with every MkDocs theme, including Material for MkDocs and Read the Docs.

Install

pip install mkdocs-ai-chatbot

Then add the plugin in mkdocs.yml:

plugins:
  - search
  - asyntai:
      widget_id: asyntai_1a2b3c4d5e6f

Build the site. The chat bubble is on every page.

Keep search in the list if you use it. When mkdocs.yml has a plugins section, MkDocs only loads the plugins named there.

Where the widget ID comes from

Open the Install page in your Asyntai dashboard. The widget ID is the value of data-asyntai-id in the snippet shown there. It starts with asyntai_.

Creating an account is free, and the Free plan is enough to try the widget.

Options

Option Type Default What it does
widget_id string required Your Asyntai widget ID
enable_on_serve boolean true Set to false to keep the widget off the site during mkdocs serve
script_url string the Asyntai CDN Advanced. Load the widget from another URL

A missing or malformed widget_id stops the build with a message that says how to fix it.

What the plugin does

  • It adds one <script> tag in front of the closing body tag of every page.
  • It marks the tag async, so your documentation renders first.
  • It changes nothing else. No theme files are overridden and no CSS is added.
  • If a page already has the Asyntai snippet, for example from a theme override, the plugin leaves that page alone.

Answering from your documentation

Asyntai reads your published pages. Add your site URL in the dashboard, and the assistant answers from the same documentation the widget sits on. You can also add documents, and question and answer pairs.

Removing it

Delete the asyntai entry from mkdocs.yml and build again. The widget is gone.

Support

Email hello@asyntai.com, or read the MkDocs guide.

Licence

MIT. See LICENSE.

Metadata

Release files for mkdocs-ai-chatbot 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-ai-chatbot 1.0.0
File Size Uploaded
mkdocs_ai_chatbot-1.0.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-ai-chatbot 1.0.0
File Interpreter ABI Platform
mkdocs_ai_chatbot-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / mkdocs_ai_chatbot-1.0.0.tar.gz

Download URL mkdocs_ai_chatbot-1.0.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f95f8b7fed7e52d74196356bdb4396ddc34e9a5c3f142a9f79f147674a42cb
BLAKE2b-256 checksum
How to use checksums
712e4e760138b2ad398d5ccbc487dc33809f2a2c6b30e124696eca39ece93934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / mkdocs_ai_chatbot-1.0.0-py3-none-any.whl

Download URL mkdocs_ai_chatbot-1.0.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8761e2188efc192c5fc9708e5848202993c2fae079f8dbd029e73816b657493c
BLAKE2b-256 checksum
How to use checksums
1f80b07c8e15b1ff9887119f1a81e4bd166c6429923f73c2ac05c753dbee2dae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page