Set up workstreams for record routing

Completed

A workstream is a container that helps enrich, route, and assign work items to the correct queues and agents. A workstream can be one of the following types:

  • Messaging - To route conversations from live chat, text, and social channels.

  • Record - To route records, such as case, email, or activity.

  • Voice - To route calls that are made to the listed support numbers. 

Essentially, a workstream is a collection of routing rules. Routing settings define how records should be routed to queues. Work distribution settings define how conversations should be allocated to agents within a queue.

In Customer Service admin center, you can create workstreams by selecting Workstreams in the Customer support section. When you create a workstream, you'll need to define the following components:

  • Name - A simple name that will be used to identify the workstream.

  • Type - Specifies the type of records that the workstream will be handling. It can be set to Messaging, Record, or Voice.

    Based on the option that you select, more fields might display. For example, selecting the Messaging option will display a dropdown menu where you can select the type of channel that the workstream will be used with.

  • Work distribution mode - Defines how items in the workstream will be distributed to agents. Two options are available:

    • Push - Conversations will be sent to agents automatically through a screen pop.

    • Pick - Conversations will be sent to agents when they select a conversation from the open work items in the agent dashboard.

The following screenshot shows an example of a workstream that will be used to automatically distribute case records to agents. In this example, because Record was selected for the type, a record type dropdown menu will display, where you can specify the type of record that you want to work with.

Screenshot of the Create a workstream page.

Set up intake rules (record workstreams only)

Unlike workstreams for messaging or voice channels, which will typically have a dedicated channel set up for them, record-based workstreams also include an intake rule option. The reason is because records can be created in multiple ways, and the system needs to know which workstream to direct the record to. Intake rules for a record help you determine which workstream to select for assigning an incoming work item. For example, cases that are created for customers with a support contract might be sent to a contract workstream, where they'll be routed to the correct queue before they're routed to an agent. You can create intake rules independently, and you can also map them to basic routing rule sets. However, on any workstream details page, only those intake rules that are mapped to the workstream will be displayed.

You can create intake rules by selecting the + Create rule button under the Intake rules section of the workstream.

In the Create intake rule dialog, enter the following information:

  • Rule Name - A simple name that will be used to identify the rule.

  • Conditions - Define the specific conditions that are used to determine whether the intake rule applies.

    • Conditions can evaluate fields from the case record or from related records in many-to-one, one-to-many, and many-to-many relationships, such as the customer account.

    • You can use multiple AND/OR conditions in a single rule item.

  • Map to - Defines the workstream or basic routing rule set that you want the record to be sent to.

The following screenshot shows that the intake rule will route any cases where the Origin field is set to Email to the Contoso case workstream.

Screenshot showing the Create rule dialog.

Set up routing rules

After work items are processed by a workstream, the next step is to route the incoming items to the appropriate queue so that they can be assigned to an agent. You can complete this process by creating work classification and route to queue rules.

Screenshot showing a sample case workstream.

Work classification

In unified routing, work classification lets you define rules to add detailed information to incoming work items that can be used to route and assign the work items optimally. You can create work classification rules by using the manual declarative decision list or by using machine learning models.

You can create a work classification rule set from within a workstream. Select + Create ruleset from a workstream to open the dialog, as shown in the following screenshot.

Screenshot of a workstream with the Create ruleset button.

When creating a rule set, you can select one of the following options for the rule type:

  • Logical - Rules that use capacity profiles, skills, or attributes of the routed record.

  • Machine learning model - Use machine learning models to help classify work items. You can choose from one of the following options: Skill identificationSentiment prediction, or  Effort estimation.

For more information, see Configure work classification rulesets for unified routing.

Route to queues

Queue routing rules will send the work item to the appropriate queue. For example, you might create a routing rule that routes any case where the service level on the case is set to Gold to a Gold queue.

Important

While they're highly recommended, queue routing rules are optional. If no rules are defined, or if no rules match, then the incoming work item will be routed to the default queue of the respective channel type.

For a workstream, the route-to-queues rule set is run after all work classification rule sets are run. A workstream can have only one  route-to-queues rule set.

You can create a route-to-queues rule set from within a workstream by selecting the + Create ruleset button. Setting up rule sets is similar to setting up intake rules.

The rule set will contain the following items:

In the Create intake rule dialog, enter the following information:

  • Rule Name - A simple name that will be used to identify the rule.

  • Conditions - Define the specific conditions that are used to determine whether the intake rule applies.

    • Conditions can evaluate fields from the case record or from related records in many-to-one, one-to-many, and many-to-many relationships, such as the customer account.

    • You can use multiple AND/OR conditions in a single rule item.

  • Route to queues - Defines the queue that the item will be set to.

The following image shows an example of a routing rule that is sending Gold cases to the Gold queue.

Screenshot showing a Route to queues rule set.

For more information, see Configure route-to-queues and rulesets and rules.