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

# Optional features

Features that are in the code base but applied only when an entity decides to.

Some features are a decision for each entity — because only some entities need them, or because they send data elsewhere. Mutamad keeps them ready but does not apply them.

| Feature          | Project                   | Status            | Why optional                                 |
| ---------------- | ------------------------- | ----------------- | -------------------------------------------- |
| e-Consultations  | `mutamad_e_consultations` | In the code base  | Only entities that consult on drafts         |
| Life journeys    | `mutamad_life_journeys`   | In the code base  | Only entities with many services in sequence |
| AI for editors   | `mutamad_ai`              | In the code base  | Needs the entity's own model server          |
| Google Analytics | `mutamad_analytics`       | In the code base  | Transfers personal data outside the Kingdom  |
| Knowledge base   | `mutamad_knowledge_base`  | Add with Composer | The chatbot's source                         |
| AI chatbot       | `mutamad_ai_chatbot`      | Add with Composer | Preview: AI Search is still alpha            |

## Applying one

"In the code base" means Composer already installed it with the site. Apply it once:

{% tabs %}
{% tab title="Recipe" %}

```bash
ddev drush recipe ../recipes/mutamad_e_consultations
ddev drush recipe ../recipes/mutamad_life_journeys
```

{% endtab %}

{% tab title="Module with its recipe" %}

```bash
ddev drush recipe modules/contrib/mutamad_ai
ddev drush recipe modules/contrib/mutamad_analytics
```

{% endtab %}

{% tab title="Added with Composer" %}

```bash
ddev composer require drupal/mutamad_knowledge_base drupal/mutamad_ai_chatbot
ddev drush recipe ../recipes/mutamad_knowledge_base
ddev drush recipe modules/contrib/mutamad_ai_chatbot
```

{% endtab %}
{% endtabs %}

Then rebuild caches (`drush cache:rebuild`), so scheduled-task jobs are created for any new module, and run `mutamad-verify`.

## e-Consultations

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-38276837820b5ee84ef32a71686031f768c0e8d7%2Fconsultations-en.jpg?alt=media" alt="The e-Consultations page"><figcaption><p>Drafts open for public comment.</p></figcaption></figure>

After DGA's e-Participation Template: a draft regulation, policy or decision open for comment between two dates, with its documents.

* A **comment form** that opens and closes with the period by itself — or a button to the national **Public Consultation Platform (Istitlaa)** in its place.
* Comments: text, an optional PDF, an optional name and email, ALTCHA; **no IP address kept**. Read by the reviewer, who writes the results, and the App Admin.
* Once it closes, the **results**.
* Listed at `/e-consultations` (open and upcoming) and `/e-consultations/closed`.

Every site already has the e-Participation hub (`/e-participation`) and its policy, linking to Istitlaa.

## Life journeys

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-e7e16a55c0490fcf261c71401ccfcbce60c0497d%2Fjourney-en.jpg?alt=media" alt="A life journey"><figcaption><p>A life journey: the services it takes, in order.</p></figcaption></figure>

After DGA's Life Journeys Template: a moment in a person's life — starting a business, having a baby — and the services it takes, in order. Each stage is a Service (another entity's service is a Service linking to that entity's platform). The journey ends with its ratings. Listed at `/life-journeys`.

## AI, analytics, knowledge base and chatbot

* [AI for editors and the chatbot](https://ispectra.gitbook.io/mutamad/site-building/ai.md)
* [Google Analytics](https://ispectra.gitbook.io/mutamad/site-building/analytics.md)
