---
sourceDocument: Australia Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/employee-service-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Update script include

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

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

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

## Antes de Iniciar

Role required: admin

## Por Que e Quando Desempenhar Esta Tarefa

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.

## Procedimento

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.  
   Figura 1. Script include for agentic workflow
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.

## Resultado

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://servicenow-prod.fluidtopics.net/niEJI8S4FqWCD9labtTwQw "Use the manage contract repository agentic workflow to improve productivity by extracting metadata and obligations automatically from signed contracts and setting the contract reminder dates for contract renewal or termination.").
**Tarefas relacionadas**   

* [Activate business rules for the Manage contract repository agentic workflow](https://servicenow-prod.fluidtopics.net/a2A35TZ0rKf7sjPnZDn3gw "Activate the Agentic AI - Set reminders for contract and the Agentic AI Set reminders for Econtract business rules to autonomously run the Manage contract repository agentic workflow.")
* [Set the default notice period for the Manage contract repository agentic workflow](https://servicenow-prod.fluidtopics.net/mwEIdZnp6lOn_yJ69jM3bw "Configure system properties to set the default notice period for the Manage contract repository agentic workflow.")
* [Enable notifications for AI extracted metadata and obligations](https://servicenow-prod.fluidtopics.net/6~EmN35_sRh2hH3v38hzlA "Enable the email notifications for metadata extraction and obligation extraction to notify users when metadata extraction and obligation extraction are complete.")

