> For the complete documentation index, see [llms.txt](https://docs.saleschat.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saleschat.pro/application/teams.md).

# Teams

Group human agents into teams, give each team managers, and control what those managers can see and change.

A team is a named group of human agents in your organisation. Each team has **managers** and **members**. Managers can view their members' chats, reassign their leads, and see how they're performing on [Team Performance](https://docs.saleschat.pro/application/team-performance.md). Teams also decide who receives leads in [assignment handlers](https://docs.saleschat.pro/application/teams/operations.md#assignment-handlers).

This section has three pages:

* [Set up teams](https://docs.saleschat.pro/application/teams/setup.md): create teams, add managers and members, and choose what Managers can change.
* [Operations](https://docs.saleschat.pro/application/teams/operations.md): view chats, reassign leads, and route leads to teams.
* [Analytics](https://docs.saleschat.pro/application/teams/analytics.md): Team Performance and Response Delays.

## Team roles and org roles

Saleschat has two separate sets of roles, and both use the words "manager" and "member":

* **Org role** is set per user in **User Management**: Owner, Admin, Manager, or Member. It decides what the user can do across the whole organisation.
* **Team role** is set per team: a user is a manager or a member of that team. One user can hold different team roles in different teams.

The two combine as follows:

| Org role     | Can be a team member | Can be a team manager | Can edit teams                                                                                                            |
| ------------ | -------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Owner, Admin | Yes                  | Yes                   | Every team, including delete                                                                                              |
| Manager      | Yes                  | Yes                   | Depends on the [team management settings](https://docs.saleschat.pro/application/teams/setup.md#team-management-settings) |
| Member       | Yes                  | No                    | No                                                                                                                        |

{% hint style="info" %}
Being a team's manager doesn't make someone a member of it. Add them as a member too if you want leads routed to them through that team.
{% endhint %}

## Nested teams

A team can have other teams as members. Use this to build a hierarchy, for example a **Sales** team whose members are the **North** and **South** teams.

* **Members of a team** are its direct members plus the members of every team nested inside it, at any depth.
* **A manager of a team** manages all of those members. A manager of **Sales** can view and reassign the chats of everyone in **North** and **South**.
* Rights don't flow upwards. A manager of **North** gets no rights over the direct members of **Sales** or over **South**.
* Managing a parent team doesn't let you edit the nested teams. To rename **North** or change its members, you need rights on **North** itself.

{% hint style="info" %}
**A team can't end up inside itself.** Saleschat blocks any change that would create a loop, such as adding **Sales** to **North** when **North** is already inside **Sales**, or making someone a manager of a team that contains a user who manages them. The error names the team or user causing the loop.
{% endhint %}

> **Does a manager of Sales manage the managers of North?**
>
> Only if those managers are also members of **North**. A manager isn't a member of the team they manage unless they're added as one.

> **Can a member of North be made a manager of Sales?**
>
> No. They'd be managing a team they're already inside, which is a loop. A direct member of **Sales** can be made its manager.
