> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/reference/projects/mutamad_ai_chatbot.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Mutamad AI Chatbot

A chatbot that answers visitors in Arabic or English from the site's published pages only, on the entity's own model server.

{% hint style="info" %}
**Machine name:** `mutamad_ai_chatbot` · **Type:** Module · **In Mutamad:** Not in Mutamad by default: added with Composer
{% endhint %}

A chatbot for a Mutamad site, after DGA's Chatbot Template: a visitor asks in Arabic or English and gets a short answer written only from the site's published pages (Knowledge articles, Services, FAQ and Pages), with the page the answer comes from. When the site has no answer, it says so and offers the contact form. It says it is AI.

It runs on the entity's own model server through [Mutamad AI](https://www.drupal.org/project/mutamad_ai): search by meaning with AI Search and SQLite, personal numbers stopped before anything is sent, nothing stored, an hourly limit per visitor. A preview, as AI Search is still alpha. Aligned to the PDPL and SDAIA's generative AI guidelines.

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-68a206fd70787333e7e9e5c769ecef6e485141c0%2Fchatbot-en.jpg?alt=media" alt="The site assistant, after DGA&#x27;s Chatbot Template, answering from the site&#x27;s published pages."><figcaption><p>The site assistant, after DGA's Chatbot Template, answering from the site's published pages.</p></figcaption></figure>

## Requirements

* Drupal 11.4
* [Mutamad AI](https://www.drupal.org/project/mutamad_ai)
* [Mutamad Knowledge Base](https://www.drupal.org/project/mutamad_knowledge_base)
* [AI Core](https://www.drupal.org/project/ai)
* [SQLite VDB Provider](https://www.drupal.org/project/ai_vdb_provider_sqlite)
* [Search API](https://www.drupal.org/project/search_api)
* a model server
* the sqlite-vec extension and a private file path

## Installation

Mutamad is in alpha. A site started from the [Mutamad project template](https://www.drupal.org/project/mutamad_project) is ready for it; on any other Drupal 11.4 site, allow alpha releases first:

```bash
composer config minimum-stability alpha
composer config prefer-stable true
```

Set up the model server, sqlite-vec and private files first: see "Installation" in the README.

```bash
composer require drupal/mutamad_ai_chatbot
drush recipe modules/contrib/mutamad_ai_chatbot
```

## Links

* [Project page on drupal.org](https://www.drupal.org/project/mutamad_ai_chatbot)
* [README](https://git.drupalcode.org/project/mutamad_ai_chatbot/-/blob/1.0.x/README.md): every setting, and why
* [Changelog](https://git.drupalcode.org/project/mutamad_ai_chatbot/-/blob/1.0.x/CHANGELOG.md)
* [Issue queue](https://www.drupal.org/project/issues/mutamad_ai_chatbot)
