Understanding Routing Engine

Updated 

Unified Routing is a comprehensive system that comprises several modules to streamline the routing of cases to agents. In this article, we will explore how the routing engine works.

Components of Unified Routing

Work Queue

A work queue can be thought of as a virtual container or a holding area where cases are temporarily placed until they are assigned to agents. It provides a centralized view of all the cases that are waiting to be assigned to agents along with those cases that are already assigned. In the work queue settings, users can set the conditions on the basis of which cases can be positioned in the queue for routing.

Skills Page

In Unified Routing, skills can be understood as specific abilities or areas of expertise possessed by agents that qualify them to address particular types of customer inquiries or cases. Unified Routing allows team managers to create skills and assign them to agent/agent groups based on their specific business needs and the types of customer inquiries they receive.

Agents Page

In this section, we can see the list of agents and agent groups who are getting the assigned cases. Here, admins can add/modify the skills, capacity profiles, and voice settings assigned to each agent / agent group.

Note: You can use filters on the Agents page to filter agents based on relevant criteria such as user, call handling, dynamic group, skills, user groups, and user attributes. Additionally, a Select All functionality allows you to tick the box against a user's name to select all agents, enabling bulk actions. You can also deselect specific agents as needed.

Agent Page Filtering

The Agent page offers flexible filtering options to help you refine agent lists based on skills and performance attributes. Beyond basic skill selection, advanced filters provide granular control by applying conditions such as proficiency thresholds or specific operational metrics. This enables you to identify agents who meet precise criteria, such as possessing a specific skill with a minimum proficiency level.

Steps to Apply Filters:

  1. Navigate to the Agent page.

  2. Use the Skill filter to select the required skill (For example, Skill A).

  3. Click + Add Filter.

  4. Select + Advanced Filter from the bottom-left corner.

  5. Choose the relevant attribute (For example, Skill, Call Handling, or other available attributes).

  6. Select an operator (Greater Than, Less Than, Equal To).

  7. Enter the value (For example, proficiency greater than 60).

  8. Apply the filter to view agents matching the defined criteria.

Note: Access to this feature is controlled by DP - ADVANCED_ACD_AGENT_FILTERS_ENABLED dynamic property. To enable this feature in your environment, reach out to your Success Manager. Alternatively, you can submit a request at tickets@sprinklr.com.

Audit Trail for Scheduling Events

An audit trail is maintained for all scheduling-related actions that affect an agent’s activity, skills, or capacity. This audit ensures complete visibility by recording each key event in the agent’s activity history. The following scheduling events are audited:

  • Schedule Created – A new schedule is created for an agent.

  • Schedule Activated – The schedule becomes effective, applying the defined skill or capacity to the agent.

  • Schedule Updated – Modifications are made to an existing schedule.

  • Schedule Expired – The schedule duration ends, and the applied skill or capacity is automatically removed.

  • Schedule Removed – A schedule is deleted before its expiry.

Note: Access to this feature is controlled by DP - ASSIGNMENT_SETTINGS_SCHEDULING_ENABLED dynamic property. To enable this feature in your environment, reach out to your Success Manager. Alternatively, you can submit a request at tickets@sprinklr.com.

Capacity Configuration

In Unified Routing, we assign a default of 100 capacity points to an agent. Any case that is assigned to an agent will consume some capacity points of agent. Capacity configuration is used to define how much capacity units one case should cosnume. This is done on channel level where a channel refers to the source category from which the customer is sending message. Example of Channel -

Channel - Social Network

Channel sub category - Facebook, Twitter, LinkedIn, etc.

How Unified Routing Works?

1. Case Arrival in Work Queue

After a case is processed by the Rule Engine or Interactive Voice Response (IVR) system, it is routed to any one work queue out of many work queues for further handling. The name of the Work Queue is defined in the Rule Engine / IVR to which a case should go.

2. Positioning of Case in Work Queue

The case is positioned in the work queue based on the work queue settings and case priority rank that is set in the Rule Engine or IVR. When multiple cases are awaiting assignment with same priority, the order of the cases for assignement is decided by the sorting method set in the work queue. The two sorting options are -

1. Work Creation Time - case which is created earlier in the system will be assigned first.

2. Work Queue Assignment Time - case which is assigned earlier to the work queue eill be assigned first.

The basic criteria for this is as follows:

3. Selecting the Best Agent for a Case

After deciding the order in which the cases should be assigned to agent, the next job done by routing engine is to scrutinise every available agent and find the best agent in the work queue to assign the case to. The following parameters are checked (in the order : top to bottom) for every agent -

  • Agent Availability Status - Only the agents whose status is in the correct availability status are eligible for assignment.

  • Agent's Skills and Proficiency - Only the agents who have all the required skills are eligible for assignment. This matching of agent's skills and the required skills is based upon the Routing Type selected in the work queue. To learn about the different Routing Types, refer to this article.

  • Agent's Available Capacity - Here, the routing engine checks the capacity configuration assigned to determine how much capacity units will be consumed by the case. The agent will be eligible for assignment only when the he/she has the minimum available capacity units required by the case.

  • Last Case Assignment Time - If the routing engine finds more than one available agents with equal skills, proficiencies and available capacity points, the the agent who has older last case assignment time is preferred.

An example of how the routing flow works is shown below for Routing Type - "All Skill Matching".

4. Assignment to Agent

Once the best agent is found, the case is assigned to the agent and is removed formt he work queue. The pocess in Step 3 repeats for the next case in the queue.

The status of the assigned case is usually changed from "Awaiting Assignment" to "Assigned" by a post assignment rule which is defined in the Work Queue settings. For more use cases on how this rule can be used, refer this article. The assigned case consumes the agent's capacity as per the capacity configuration.

Snapshot of Routing Engine

To summarise the working of Unified Routing, we have Work Queues on one side which store the pending customer cases, and on the other side, we have the list of Agents who are assigned to the work queue to take up the cases.

The routing engine sorts the customer cases based on case priority and case creation time/assignement to queue time. After this, for each case, the algorithm checks the agent parameters like Availability status, Skills, Capacity and Last case Assignment time for every agent and finds the most approproate agent for case.

All the above pocess is executed repeatedly so that any new incoming case or any old pending case shouldn't be left unchecked.