mignuti / drupal-chatbot
Mignuti Chatbot for Drupal: AI chatbot trained on your own content, added to every front-end page.
Package info
github.com/mignuti/drupal-chatbot
Type:drupal-module
pkg:composer/mignuti/drupal-chatbot
Requires
- php: >=8.1
- drupal/core: ^10 || ^11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Adds the Mignuti Chatbot widget to every front-end page of a Drupal site. Mignuti Chatbot is an AI chatbot trained on your own content. You don't need to change the theme or any template: the module appends the widget loader to the bottom of each page.
Supported: Drupal 10 and 11 (PHP 8.1+). You need a Mignuti Chatbot account for the project ID and secret.
Install
composer require mignuti/drupal-chatbot drush pm:install mignuti_chatbot
Without Composer, copy this folder to web/modules/custom/mignuti_chatbot and enable the module under
Extend.
Set up
- Go to Configuration → Web services → Mignuti Chatbot (
/admin/config/services/mignuti-chatbot). - Enter the project ID (
prj_…) and secret (sec_…) from the Mignuti admin → Embed. - Save.
- In the Mignuti admin, allow your domain under Embed → Allowed domains.
| Setting | Notes |
|---|---|
| Project ID | Required. Nothing is output without a valid prj_… ID. |
| Secret | Required. Domain-bound, safe to ship on the page. |
| Consent | „Wait for consent“ (default) or „Load right away“. |
| Accent colour | Optional hex colour, overrides the admin setting. |
| Position | Bottom right (default) or bottom left. |
| Hide for logged-in users | Skip the widget for authenticated users. |
In „Wait for consent“ mode the widget loads once your cookie banner calls
window.MignutiChatbot.setConsent("granted").
Only users with the Administer Mignuti Chatbot permission can change these settings. German interface
texts ship with the module (translations/mignuti_chatbot.de.po).
How it works
hook_page_bottom() adds one <script src="https://widget.mignuti.com/v1.js" … async> tag to front-end
pages. Admin routes never get the widget. The cache metadata (config tag, route context and, with
„Hide for logged-in users“, user.roles:authenticated) keeps Page Cache and Dynamic Page Cache correct.
With the Content-Security-Policy module enabled, the module allows
https://widget.mignuti.com (script-src, connect-src, font-src) and https://api.chatbot.mignuti.com
(connect-src) in the directives your policy restricts. If you set the CSP header elsewhere, add these
origins yourself.
License: GPL-2.0-or-later. Published by Mignuti Media.