--- title: Update the contracts AI agents handler script include description: Update the ContractsAIAgentsHelper script include to add the sys\_id of a customized Manage contract repository agentic workflow to run the agentic workflow autonomously. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/employee-service-management/contract-management-pro/cmpro-script-includ-agenticAI.html release: australia product: Contract Management Pro classification: contract-management-pro topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Configure agentic workflows, Configure AI capabilities, Configure, Contract Management Pro, Legal and Contract Operations, Employee Service Management] --- # Update the contracts AI agents handler script include 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 **All** > **System Definition** > **Script Includes**. The Script Includes table appears. 2. In the Name column, search for `ContractsAIAgentsHelperSNC`. 3. Open **ContractsAIAgentsHelperSNC**. 4. In the **Script** box, copy the `startAiAgentConversation()` method. \[Omitted image "cmpro-script-agentic-ai.png"\] Alt text: Script include for agentic workflow in CM Pro. 5. Navigate back to the Script Include table. 6. In the Name column, search for `ContractsAIAgentsHelper`. 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**. ## Result The customized Manage contract repository agentic workflow runs autonomously when all the trigger conditions are met. For more information, see [Manage contract repository agentic workflow](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/cmpro-na-reminder-agentic-wf.md). **Parent Topic:**[Configuring agentic workflows in ServiceNow Otto for Contract Management Pro](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/cmpro-conf-agentic-workflow.md) **Related topics** [Activate business rules for the Manage contract repository agentic workflow](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/conf-repository-agentic-ai.md) [Set the default notice period for the Manage contract repository agentic workflow](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/conf-sys-prop-default-np.md) [Enable notifications for AI extracted metadata and obligations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/cmpro-na-me-agentic-ntf.md)