# Travailler avec les employés

## Pour notifier un employé

**send\_notification(text, users, priority) -** envoie une notification aux employés spécifiés.

Paramètres :

<table><thead><tr><th width="167.875">Paramètres</th><th>Valeur</th></tr></thead><tbody><tr><td><mark style="color:red;"><strong>!</strong></mark> text </td><td>paramètre obligatoire ; le texte de la notification.</td></tr><tr><td>users</td><td>paramètre facultatif ; une liste des adresses e-mail des employés du projet auxquels la notification doit être envoyée dans une messagerie.<br>S’il n’est pas spécifié, la notification sera envoyée à tous les employés.</td></tr><tr><td>priority</td><td><p>paramètre facultatif qui spécifie la priorité de la notification.<br>Valeurs possibles :</p><p>0 - neutre (par défaut)</p><p>1 - succès</p><p>2 - avertissement</p><p>3 - erreur</p></td></tr></tbody></table>

<details>

<summary>Exemple</summary>

Dans cet exemple, le `users` paramètre est passé sous forme de tableau des adresses e-mail des employés du projet.

Ensuite, le `users` paramètre est passé à la fonction sans guillemets ni crochets :

<div data-with-frame="true"><figure><img src="/files/328e7c9d8e699681dc0de00c8fbdabc7760e819a" alt="" width="563"><figcaption></figcaption></figure></div>

Si vous devez envoyer un e-mail à un employé spécifique, vous pouvez transmettre le `users` paramètre comme suit :

<div data-with-frame="true"><figure><img src="/files/96d4ce910b0647a86e27a39b0385d4271d25513d" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Les notifications reçues par cette méthode peuvent être gérées dans les paramètres de notification, dans la section « Chat bot ».
{% endhint %}

</details>

<details>

<summary>Exemple de code à copier</summary>

`users = ["email_one@gmail.com", "email_two@gmail.com"]`

`send_notification('Notification text', users, 1)`

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mavibot.ai/doc/fr/chatbot/functions/calculatrice/employees.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
