Create automation rules

Updated Nov 28, 202610 min read
English
On this page

Automation rules run actions for you when a conversation or a ticket matches your conditions. You manage them under Settings > Automation, on the Startup, Business and Enterprise plans.

How a rule works

Settings > Automation with 2 active rules, Route wholesale requests and Flag refund requests, each with its When and Then lines and an Active switch

Every rule has 3 parts:

  • Event trigger: when the rule checks a conversation.
  • Conditions: what must be true. All conditions of a rule must match.
  • Actions: what Deskwoot does when they match. Several actions run in the order you added them.

For example: when a conversation is created with priority Urgent, assign it to the Support team and add the label escalated.

When several rules match the same event, all of them run, starting with the oldest rule. A rule only reacts to events that happen after you save it and never goes back over earlier events. Time rules are the one exception, because they look at every open and pending conversation.

Which event to pick

  • Conversation Created: a customer starts a conversation, on any channel. It never runs for a conversation your team starts, such as a campaign or a new conversation an agent writes.
  • Conversation Updated: a conversation changes, for example its status, priority, team or a custom attribute value, and when it is resolved or reopened.
  • New message: a new message in a conversation. That includes agent replies and private notes, so add the condition Message Type is Incoming to react to customer messages only. When a customer starts a conversation, rules on Conversation Created and on New message both check it.
  • Time Passed: a conversation has waited the hours or days you set, counted from its creation, its last activity or its last status change. Time rules explains them in detail.
  • Linked Issue Changed: an issue in Jira or Linear is raised from a ticket or linked to it, unlinked, or changes its status. It runs on tickets only, so the rule needs the condition Type is Ticket.

You see Linked Issue Changed while tickets are switched on and Jira or Linear is connected. See the guides for Jira and Linear.

Create a rule

The rule Flag refund requests: it runs on New message, with the conditions Message Type is Incoming and Content contains refund, and the actions Add Label refund and Change Priority High
Every incoming message that contains refund gets the label refund and high priority.
  1. Open Settings > Automation and click Create rule.
  2. Under What is the rule called?, enter a Name, for example "Escalate VIP conversations", and an optional Description.
  3. Under When does it run?, pick the event.
  4. Under What must match?, pick a field and a value. Click Add condition for more.
  5. Under What happens then?, pick an action and its value. Click Add action for more.
  6. Leave Active switched on and click Create rule.

A rule needs at least one condition and one action. It works from the next matching event on.

Start from a template

From a template next to Create rule opens a ready made rule in the editor. Nothing is saved until you check it and click Create rule. You only see the templates your workspace has everything for:

  • SLA for tickets with High priority gives new tickets with High priority an SLA policy. It needs tickets and the SLA policies of the Enterprise plan, and you need to be an administrator. Pick the policy before you save.
  • Issue raised or linked: set the ticket status and Issue done: hand the ticket back need tickets and a connected Jira or Linear. Pick the ticket status before you save.

A template that one of your rules already uses says in use next to its name. The SLA Policies page and the Jira and Linear pages under Settings link to the same templates.

Conditions you can use

  • Status, Priority, Label, Inbox, Team and Assignee: the rule matches when the conversation has the value you pick.
  • Message Type: Incoming (from the customer) or Outgoing (from your side). Useful with New message.
  • Content: matches when the message contains the text you enter, no matter the upper or lower case.
  • Private note: Yes when the new message is a private note, No when it is not. Only rules on New message have it.
  • Type, Category and Ticket status: offered while tickets are switched on. Type is Conversation or Ticket. Category and Ticket status take is or is not, and Ticket status only works on a rule for tickets.
  • Custom attributes (Business plan and up): your custom attributes are listed under Conversation attributes and Contact attributes. You also pick an operator such as is, is not, contains, is more than, is after, is set or is not set. An empty attribute only matches is not set.

Time rules and rules on Linked Issue Changed run on no message, so they cannot check Message Type or Content.

