Update the contracts AI agents handler script include

  • Release version: Zurich
  • Updated July 31, 2025
  • 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 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.
      Figure 1. Script include for agentic workflow
      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.