---
sourceDocument: Xanadu Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/employee-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Update the contracts AI agents handler script include

# Update the contracts AI agents handler script include {#ariaid-title1}

* Release version: Xanadu
* 
* Updated April 18, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Update the ContractsAIAgentsHelper script include to add the sys_id of a customized Manage contract repository agentic workflow to run the agentic workflow autonomously.

## Before you begin

Role required: admin

## About this task

When you duplicate the Manage contract repository agentic workflow and create a customized agentic workflow, you must add the sys_id of the new agentic workflow in the ContractsAIAgentsHelper script include to run the agentic
workflow autonomously.

## Procedure

1. Navigate to AllSystem DefinitionScript Includes.  
   The Script Includes table appears.
2. In the Name column, search for <kbd class="ph userinput">ContractsAIAgentsHelperSNC</kbd>.
3. Open ContractsAIAgentsHelperSNC.
4. In the Script box, copy the `startAiAgentConversation()` method.
5. Navigate back to the Script Include table.
6. In the Name column, search for <kbd class="ph userinput">ContractsAIAgentsHelper</kbd>.
7. Open ContractsAIAgentsHelper.
8. In the Script box, paste the `startAiAgentConversation()` method.
9. In usecaseId, add the sys_id of the new agentic workflow.  
   You can copy the sys_id of the new agentic workflow from the Use case \[sn_aia_usecase\] table.
10. Select Update.

*[\>]: and then


