CreateTriggeredAgentAutomationV2Request
The common request fields for creating or updating an agent automation. The kind discriminator selects the required configuration.
Properties
namestring requiredA human-readable name for the automation.- The event source and shared configuration for this triggered automation.
- ↳
quietPeriodSecondsinteger requiredThe number of quiet seconds that bounds how long events remain associated with one task. The first event dispatches immediately. Must be between 1 and 3600. - ↳
typestring required - The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
- The message content. This is the first event in the conversation and must be a user message, so its discriminator field must be set to “type”: “user_message”.
- ↳
approvalModeenum optionalOptional approval mode override for this task. If omitted, org default is used.Values:manual,auto,balanced - ↳
planModeboolean optionalWhether to enable plan mode for this task. - ↳
permissionModeenum optionalControls the permission scope for the task. When omitted, defaults to ‘default’ (the agent uses the creating user’s full permissions).Values:default— Defaultread-only— ReadOnly
- ↳
rolestring optionalOptional RBAC role the task assumes, identified by role id. When set, the task operates with that role’s permissions in place of the creating user’s own assignments. You may only assume a role that is assigned to you, directly or through a team; a role you do not hold is rejected with a 403. Omitted/null means no assumed role: the task uses the creating user’s full permissions. Orthogonal to permissionMode, which controls the read-only behavior posture independently. - ↳
agentDefinitionIdstring optionalOptional Custom Agent definition id to run this task as. When set, the task’s role and enabled integrations are taken from the named agent definition instead of from this request, and the task is attributed to that agent. The agent’s instructions and approval mode are not copied at creation: they are read from the definition on every turn, so editing the agent applies to the next turn of every run. A preview capability, gated per organization. - ↳
toolExecutionModeenum optionalWhere tools should be executed. Defaults to ‘cloud’ if omitted.Values:cloud,cli,worker - Optional list of integrations to enable for this task. Semantics: omitted/null → inherit all org-enabled integrations; empty list → explicit opt-out (no integration credentials for this task); populated list → whitelist of specific integrations by ID. Modeled as an object array rather than a bare string array so multi-instance support (instance_name, scope, etc.) can be added later without a wire break.
- ↳
sourceenum optionalThe origin that triggered this task. Defaults to ‘api’ if omitted.Values:api— Api- Task created via the REST API without a more specific origin.
console— Console- Task created from the Pulumi Cloud web console.
cli— Cli- Task created from the Pulumi CLI.
slack— Slack- Task created from the Slack integration.
schedule— Schedule- Task created by a scheduled automation.
github— Github- Task triggered from a GitHub integration.
code-review— CodeReview- Task created by the code review feature. The platform hosting the reviewed change is identified by the task’s vcsProvider field.
- Optional filter for CLI integrations to enable for this task. Semantics: omitted/null → enable all CLI integrations connected for the org; empty list → explicit opt-out (no CLI integrations for this task); populated list → whitelist by (catalogId, name) of the configured instances to enable. Entries with missing or unknown catalogId, missing name, or referencing a (catalogId, name) pair that is not connected for the organization are rejected with a 400 response. catalogId matching is case-insensitive.
- The destinations that receive notifications about automation runs.
- ↳
typestring required kindstring required