# Робота зі співробітниками

## Для сповіщення працівника

**send\_notification(text, users, priority) -** надсилає сповіщення зазначеним працівникам.

Параметри:

<table><thead><tr><th width="167.875">Параметри</th><th>Значення</th></tr></thead><tbody><tr><td><mark style="color:red;"><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/8883994012be0d3f2c91f9c1faac25dfa33d46b9" alt="" width="563"><figcaption></figcaption></figure></div>

Якщо вам потрібно надіслати електронний лист конкретному працівнику, ви можете передати `users` параметр так:

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

{% hint style="info" %}
Сповіщення, отримані з цього методу, можна керувати в налаштуваннях сповіщень у розділі "Chat bot".
{% endhint %}

</details>

<details>

<summary>Приклад коду для копіювання</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/uk/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.
