> For the complete documentation index, see [llms.txt](https://userguide-en.chatsmart.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://userguide-en.chatsmart.io/using-the-platform/assignment-rule.md).

# Assignment rule

Automatic assignment rules allow you to better manage conversations. Continue reading to learn more about assignment rules.

To automatically assign a conversation to designated teammates, you should go to the setting > Assignment Criteria section to build the bot flow. You can assign the conversation according to

1. Tag assigned: The message will be assigned to the agent according to the tag you set.
2. Messages contains:  If the text you set appears in the message, the conversation will be assigned to the agent you selected.

You can assign the conversation to:

1. Random: Conversations are randomly assigned to agents or not assigned to agents who are removed from the assignment list
2. By sequence：Conversations are assigned to selected agents in an ascending order
3. Agent: Conversations are assigned to selected agents only

Assign conversations according to tags

**Please follow the steps below to assign conversations based on tags:**

1. Click "Add new rule"
2. Enter the name of the assignment rule and click "Tag Assigned"
3. Click "Add" after selecting the tag
4. Select the assignment rule and the responsible agents
5. Click "Add"

**Assign conversations according to message contains**

Please follow the steps below to assign conversations based on message contains:

1. Click "Add new rule"
2. Enter the name of the assignment rule and click "Message contains"
3. Enter the text to match and then click “Add”.&#x20;
4. Select the assignment rule and the responsible agents
5. Click "Add"

![Add new rule](https://lh5.googleusercontent.com/2m5K8XwNbnT-eYrDy_o4MQNtOcUJcX8ZpOrRq7hWszHvcp9Q6H111yyzFc1XP5gdgsWZiGsy8Qh2BTCvGaxV3CkHxKvHbendxLp4j_RjzZ0pb30ioQ0n47xzfnCSUIaOwQ)

**Editing and deleting assignment rules**

Apart from creating the assignment rules, you can also modify or delete them. Go to **Settings** ![](https://lh3.googleusercontent.com/ijmoDmji5IC2ucQU1bBdLmjyYQMWhTPhqAMyejywgVCvAOY0mObxbfrpvkr0JZDkgzFLmiNEyyFPr0S6M575ZO14JRRGAtguDCmvGq_6th00QMZZKeRtSOPWCj-J9IqFdw) **> Assignment**![](https://lh4.googleusercontent.com/cCi2xX1HNXNVzq6TWTHnOYwTa40LacfvzSmYlFWuFGpdjCL0eRJNdEMFfZtsKELgr0uLvbz9XgTIchuVuU9C-stwgqP8OTRoGF0eDT9Px76LRKwxtsXlwA3lqbUXuy4fMg) **rules**. Click ![](https://lh4.googleusercontent.com/cCi2xX1HNXNVzq6TWTHnOYwTa40LacfvzSmYlFWuFGpdjCL0eRJNdEMFfZtsKELgr0uLvbz9XgTIchuVuU9C-stwgqP8OTRoGF0eDT9Px76LRKwxtsXlwA3lqbUXuy4fMg) **to update the name, the assignment rule and the assignee. Click**  ![](https://lh4.googleusercontent.com/XsG8wwNQNsd1Jh4t6fMpnZ1fUP3Pc8OLDpymNKxxBsESlQG_1lIVzQfs-ydzKgSgpVMpMttp0MCcq3V_nUhKbIoD8fOVW6YN77F-eeq33bV-Nk2rFHTYaSJby3N-Grhepw) to remove the assignment rule

![Remove the rule](https://lh4.googleusercontent.com/E5Jiin4rYDB7MetMnj5itF-VSFCaZggsw-gMCHllR3x8hD2ItwlSYeGDLVS118LIdtInjK3NxHDNg_TEOOdY4MF6Dl6UStz3koeuCPsXxe3JqjYZPW95Xdll9csRZF85ag)
