Update the contracts AI agents handler script include
On this page
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
-
Navigate to All > System Definition > Script Includes.
The Script Includes table appears.
-
In the Name column, search for
ContractsAIAgentsHelperSNC. -
Open ContractsAIAgentsHelperSNC.
-
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.
-
Navigate back to the Script Include table.
-
In the Name column, search for
ContractsAIAgentsHelper. -
Open ContractsAIAgentsHelper.
-
In the Script box, paste the
startAiAgentConversation()method. -
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.
-
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.
Parent Topic:Configuring agentic workflows in ServiceNow Otto for Contract Management Pro
Related topics
Activate business rules for the Manage contract repository agentic workflow
Set the default notice period for the Manage contract repository agentic workflow
Enable notifications for AI extracted metadata and obligations
Keep exploring.
Find another answer, or bring this documentation into your own tools.