# Automatic assignment

**Note:** This feature is only available on Professional and higher plans.

Part of managing a team is distributing deals evenly among team members. With Pipedrive’s automatic assignment tool, you can set up rules to handle this automatically.

[Video](https://play.vidyard.com/kyDf5MqMdwHfLoh8nC9Hfk)

* * *

## **Where to find the automatic assignment tool**

**Note:** Automatic assignment setup is only available for users with deals app admin permission enabled.

Click the ****”**...”** to open the navigation sidebar on the left-hand side of your screen or go to **Settings.**

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-04%20at%2012.54%20copy.png)

Both of these pathways will lead you to the feature page, where you can start configuring automatic assignment rules.

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-04%20at%2013.15.03.png)

* * *

## **How to set up the automatic assignment tool**

**Note:** You can add up to 50 rules per entity type (lead added, deal updated, etc.)

Click on **”****\+ Rule”** to create a new automatic assignment rule.

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-04%20at%2013.23.00.png)

Select the item (lead or deal) and the events that will follow the rule.

**Deal**

-   Deal added – Assign new deals to specific owners
-   Deal updated – Assign an existing deal to an owner after it has changed pipeline or stage

**Lead**

-   Lead added – Assign new leads to specific owners  
    

![](https://kb-cms.pipedriveassets.com/Screen%20Capture%20on%202023-04-04%20at%2013-37-58.gif)

Then, you need to define the **conditions** for that rule. Conditions are filters that an opportunity (lead or deal) must meet in order to be assigned to an owner.

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-04%20at%2014.19.40.png)

**Note:** Rules must have at least one condition. You can add up to two condition sets and 160 conditions per set.

Once the conditions are specified, you need to select an **assignee** **type** and **assignee**.

There are four assignee types you can choose from:

-   **User** – Selects a single user on your account to assign newly created deals to
-   **Team** – Selects a team on your account and uses a round-robin to distribute newly created data between its members
-   **Organization owner** – If the lead or deal already has an existing organization linked to it, you can assign the lead or deal to the existing organization owner
-   **Person owner** – If the lead or deal already has an existing contact person linked to it, you can assign the lead or deal to the existing contact person owner

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-06%20at%2011.33.01.png)

**Note:** Team assignment requires the [Teams](https://support.pipedrive.com/article/teams) feature, which is only available to users on the Professional and higher plans.

In the next step, you need to configure the rule settings. You’ll see a field for the rule name (required) and description (optional). Check the **“Set active**”**** box and **save** the changes.

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-06%20at%2013.21.09.png)

* * *

## **Managing your rules**

If you’ve created two or more rules, you’ll need to define each rule’s priority. Click on **“Set Priority”** and set the preferred order using the **＝** icon.

![](https://kb-cms.pipedriveassets.com/Screen%20Capture%20on%202023-04-06%20at%2015-15-12.gif)

**Note:** The first rule in the list is considered the highest priority.  

When a new deal is created, the feature will try to match it against the first rule on the list. If the criteria doesn’t match, it will move through the rules until a match is found.

* * *

## **Checking the assignment history**

In the **“History”** tab you can find the logs for the leads and deals and their status.  

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-06%20at%2015.52.29.png)

**Note:** Columns are sorted from newest to oldest by default.

In this view, you can see:

-   Whether any of the rules were triggered
-   The user the item was assigned to
-   What time the assignment tool processed the newly created item

You can filter your logs by specific dates like **all**, **today** and **yesterday****.** Additionally, you can apply filters based on entities and events.

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-06%20at%2016.59.30.png)

**Note**: Automatic assignment history is stored for seven days.  

* * *

## Why is my assignment rule failing?

If you click on the **”Not assigned”** tab, you will find a list with all the leads and deals that were not automatically assigned to an owner.

![](https://kb-cms.pipedriveassets.com/Screenshot%202023-04-06%20at%2017.26.29.png)

The reasons why an assignment rule could fail are the following:

-   **User not found** – the user defined as assignee doesn't exist or is inactive
-   **No user in the team** – none of the users in the team defined as assignees were able to receive the deal or lead ownership
-   **Error** – unknown error

For rules with **person owner** or **organization owner** as the assignee:

-   **Organization not found** – the deal or lead didn’t have an organization linked
-   **Organization ID not found** – the organization doesn’t exist or is inactive
-   **Person not found** – the deal or lead didn't have an entity person linked
-   **Person ID not found** - the person doesn’t exist or is inactive

If you’re having unexpected errors with assignment rules, please [contact our support team](https://support.pipedrive.com/contact-us).
