# Работа с сотрудниками

## Для уведомления сотрудника

**send\_notification(text, users, priority) -** отправляет уведомление указанным сотрудникам.

Параметры:

<table><thead><tr><th width="167.875">Параметры</th><th>Значение</th></tr></thead><tbody><tr><td><mark style="color:красный;"><strong>!</strong></mark> text </td><td>обязательный параметр; текст уведомления.</td></tr><tr><td>users</td><td>необязательный параметр; список адресов электронной почты сотрудников в проекте, которым нужно отправить уведомление в мессенджере.<br>Если не указан, уведомление будет отправлено всем сотрудникам.</td></tr><tr><td>priority</td><td><p>необязательный параметр, который задает приоритет уведомления.<br>Возможные значения:</p><p>0 - нейтральный (по умолчанию)</p><p>1 - успех</p><p>2 - предупреждение</p><p>3 - ошибка</p></td></tr></tbody></table>

<details>

<summary>Пример</summary>

В этом примере `users` передается в виде массива адресов электронной почты сотрудников проекта.

Затем `users` передается в функцию без кавычек и скобок:

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

Если вам нужно отправить письмо конкретному сотруднику, вы можете передать `users` параметр следующим образом:

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

{% hint style="info" %}
Уведомления, полученные с помощью этого метода, можно управлять в настройках уведомлений в разделе "Чат-бот".
{% endhint %}

</details>

<details>

<summary>Пример кода для копирования</summary>

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

`send_notification('Текст уведомления', 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/ru/chatbot/functions/kalkulyator/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.
