{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":12816,"path":"employee-service-management/now-assist-for-hrsd/predict-transfer-hrcase.md","title":"Predict service and transfer HR cases agentic workflow","bundle":null,"doc_type":null,"release":"australia","body":"\n# Predict service and transfer HR cases agentic workflow\n\nAnalyze an HR case and automatically route it to the most appropriate HR service with the predict service and transfer HR cases agentic workflow. Optimize HR Case Management, ensuring that cases are handled by the most appropriate teams.\n\n## Overview of Predict service and transfer HR cases agentic workflow\n\nThe agents, tools, and triggers that are associated with this agentic workflow are provided by the ServiceNow Otto application. To change this agentic workflow's instructions, duplicate it, adjust the settings, and activate the new version.\n\n**Note:** Verify that the sn\\_hr\\_core.case\\_writer role includes the sn\\_uxc\\_gen\\_ai.platform\\_ai\\_field\\_predictor role; otherwise, the workflow will not operate as expected.\n\n## Prerequisites and setup\n\nPerform the following steps after you [Configure Group Action Framework](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/intelligent-experiences/configure-gaf.md).\n\n**Note:** Run the GAF training against **HR GAF Group**, the skill designated for GAF activation.\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Scheduled jobs**.\n2.  Run **HR service GAF grouping job** with an admin role. This generates **GAF - Run Offline Flow** in the Global scope.\n3.  Run **GAF - Run Offline Flow** and monitor its progress.\n\n## Accessing the Predict service and transfer HR cases agentic workflow\n\nTo access the agentic workflow:\n\n1.  Navigate to **All** &gt; **AI Agent Studio** &gt; **Overview**.\n2.  Select **Agentic workflows** &gt; **Predict service and transfer HR cases agentic workflow**.\n\n\\[Omitted image \"set-up-hr-predict.png\"\\] Alt text: Accessing the Predict service and transfer HR cases agentic workflow\n\nThe first step of the guided setup includes a complete list of included AI agents. Selecting the name of an AI agent opens it in a new browser tab, where you can see the full description, role, agent instructions/prompts, and tools. Tools are displayed in the second step of the AI agent-guided setup, Add tools, and information.\n\n## Predict service and transfer HR cases agentic workflow AI agents\n\nThe following table lists the agents that are used in the Predict service and transfer HR cases agentic workflow.\n\n**Important:** In the Define availability screen for the AI agent, make sure that the Status toggle is enabled to activate the AI agent.\n\n|AI agent|AI agent role|\n|--------|-------------|\n|Record field value prediction AI agent|Predicts the HR service of an incoming case. It can also provide a summary and justification of prediction.|\n|HR Case Transfer AI Agent|Automatically transfers the case to the predicted service.|\n\n## Triggers\n\nActivate triggers according to your organization's requirements, and enable/disable the required COEs.\n\n\\[Omitted image \"trigger-predict-hr.png\"\\] Alt text: Activating the triggers for the Predict service and transfer HR cases agentic workflow.\n\nIn the Predict service and transfer HR cases agentic workflow, review the information in the Describe and connect section, make the necessary updates to ensure the agentic workflow adapts to your requirements, and then select **Save and Continue**.\n\n## Executing a test scenario\n\nYou can run this workflow on the Testing page of AI Agent Studio with the following utterance in the Task field: \"Help me predict and transfer HR case with number \"HRC000XXX\" with \"sys\\_id \" and table \"sn\\_hr\\_core\\_case\".\n\nThe AI agent decision log displays the AI agents that are working to predict and transfer the case, and you can watch their interactions, decisions, and thought processes as they happen in real time.\\[Omitted image \"test-predict-service.png\"\\] Alt text: Testing input for the agentic workflow.\\[Omitted image \"test-predict-service1.png\"\\] Alt text: Testing output for the agentic workflow.\n\n## Prediction and transfer results on Agent Workspace for HR Case Management\n\nThis is an example of how the agentic workflow automatically identifies the appropriate HR service for a case, and transfers the case to the identified service.\n\n\\[Omitted image \"hr-predicted-service.png\"\\] Alt text: Prediction and transfer results on Agent Workspace for HR Case Management\n\n"}}