@servicenow/sdk - v4.7.0
    Preparing search index...

    Function AiAgenticWorkflow

    • Creates an AI Agentic Workflow that defines dynamic behavior for agentic workflows

      Parameters

      • config: AiAgenticWorkflowType

        an object containing the following properties:

        • name - The display name of the AI Agentic Workflow
        • description - A brief description of what the AI Agentic Workflow does
        • securityAcl - Automatically generates sys_security_acl and sys_security_acl_role records for this workflow
        • contextProcessingScript? - Script that processes context for the workflow
        • sysDomain? - Domain ID
        • executionMode? - Execution mode (default: "copilot")
        • recordType? - Record type for the workflow (default: "template")
        • team? - Team configuration with nested members array
        • active? - Whether the workflow is active (default: true)
        • runAs? - User to run workflow as (sys_id or Record reference)
        • dataAccess? - Data access controls (required when runAs is empty)
        • versions? - Array of version configurations
        • triggerConfig? - Array of trigger configurations for automatic invocation

      Returns AiAgenticWorkflowType