> For the complete documentation index, see [llms.txt](https://distance.gitbook.io/distance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://distance.gitbook.io/distance/getting-started/settings/ticket-assignment.md).

# Ticket assignment

Configure automatic ticket routing rules to assign newly created tickets to the appropriate team members.

### **Introduction**

**Ticket assignment** rules automatically route newly created tickets to team members based on the AI agent that created the ticket.

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2FTPyvXF2jw0Dhzx4NSVUg%2Fimage.png?alt=media&amp;token=4dbf418d-b7d0-4bd2-9797-9956d413523e" alt=""><figcaption></figcaption></figure></div>

This helps ensure customer requests are directed to the right people, reduces manual assignment work, and keeps ticket ownership clear as new requests are received.

***

### **Creating a ticket assignment rule**

Before creating assignment rules, ensure the relevant team members are active in the Team settings.

Click **Create** next to **Ticket assignment**.

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2FovfHoNCX4YFJd2hepZ7o%2Fimage.png?alt=media&amp;token=80283268-f21b-4ebd-8100-64c4311c7678" alt=""><figcaption></figcaption></figure></div>

In the **Create assignment rule** window, enter a name and optional description.

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2FJxksxmdsYjk29IwUIJ5T%2Fimage.png?alt=media&amp;token=26e81e0d-dcf3-4215-97c3-97f1a3b462b8" alt=""><figcaption></figcaption></figure></div>

Under **When ticket is created by**, click **Add agent** and select the AI agents that will trigger the rule.

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2FteJFE8PARG13aBOWYewu%2Fimage.png?alt=media&amp;token=79f4704a-924c-45fc-84e2-ae9c2267fa80" alt=""><figcaption></figcaption></figure></div>

Under **Assign tickets to**, click **Add member** and choose the team members who should receive tickets.

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2Fvp58J2bOlR21edlSQqz4%2Fimage.png?alt=media&amp;token=64582cfc-460b-4f01-adfc-ee9ec3cf05f7" alt=""><figcaption></figcaption></figure></div>

Select a **routing type**:

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2FJAnHBcjPBruho6V150i2%2Fimage.png?alt=media&amp;token=7755d88b-cb59-44c9-9a07-aa83d75267d8" alt=""><figcaption></figcaption></figure></div>

* **All** – Assigns the ticket to every selected team member.
* **Round robin** – Assigns tickets one at a time in sequence, rotating between members.

Click **Save** to create the rule.

Existing assignment rules appear below the Ticket assignment section and can be edited or removed using the three-dot menu.

<div data-with-frame="true"><figure><img src="https://4165927833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWHGGlctFzoGEVhyOAO17%2Fuploads%2FUyR4tvFIUSsC7SwfjieI%2Fimage.png?alt=media&amp;token=28704589-b96e-43c0-a3ee-5bd894f98a0b" alt=""><figcaption></figcaption></figure></div>
