Set Up an LLM
The BlueMind solution allows users to integrate an LLM tool so that users in the field can improve or rephrase their emails using artificial intelligence.
Integration is standardized, so you can use the solution of your choice (Mistral, ChatGPT, Claude, etc.).
Configuring the LLM
To integrate an AI, go to the administration console, select the desired domain, and then go to the "AI" tab.

Configuring Endpoints
Click "Add an LLM endpoint" to open the configuration window.

Indicate:
- the name given to the LLM endpoint
- the LLM's URL
- the name of the LLM template
- the API key to access an external LLM (leave blank if the LLM is installed internally)
Click Test to verify that access is working properly.
You can add as many access points as needed—for example, to reserve an endpoint for prompt masking (see below).
Assigning Actions to LLMs
Once the LLM endpoints have been configured, specify which one to use for each action.

When no LLM is selected, the action remains visible to users in the domain but cannot be used.
When you click on the option, an error message appears:

For more details on the suggested actions, click "Show system prompt".
The "Mask Prompts" action is optional. This helps ensure the privacy and security of data transmitted to a solution outside the organization by masking personal data. Therefore, it is not necessary to enable it when the LLM is installed on-premises.
Enabling AI
In order for users to be able to use it, the AI option must be enabled for the relevant domain and for the users.
Enable for the domain
To do this, go to the "General" tab for the domain and check the "AI" box in the "Features" section at the bottom of the page.

Please note that it is also possible to limit the number of users in the domain who can use this feature.
Enable for users
For one user
This feature is enabled in the directory. Open the user's profile and check the "AI" box in the "Features" section at the bottom of the page.

For members of a group or organizational unit
The feature is enabled for members of a group or organizational unit using a bm-cli command.
For group members, run the following command:
bm-cli group features --domain <domain> (--name <nameGroup> | --uid <uidGroup>) --features AI
bm-cli or features --domain <domain> (--name <nameOU> | --uid <uidOU>) --features AI
bm-cli user features --domain <domain> (--name <nameUser> | --uid <uidUser>) --features AI
For members of an organizational unit, run the following command:
bm-cli group features --domain <domain> (--name <nameGroup> | --uid <uidGroup>) --remove
bm-cli or features --domain <domain> (--name <nameOU> | --uid <uidOU>) --remove
bm-cli user features --domain <domain> (--name <nameUser> | --uid <uidUser>) --remove
The bm-cli commands enable the feature for users who are members of the group or organizational unit at the time the command is run, not for the group or organizational unit itself.