Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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.

Image omitted: cmpro-script-agentic-ai.png
Script include for agentic workflow in CM Pro.
  1. Navigate back to the Script Include table.

  2. In the Name column, search for ContractsAIAgentsHelper.

  3. Open ContractsAIAgentsHelper.

  4. In the Script box, paste the startAiAgentConversation() method.

  5. 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.

  6. 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 Now Assist in Contract Management

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