# Employees

## What is a role in MaviBot?

Several employees can work within the same project, each with their own assigned role.

<figure><img src="/files/PV2LOiIAYp22Bck6l9vI" alt=""><figcaption></figcaption></figure>

A role is a set of rights that allows a user to view and modify different sections of an application.

By default, you can use three roles: Administrator, Editor, and Operator. The rights of these roles are not editable.

<figure><img src="/files/cd3gg9kf67QPR01Y4r8n" alt=""><figcaption></figcaption></figure>

A user with **Administrator** or **Project creator** rights can create a new custom role.

<figure><img src="/files/mGow2aR8kM3blJhv45Ws" alt=""><figcaption></figcaption></figure>

According to the distribution of rights, the following can be noted:

**Editor:** Creating and editing funnels (customers have the ability to resend error messages). Create and edit transactions in CRM; create and edit tasks, lists, newsletters, and mini landing pages; have access to analytics.

**Operator:** Create and edit transactions in CRM; create and edit tasks, lists, newsletters, and mini landing pages; have access to analytics.

**Custom or Configurable role:** By default, only your clients are visible. There is no way to delete clients. It is possible to create a task and edit it. And the same goes for mailing lists.

**Administrator:** can do anything

There is also a "Project owner" role:

<figure><img src="/files/AawfgWmhOPFgvV7QpLSB" alt=""><figcaption></figcaption></figure>

The **Project owner** has all administrative rights, and he cannot be removed from the project by other administrators. ***Also, he cannot change access rights in the project, but only he can assign another owner.***

### How to create a new role?

The **Project owner** or **Administrator** can create a "custom role" and then assign this role to other users (employees)

<figure><img src="/files/cK9mqdgRbtnASCeq21KX" alt=""><figcaption></figcaption></figure>

Any name can be set for the new role.

To create a role, go to the **"Roles"** tab:

<figure><img src="/files/Yr79iJCRcz7d3sTXnyDi" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0QIBVbj4PeNTJozA7dGF" alt=""><figcaption></figcaption></figure>

The menu provides basic sections that can be configured when creating a role:

<figure><img src="/files/twPi4LFdZeGQed6qSUtj" alt=""><figcaption></figcaption></figure>

If access to any section is denied, it will no longer appear in the main menu, and you won’t be able to access it.

For example, the **Operator** role does not have access to the chatbot builder, AI assistant, online courses, or project settings.

<figure><img src="/files/IbT0NlRufML6ZEk09OwB" alt="" width="203"><figcaption></figcaption></figure>

There are 3 ways to configure sections: **"Unavailable"**, **"View only"**, **"View and edit"**:

<figure><img src="/files/xqlNivwtuld1dY1CfRQ3" alt=""><figcaption></figcaption></figure>

**Unavailable** means that access to viewing and editing the selected section is completely restricted.

**View Only** - This will only allow you to view the section, without the ability to make any changes.

**Viewing and editing** means full access to the section.

It is important to note that access to viewing or viewing/editing can be granted in the context of project sheets:

In the **Analytics** section, you can configure a custom role so that only certain tabs are available to the employee:

<figure><img src="/files/9GJqKqHfbvJR1GNvslvy" alt="" width="563"><figcaption></figcaption></figure>

### Tasks section

When the toggle switch is active “**View other people's tasks**” the user will be able to see not only their own tasks, but also tasks assigned to other users, as well as tasks without users (free tasks).

When the toggle switch is inactive “**View other people's tasks**” the user will only be able to see their own tasks. When the Task Editing toggle is active, the user will be able to edit and delete all available tasks.

### Customers section

<figure><img src="/files/tYsq6p1c8Ob3XuK511Li" alt=""><figcaption></figcaption></figure>

When the "**Messages can be deleted**" checkbox is active, the user will be able to delete messages in the bot's customer card.

When the checkbox is active “**View other people's customers**” the user will be able to see his customers and customers of other users.

When the checkbox is active “**Viewing free customers**” the user will be able to see his and free customers.

When the checkbox is active “**Viewing the messenger ID**” the user will be able to see the customer's messenger ID in the client's card.

When the **"Customer interaction"** checkbox is active, the user will be able to: write messages to customers, edit, delete correspondence, edit client data (photo, name, etc.), block or delete a customer, assign a customer to himself, transfer, move a customer.

If the **"Customer Interaction"** checkbox is inactive, actions aimed at communicating with the customer will not be available.

When the **"Limit csv database upload"** checkbox is active, the user will not be able to upload data.

### Variables section

<figure><img src="/files/OQ2nFsUpmJ1koNdPUlo0" alt=""><figcaption></figcaption></figure>

When the checkbox is active “**Viewing customer variables**” the user will be able to see customer variables:

