This module adds an AI-powered chatbot to your Drupal site that can answer questions based on your site's content or other data sources. It uses a retrieval-augmented generation (RAG) approach to provide context-aware responses through a dedicated page or a configurable block.
The RAG AI Assistant module provides an AI-powered chatbot for Drupal using Retrieval-Augmented Generation (RAG), enabling context-aware and dynamic responses based on site content or external data sources.
It integrates AI capabilities into Drupal, allowing users to query information and receive relevant responses through a simple API-driven architecture. The module is designed to be flexible and extensible, making it suitable for knowledge bases, support assistants, and content-driven AI experiences.
Features
- AI-powered chatbot using the RAG approach
- Context-aware responses based on site content or external data sources
- API-driven architecture for easy integration
- Configurable admin settings
- Support for anonymous and authenticated users
- Extensible and developer-friendly design
- Integration with Drupal logging system
Requirements
- Drupal 10, 11 or Drupal 12
- PHP 8.3 or higher
Configuration
- Navigate to: /admin/config/rag-ai-assistant/settings
- Configure:
- API settings (if applicable)
- Chatbot behavior options
- Message handling settings
- Save configuration
RAG Chat Page
The module provides a dedicated chatbot page available at /rag-chat, offering a full-page interface for users to interact with the AI assistant.
Accessing the Chat Page
- Ensure the module is enabled
- Open your browser and navigate to: /rag-chat
- Start interacting with the chatbot by entering your query
Permissions
- The page can be configured to allow access to anonymous users
- Access can be restricted using Drupal permissions if required
Chatbot Block Placement
The module also provides a chatbot interface that can be displayed using a Drupal block.
Steps to Add the Chatbot Block
- Go to the Block Layout page: /admin/structure/block
- Select the region where you want to display the chatbot (e.g., Sidebar, Footer, or Content area)
- Click on “Place block”
- Search for “RAG AI Chat”
- Click “Place block” next to the block
- Configure block settings such as visibility (pages), user roles, and title
- Click Save block
Recommended Setup
- Place the chatbot in the footer for global access across the site
- Use sidebar placement for contextual usage
- Enable visibility for both anonymous and authenticated users if required
Optional Customization
- Customize the block template (Twig) for UI changes
- Add custom JavaScript for enhanced chatbot interaction
- Integrate with frontend frameworks if needed
Depends on
Dependencies of the latest stable release
- node Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the AI ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.1 | Stable | 10–11 | Added Drupal 12 compatibility. | Jun 15, 2026 | |
| 1.0.0 | Stable | 10–11 | AI RAG Assistant enables AI-powered, context-aware responses in Drupal using Retrieval-Augmented Generation from site content and external data. | Apr 19, 2026 | |
| 1.0.x-dev | Dev | 10–11 | Apr 19, 2026 |