Domain Model
Automation Rule
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| name | string | Yes | — | Name |
| description | unknown | Yes | — | Description |
| enabled | boolean | Yes | — | Enabled |
| triggerType | enum(event, schedule, condition) | Yes | — | Trigger type |
| triggerConfig | object | Yes | — | Trigger config |
| conditions | unknown | Yes | — | 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 | — | Autonomy policy |
| priority | number | Yes | — | Priority |
| cooldownMinutes | unknown | Yes | — | Cooldown minutes |
| lastFiredAt | unknown | Yes | — | Last fired at |
| workspaceId | string | Yes | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| 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 |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | — | Name |
| description | string | No | — | Description |
| enabled | boolean | No | true | Enabled |
| triggerType | enum(event, schedule, condition) | No | — | Trigger type |
| triggerConfig | object | No | — | 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) | No | — | Action type |
| actionConfig | object | No | — | Action config |
| autonomyPolicy | enum(auto_execute, draft_for_review, agent_review) | No | "draft_for_review" | Autonomy policy |
| priority | integer | No | 100 | Priority |
| cooldownMinutes | integer | No | — | Cooldown minutes |