Add a business rule for skill determination

  • Release version: Yokohama
  • Updated July 31, 2025
  • 1 minute to read
  • 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

    1. Navigate to All > System Definition > Business Rules.
      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.
    2. Select New.
    3. 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
      1. Enable the Advanced check box.
      2. Select the Advanced tab.
      3. 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.
      4. In the When to run tab, set when you want the business rule to execute. For more information, see Create a business rule.
    4. Select Submit.