Create business rules to enable agents to work on cases, work order tasks, and chat interactions. These rules will trigger Skill Determination rules, which will add the necessary skills to the respective work items. This
ensures that agents have the appropriate skills to handle these tasks effectively.
Before you begin
Role required: admin
Enable the Skill Determination [com.snc.skill_determination] plugin.
Procedure
-
Navigate to .
Note: If you want to use the skill determination rules available by default, make sure the Active field for that rule is set to true. For example, if you want to use the
Skill determination for interaction business rule, make sure the rule is active.
-
Select New.
-
Add details for the business rule.
| Field |
Description |
| Name |
Descriptive name for the business rule. |
| Table |
Select the table on which you want to run this business rule for skill determination. |
| Advanced |
- Enable the Advanced check box.
- Select the Advanced tab.
- In the Script field, enter the following code:
(function executeRule(current, previous /*null when async*/ ) {
var skillUtils = new sn_skill_rule.SkillDeterminationUtils();
var skills = skillUtils.determineWorkItemSkills(current);
skillUtils.assignSkillsToWorkItem(skills, current);
})(current, previous);
- In the When to run tab, set when you want the business rule to execute. For more information, see Create a business rule.
|
-
Select Submit.