Adds the Asyntai AI chat assistant to every page of your site. It answers visitor questions from your own content. Setup guide: asyntai.com/documentation/integrations/lektor.
Version: 1.0.1
Author: Asyntai
View all tags.
Add the Asyntai AI chat assistant to your Lektor site. It answers visitor questions from your own content, day and night.
lektor plugins add lektor-ai-chatbot
Then create the file configs/ai-chatbot.ini in your project:
widget_id = asyntai_1a2b3c4d5e6f
Build the site. 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.
All options go in configs/ai-chatbot.ini.
| Option | Default | What it does |
|---|---|---|
widget_id |
required | Your Asyntai widget ID |
enable_on_server |
true |
Set to false to keep the widget off the site during lektor server |
script_url |
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.
<script> tag in front of the closing body tag of every HTML
page that Lektor builds, including paginated pages and the 404 page.async, so your pages render first.assets/
gets the widget only when it is a full page.Asyntai reads your published pages. Add your site URL in the dashboard, and the assistant answers from the same pages the widget sits on. You can also add documents, and question and answer pairs.
Run lektor plugins remove lektor-ai-chatbot and build again. The widget is
gone.
Email hello@asyntai.com, or read the Lektor guide.
MIT. See LICENSE.
Comments