Add the Asyntai AI chat assistant to your Hexo site. It answers visitor questions from your own content, in more than 80 languages.
npm install hexo-ai-chatbotHexo loads the plugin by itself. Then add your widget ID at the end of the
site's _config.yml:
asyntai:
widget_id: asyntai_1a2b3c4d5e6fRun hexo clean && hexo generate. The chat bubble is on every page.
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.
| Option | Type | Default | What it does |
|---|---|---|---|
widget_id |
string | required | Your Asyntai widget ID |
enable_in_server |
boolean | true |
Set to false to keep the widget off the site during hexo server |
script_url |
string | the Asyntai CDN | Advanced. Load the widget from another URL |
A missing or malformed widget_id stops hexo generate with a message that
says how to fix it.
- It uses the Hexo injector to add the Asyntai loader just before
</body>on every page: posts, pages, archives, categories and tags. - It works with every Hexo theme.
- The loader waits for the page's
loadevent, so your own content always renders first.
Asyntai reads your published pages. Add your site URL in the dashboard, and the assistant answers from the same posts and pages the widget sits on. You can also add extra documents and question and answer pairs.
Hexo 5 and later. Tested on Hexo 8.
Run npm uninstall hexo-ai-chatbot, delete the asyntai block from
_config.yml, and generate the site again. The widget is gone.
Email hello@asyntai.com, or read the Hexo guide.
MIT. See LICENSE.