Update the contracts AI agents handler script include

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 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 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.
      Figura 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.

    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.