Skill Expression Builder
You can route interactions to the most appropriately skilled agent using a skill expression or a statistical expression. Skill Expression Builder lets you create both types of expressions, which produce a result of true or false.
- For a video tutorial on defining Skills and other objects that can be used in Skill Expression Builder, see Defining Agents, Agent Groups, and Skills.
- For a video tutorial on using Skills as routing targets, see Skills-Based Routing.
Using Skill Expression Builder
Open Skill Expression Builder from the Targets property in the Target block as follows:
- If you have not already done so, connect to Configuration Server. Otherwise, when selecting a Target of Type Skill, Skill and other Configuration Database objects will not be available for selection.
- Set the Validate Skill Expressions preference.
- Opposite the Targets property, click under Value to display the button.
- Click the button. The Targets dialog box opens. An example completed dialog box is shown below.
- Click Add in the Targets dialog box.
- Click under Type and select Skill.
- Click under Name to open the Skill Expression Builder.
- Expand the Skill folder, select a Skill. An example completed dialog box is shown below.
ImportantStarting with version 8.1.450.04, single quotes are not added automatically for multi-byte characters, if not provided by the user in the expression.
You can also use variables and/or Statistics.
Valid and invalid examples are shown below.
site = 1 & english = 1 & account = 1 is not a valid expression 'site = 1 & english = 1 & account = 1' is a valid expression Because Composer is able to validate 'site = 1 & english = 1 & account = 1', it automatically adds the missing quotes site = vsite & english = vlanguage & account = vaccount is not a valid expression 'site = ' + vsite + ' & english = ' + vlanguage + ' & account = ' + vaccount is a valid expression
The statistic name in a skill expression can be any agent statistic used in URS function SData, which returns the current value of the statistic for a given target. For example, you may wish to have URS return the number of interactions waiting, so that if a target is not available, the caller will hear the IVR announce the number of interactions ahead of him. The selected elements appear under Expression. The statistic must be written in the format: $(statisticname). For example: $(StatAgentLoggedIn)=1
- Under Skill Expression on the left, define the Skill Expression. Skill Expressions are limited to alphanumeric characters and underscores, cannot begin with a digit, and cannot exceed 126 characters.
- Click OK.
- Back in the Targets dialog box, you have the option of entering a threshold function for conditional routing.
- Expand Statistic. URS predefined statistics appear for selection.
- Select a statistic.
- Click a comparison symbol.
- Create the expression using a combination of the comparison operators, functions, values, and variables. an example is shown below:
$(RStatCallsInQueue) = 3 & $(RStatCost) = 2 | $(PositionInQueue)) >=6.
Note: Use of the RStatCost statistic requires that you have cost-based routing implemented at your site. For a description of each statistic, consult the Universal Routing 8.1 Reference Manual.
- Click the button to validate on the toolbar.
- Click OK when through creating the expression to return to the Targets dialog box.
The table below describes the comparison symbols used to evaluate a skill condition.
|!=||Differs depending on the Data type: Skill–not equal to the indicated level value. Statistic–not equal to the indicated statistic value.|
|<||Differs depending on the Data type: Skill–less than the indicated level value. Note: depending on how you use this operator, it may result in including agents that do not have the skill at all (skill name = 0). For example, with English < 8, the queue functional module includes all agents with the English skill less than 8, and also agents with no English skill at all.
Statistic–less than the indicated statistic value
|<=||Differs depending on the Data type:Skill–less than or equal to the indicated level value. Statistic–less than or equal to the indicated statistic value|
|=||Differs depending on the Data type: Skill–equal to the indicated level value. Statistic–equal to the indicated statistic value.|
|>||Differs depending on the data type: Skill–greater than the indicated level value. Statistic–greater than the indicated statistic value|
|>=||Differs depending on the Data type: Skill–greater than or equal to the indicated level value. Statistic–greater than or equal to the indicated statistic value.|
This is a value of the same data type as the Data name element. The value must already evaluate to an integer. Float numbers are not supported. There are different limitations depending on the data type:
- Skill value–This value represents the level of skill. For example; an agent could have an English skill level greater than 3 (English > 3). An agent can be excluded from a skill by setting that agent’s skill level for that skill to zero in the configuration layer (English=0).
- Statistic–This value represents the value of the statistic/metric. For example; an agent could be in Ready state longer than 20 seconds ($(StatTimeInReadyState) > 20).
Use the logic operators to evaluate multiple conditional expressions together. The following logic operators are supported:
- AND (&)
- OR (|).
The AND and OR logic operators have the same priority. For example:
English >3 & $(StatAgentLoggedIn)=1
Variables and Literals
Starting with 8.1:
- Composer supports variables in skill expressions (they appear in the Skill Expression builder tree).
- You must enclose literal expressions in single quotes.
Background: Previously, Composer automatically added single quotes around the expression entered by the user. Now that variables are supported, Composer must distinguish literal strings and variables. As a result, you must enclose literal strings in single quotes.