Set up or enable business rules for agents to manage cases, chat interactions, or work order tasks. These business rules trigger Skill Determination rules, ensuring that the required skills are assigned to relevant work items
so agents are properly equipped to handle these responsibilities efficiently.
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 that 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);
Note: This script uses the SkillDeterminationUtils utility to identify which skills are needed for the current work item (such as an incident or task) and then
assigns those skills to it automatically. This helps ensure that the work item has the correct skill requirements based on its details.
- 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.