If you have dedicated team members for different types of queries or customers, you can automatically assign tickets to them. Follow the steps below to automatically assign tickets on DelightChat:
1. Go to [Automation Rules] from the Settings menu and click [+New Rule].

2. Next, enter the name of the rule and switch the rule on
3. Under “When”, select the channels that you want the rule to be active on, and if the rule should run on new ticket creation and/or when there is a new message on an existing ticket.
4. Select the conditions when the automation should run. In our case, we’ll use the “Message Body” > “Contains” > all the keywords for a specific tag
5. Finally, select the action under the “THEN” section by selecting “Assign to” and select a team member or team that you want to assign the ticket.

Assigning to a team: When you choose a team instead of a single member, the ticket goes to the team member who is online and was assigned a ticket least recently. This spreads tickets evenly across your online team, similar to a round-robin. If no member of that team is online, the ticket stays unassigned.
Once you’re all set, click [Save Rule].
Additional conditions in Auto-Assignment

1- Don't auto-assign if ticket already assigned
When this option is checked, the rule will not reassign any ticket that already has someone assigned to it, regardless of when or how it was assigned. The current assignee stays on the ticket.
A common example: a closed ticket gets re-opened, and you want the person who previously handled it to stay assigned. This option covers that case, along with any other where the ticket already has an assignee.
2- If the ticket is assigned already, and the currently assigned agent is offline, then auto-assign the ticket.
Suppose the agent who was previously assigned the ticket is currently offline. In such cases, if you want the ticket to be re-assigned, then select this option.
3- If there are no online agents available, then unassign the ticket.
Say it's a sunday, and none of your team members are online. In such cases, you might want the ticket to move back to the Unassigned queue so that your team can check it on Monday. Select this option for this outcome.



