API ReferenceAutomation
automation.createRule
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | Name |
| description | string | No | — | Description |
| enabled | boolean | Yes | true | Enabled |
| triggerType | enum(event, schedule, condition) | Yes | — | Trigger type |
| triggerConfig | object | Yes | — | Trigger config |
| conditions | object | No | — | Conditions |
| actionType | enum(create_record, update_status, send_notification, agent_review, run_workflow, create_reorder_po, create_agent_task, create_agent_task_and_dispatch) | Yes | — | Action type |
| actionConfig | object | Yes | — | Action config |
| autonomyPolicy | enum(auto_execute, draft_for_review, agent_review) | Yes | "draft_for_review" | Autonomy policy |
| priority | integer | Yes | 100 | Priority |
| cooldownMinutes | integer | No | — | Cooldown minutes |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"name": "Example Name",
"description": "A description",
"enabled": true,
"triggerType": "event",
"triggerConfig": null,
"conditions": null,
"actionType": "create_record",
"actionConfig": null,
"autonomyPolicy": "auto_execute",
"priority": 100,
"visibilityMode": "global"
}