Actions you can run

  • Assign Agent and Assign Team (teams come with the Business plan).
  • Unassign: lets go of the conversation, as Unassign in the conversation does. Round robin never gives it back to the agent who had it, and a ticket waits unassigned.
  • Add Label and Remove Label.
  • Change Status and Change Priority.
  • Mute Conversation, which needs no value.
  • Send Message: sends your text to the customer as a reply in the conversation. It is marked as automatic and does not end the customer's wait for a person. A rule never writes into a group chat.
  • Send Email: emails your text to the contact's email address, with the subject "Message from support". It only works in inboxes that send through their own SMTP settings or through a Microsoft mailbox you connected.
  • Add Private Note: writes a private note with your text, up to 4,000 characters. It tells the people you pick: Notify nobody, Notify the assignee, Notify the team or, on a rule for tickets, Notify the ticket creator. The note shows the rule's name as its author and starts no other rule.
  • Assign Ticket Creator: hands a ticket to the person who created it. Only on a rule for tickets. On a rule for Linked Issue Changed it reads Assign back to, and you pick Ticket creator or Whoever linked the issue.
  • Set Ticket Status: puts a ticket into one of your own ticket statuses, which you add under Settings > Tickets. Only on a rule for tickets.
  • Apply SLA Policy: gives the conversation or the ticket an SLA policy of its own, or takes it away with Remove own policy. It needs the SLA policies of the Enterprise plan, and only administrators see it. Tickets only get an SLA this way, see SLA policies.

Many actions leave a line in the conversation that names the rule, for example Automation rule "Escalate VIP conversations" moved the conversation to team Support.

Rules for tickets

With tickets switched on (Enterprise plan), a rule runs on tickets only when it has the condition Type is Ticket. Every other rule, including every rule you wrote before tickets, runs on customer conversations only. On a ticket:

  • Conversation Created runs when a ticket is created or filed, Conversation Updated when it changes, and New message for each internal comment.
  • On a rule for tickets only, the editor calls these events Ticket Created, Ticket Updated and Internal Comment Added. The actions read Mute Ticket, Change Status (Open, Pending, Resolved) and Add Internal Comment.
  • A ticket never writes to the customer, so a rule that can run on tickets cannot have Send Message or Send Email. The editor says so and refuses to save it.
  • A ticket has no inbox and no message type, so a rule for tickets only cannot check Inbox or Message Type.
  • A Category condition without Type only meets conversations. The editor reminds you to add Type is Ticket.
  • Conversation Created also runs on every ticket that is filed when a chat is resolved, and that ticket is resolved already. To hand out only new work, add the condition Status is Open.
  • Assign Team keeps the ticket's agent and moves the ticket into the team. A ticket nobody holds waits in the team's folder, because round robin never hands out tickets.

Edit, pause or delete a rule

The list on Settings > Automation shows each rule with its event, its actions and an Active switch.

  • Click a rule (on a phone: Change) to open it with its event, conditions and actions. Change what you need and click Save.
  • The Active switch pauses a rule without deleting it. Switch it on again when you need it.
  • Delete removes the rule at once. Undo in the message that appears brings it back within 10 seconds.

A rule you brought in with an import can have a condition the form cannot show, such as another operator or several values. That condition is marked Imported and stays exactly as stored until you change that row. The help icon next to it explains why.

Who can manage rules

Administrators, and members whose custom role has the permission Manage automation rules. Custom roles come with the Enterprise plan. Only administrators can save a rule with Apply SLA Policy, or change one that has it.

When your plan no longer includes rules

After a downgrade, when a trial ends or when a subscription stops, every active rule is paused and every administrator gets an email. Your rules stay listed, so you can edit, switch off or delete them.

Creating a rule or switching one on needs Startup or higher again, and nothing switches itself back on after an upgrade. More in paused features after a downgrade.

Frequently asked questions

Which plans include automation rules?

Startup, Business and Enterprise. The Hacker plan has no automation rules. There is no limit on the number of rules, but at most 100 time rules can be active at once. A rule can have up to 50 conditions and 50 actions. Rules for tickets need the Enterprise plan, because tickets come with it.

Do rules work on existing conversations?

Only when something new happens in them, such as a status change or a new message. Rules never go back over past events. A time rule is different: it acts at once on every open and pending conversation that already qualifies.

To change many existing conversations at once, select them in the conversation list and use the bulk actions.

Why didn't my rule run when I added a label?

Adding or removing a label does not start a rule. Conversation Updated runs for changes such as a new status, priority, team or custom attribute value, and when a conversation is resolved or reopened.

What if two rules match the same event?

Both run, the older rule first. If one assigns the conversation to team A and the next to team B, it ends up with team B. Rules cannot be put in a different order, so keep their conditions from overlapping.

Can a rule start another rule?

Only one way: a rule that resolves a conversation counts as a conversation update, so rules on Conversation Updated check it next. Other actions do not start rules, and a private note from a rule starts none either.

Why does my rule not run on tickets?

A rule runs on tickets only with the condition Type is Ticket. Without it, the rule stays with customer conversations, so rules you wrote before tickets keep doing exactly what they did.

Was this guide helpful?

Keep reading

Still need help?

Fynn answers from these guides in the chat, and you can reach the team there too.