<figure><img src="/files/K095cJtP3zU2ep0dyVe7" alt="" width="375"><figcaption></figcaption></figure>

The checkbox works the same way as “**Viewing transaction variables.**”

**Activating/deactivating** the display of variables affects the display of variables in other sections of the application.

## How to change the project owner

To change the project owner, go to the project settings:

<figure><img src="/files/I45XnDWI1TBc4AaGxeql" alt="" width="133"><figcaption></figcaption></figure>

{% hint style="info" %}
Only the current owner can reassign the project owner.
{% endhint %}

Then find the "Project Owner" line in the "Basic Settings" tab:

<figure><img src="/files/Qxtd4XBvK7hfIEQ4gSR6" alt="" width="375"><figcaption></figcaption></figure>

Click on the **"Project Owner"** line and select from the drop-down list the email of the employee who will be assigned as the owner of the project:

<figure><img src="/files/2sapMCxvY23gv4Rn3G7O" alt=""><figcaption></figcaption></figure>

Then make sure to click **"Done"** at the bottom of the screen:

<figure><img src="/files/OSzMiTPO8VLR9L9VI913" alt=""><figcaption></figcaption></figure>

After that, the page will be updated and the former owner of the project will lose the line for changing the owner:

<figure><img src="/files/drwjfFfu2UFfobO9iJLZ" alt=""><figcaption></figcaption></figure>

## Assigning roles to a user (employee)

After creating a role, any project employee can be assigned to it. Depending on the permissions and access rights of the configured role, the user will be able to view only those sections of the application that were previously defined.

<figure><img src="/files/vEfPFhwVnNQMB6xr3Kl7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rE0QBl1DDkVUdHkvQDAt" alt=""><figcaption></figcaption></figure>

To assign a role to a newly added employee, select a role in the modal window:

<figure><img src="/files/JpjiDvveeBXanQ4T4R1A" alt=""><figcaption></figcaption></figure>

You can also assign a role to a user who has already been added to the project by editing an employee's profile:

<figure><img src="/files/ENH3d2E6hhQk1C6fZ4l0" alt=""><figcaption></figcaption></figure>

And select the required role:

<figure><img src="/files/JpjiDvveeBXanQ4T4R1A" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Done!**
{% endhint %}

### Deleting roles

Before deleting the role you created, you need to undo its binding to employees: this is done in the same way as configuring roles for employees in their profile in the project.

Then go to the role card and click **Delete.**

<figure><img src="/files/SCt9lZ281Ofqfkb51BNg" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Please note!

Deleting the role you created is not possible if it is assigned to one of the employees.
{% endhint %}

<figure><img src="/files/BuLiWanqlIHMzNJNEKwB" alt=""><figcaption></figcaption></figure>

## Automatization

Using the **"Automation"** tab in the **"Employees"** section, you can set up automatic distribution of clients in a project by added employees:

<figure><img src="/files/SzHpVq3nPI4geP6uwUkX" alt=""><figcaption></figcaption></figure>

<mark style="color:red;">**To enable lead auto-assignment, the "Enable" checkbox must be selected.**</mark>

<figure><img src="/files/5e3dL6su4ZOObUJiMazq" alt=""><figcaption></figcaption></figure>

After activating the checkbox, the automatic distribution of clients by operators will start working in the project. And then you can select the following settings:

1. Working hours

<figure><img src="/files/btL2tbIUrUvstxhx94BL" alt=""><figcaption></figcaption></figure>

A round-the-clock period can be selected for the operation of the distribution function, that is, continuous automatic distribution between operators:

<figure><img src="/files/QyVQJxVrUJIXMIxiI2kO" alt=""><figcaption></figcaption></figure>

Then you won't need to configure the time interval for the distribution to work.

You can also set the working hours by selecting the required intervals:

<figure><img src="/files/gPQ3wTcbmBX0jsq0Hc5I" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
In the "Analytics" section (in the "Operators" tab), the "Average response time by day" statistics are taken into account only for the employee's working hours.

For more information about operator statistics, see the article ["MaviBot Analytics".](https://docs.salebot.pro/analitika/analitika-salebot#operatory)
{% endhint %}

2. Operators settings

<figure><img src="/files/onZXtm3hRMHwvLrcAZVJ" alt=""><figcaption></figcaption></figure>

This settings menu will help you choose how the automatic distribution of clients will be carried out, as well as add other necessary settings. For example, you can set that the client is not distributed among operators if the bot responds; remove the operator from the shift at the end of the working day, and so on. It always depends on the needs of your project.

## Video tutorial "How to work with roles"

{% embed url="<https://youtu.be/mo19XGzEDR8>" %}


---

# 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/us/admin/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.
