# العمل مع الموظفين

## لإشعار موظف

**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/369d726eccb3348c500da1f9222148c6c5b16e84" alt="" width="563"><figcaption></figcaption></figure></div>

إذا كنت بحاجة إلى إرسال بريد إلكتروني إلى موظف محدد، يمكنك تمرير `users` المعلمة كما يلي:

<div data-with-frame="true"><figure><img src="/files/f0bff12325ab2b87b6d4d7558511326bf9d7b44d" 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('نص الإشعار', 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/ar/chatbot/functions/alaalh-alhasbh/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.
