Varbase AI Chatbot Base
The Varbase AI Chatbot Base recipe adds a chatbot for site visitors. It answers only from the site's own content, links the pages it used, and says so when the site has no answer.
Recipe Type
Varbase AI
Drupal.org Project
https://www.drupal.org/project/varbase_ai_chatbot_base
What It Adds
A Varbase AI chatbot agent that searches the
content_vectorindex before every answer.An AI Assistant for the chatbot block, open to anonymous and authenticated visitors.
The
access deepchat apipermission for anonymous and authenticated users.
Before You Apply
Apply in this order: Varbase AI Base, one vector database recipe, then Varbase AI Search Base, and index the content.
Installation
Add the recipe with Composer, then apply it with Drush:
Usage
The chatbot is the AI DeepChat Chatbot block, with its assistant set to Varbase AI chatbot. Keep streaming off on the block.
Varbase's consent manager asks visitors before the chatbot loads, because their questions are sent to the AI provider.
On a theme that renders block regions, use these block settings: placement Bottom right, streaming off (with streaming on, the retrieved context was dropped mid-answer at times), and a first message saying the chatbot answers only from the site's pages.
Where Data Goes
The content stays in Drupal and in the vector database the site owner chooses.
Indexing sends each content chunk to the embeddings provider once, and again when the content changes.
Each answer sends the visitor's question and the retrieved passages to the chat model provider. Choose a provider whose data terms fit the site, or a self-hosted model.
Last updated