Create a draft automation workflow
create_workflow_draftValidates an automation workflow graph (nodes, edges) and saves it as an unpublished draft. It never publishes, enables or runs it. Returns the workflow id, validation and sku_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| edges | Yes | Edges: [{id, source, target, sourceHandle?}]. | |
| nodes | Yes | Nodes: [{id, type (from the node catalog), position {x, y}, data}]. | |
| dry_run | No | Validate only; saves nothing. | |
| category | No | Free-text grouping, e.g. orders. | |
| description | No | ||
| preview_mode | No | true makes runs skip every state-changing step once published. | |
| idempotency_key | No | A repeat with this key replays the first result. |