Create or update an automation
automation_upsertCreate an automation, or update one by passing _id. The flow graph uses the same node/edge shape as the automations builder in the web app — read an existing one with automation_get before authoring a new graph by hand. Setting isActive: true makes it run against live events, which can message real people — leave it false while drafting and get an explicit yes before activating. It replaces the whole flow graph rather than patching it, so pass the complete graph. It does not touch any campaign sequence (flow_set). There is no tool to delete an automation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _id | No | Omit to create a new automation. | |
| flow | No | Workflow graph — nodes and edges. | |
| title | Yes | Short label. | |
| isActive | No | Whether it runs. Keep false while drafting. | |
| description | Yes | Longer explanatory text. |