{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":49311,"path":"servicenow-platform/skills-management/add-business-rule-skill-determination.md","title":"Add a business rule for skill determination","bundle":null,"doc_type":null,"release":"australia","body":"\n# Add a business rule for skill determination\n\nSet 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.\n\n## Before you begin\n\nRole required: admin\n\nEnable the Skill Determination \\[com.snc.skill\\_determination\\] plugin.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Business Rules**.\n\n    **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.\n\n2.  Select **New**.\n\n3.  Add details for the business rule.\n\n<table id=\"table_ods_w41_l1c\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nName\n\n</td><td>\n\nDescriptive name for the business rule.\n\n</td></tr><tr><td>\n\nTable\n\n</td><td>\n\nSelect the table on which you want to run this business rule for skill determination.\n\n</td></tr><tr><td>\n\nAdvanced\n\n</td><td>\n\n1.  Enable the **Advanced** check box.\n2.  Select the **Advanced** tab.\n3.  In the **Script** field, enter the following code:\n\n    ```\n(function executeRule(current, previous /*null when async*/ ) {\n    var skillUtils = new sn_skill_rule.SkillDeterminationUtils();\n    var skills = skillUtils.determineWorkItemSkills(current);\n    skillUtils.assignSkillsToWorkItem(skills, current);\n})(current, previous);\n    ```\n\n**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.\n\n4.  In the **When to run** tab, set when you want the business rule to execute. For more information, see [Create a business rule](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/c_BusinessRules.md).\n\n\n</td></tr></tbody>\n</table>4.  Select **Submit**.\n\n\n**Parent Topic:**[Routing work items to agents based on skills](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/skills-management/skill-based-routing.md)\n\n"}}