> 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.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Mutamad AI

AI help for a Mutamad site's editors, from the entity's own model server only.

{% hint style="info" %}
**Machine name:** `mutamad_ai` · **Type:** Module · **In Mutamad:** In Mutamad, optional: applied when an entity needs it
{% endhint %}

AI help for the editors of a Mutamad site, from the entity's own model server, named in `settings.php`, and nowhere else:

* alternative text for images
* translation drafts that go through the approval workflow
* writing and accessibility help in the rich-text editor (spelling and grammar, summary, rewrite, translate a selection)
* "Suggest" buttons for a page's SEO title and description, topics and audiences

The AI suggests; a person decides. Every other AI provider is hidden, a request to any other server is refused before it is sent and logged, and national ID, Iqama and card numbers stop a request. Mutamad does not check where the server is: keep it in the Kingdom and the data stays there (PDPL Art. 29).

A module with its recipe.

## Requirements

* Drupal 11.4
* [Mutamad Canvas](https://www.drupal.org/project/mutamad_canvas)
* [Mutamad Editor](https://www.drupal.org/project/mutamad_editor)
* [Mutamad Multilingual](https://www.drupal.org/project/mutamad_multilingual)
* [Mutamad Roles](https://www.drupal.org/project/mutamad_roles)
* [AI Core](https://www.drupal.org/project/ai)
* [AI Agents](https://www.drupal.org/project/ai_agents)
* [AI CKEditor integration](https://www.drupal.org/project/ai_ckeditor)
* [AI Figma](https://www.drupal.org/project/ai_figma)
* [AI Image Alt Text](https://www.drupal.org/project/ai_image_alt_text)
* [OpenAI Compatible Provider](https://www.drupal.org/project/ai_provider_openai_compatible)
* [AI Translate](https://www.drupal.org/project/ai_translate)
* [Easy Encryption](https://www.drupal.org/project/easy_encryption)
* [Field Widget Actions](https://www.drupal.org/project/field_widget_actions)
* [Key](https://www.drupal.org/project/key)
* [Token](https://www.drupal.org/project/token)
* a model server that speaks the OpenAI API
* named in `settings.php`

## 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
```

Name the model server in `settings.php` first: see "Where the AI runs" in the README.

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

## Links

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