# Working with employees

## For notifying an employee

**send\_notification(text, users, priority) -** sends a notification to the specified employees.

Parameters:

<table><thead><tr><th width="167.875">Parameters</th><th>Value</th></tr></thead><tbody><tr><td><mark style="color:red;"><strong>!</strong></mark> text </td><td>required parameter; the notification text.</td></tr><tr><td>users</td><td>optional parameter; a list of employee emails in the project to whom the notification should be sent in a messenger.<br>If not specified, the notification will be sent to all employees.</td></tr><tr><td>priority</td><td><p>optional parameter that specifies the notification priority.<br>Possible values:</p><p>0 - neutral (default)</p><p>1 -success</p><p>2 - warning</p><p>3 - error</p></td></tr></tbody></table>

<details>

<summary>Example</summary>

In this example, the `users` parameter is passed as an array of project employees’ email addresses.

Then, the `users` parameter is passed to the function without quotes or brackets:

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

If you need to send an email to a specific employee, you can pass the `users` parameter as follows:

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

{% hint style="info" %}
Notifications received from this method can be managed in the notification settings under the "Chat bot" section.
{% endhint %}

</details>

<details>

<summary>Code example for copying</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/chatbot/functions/calculator/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.
