AgentAutomationV2
An organization-owned agent automation. The kind field identifies which automation-specific fields are present.
Properties
kindenum requiredThe automation kind.Values:scheduled,triggeredidstring requiredThe unique identifier for this automation.namestring requiredA human-readable name for this automation.asyncTriggerTypeenum requiredThe async trigger type for this automation.Values:scheduled— Scheduled- The task was started by a cron-driven scheduled signal.
external_signal— ExternalSignal- The task was started in reaction to an external signal payload.
- The task configuration used for each run of this automation, including the prompt, attached entities, and task execution settings. Each 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.
pausedboolean requiredWhether future executions are currently paused.- The destinations that receive notifications about automation runs.
- ↳
typestring required scheduleCronstring optionalA standard five-field cron expression in UTC that controls when this automation runs. Present for scheduled automations.nextExecutionstring optionalThe timestamp of the next scheduled execution. Present for scheduled automations.- The trigger configuration for this automation. Present for triggered automations.
- ↳
quietPeriodSecondsinteger requiredThe quiet period, in seconds, that bounds how long events remain associated with one task. - ↳
typestring required lastExecutedstring optionalThe timestamp when this automation last ran, if any.lastRunStatusstring optionalThe result of the most recent automation run, if any. Valid values currently include ‘succeeded’, ‘failed’, and ‘skipped’.