Create flow from graph
create_flow_from_graphCreate a saved Wavelength flow from an explicit node and edge structure, with no AI call. Use this when the client already has the graph. Node types must be one of start, step, decision, data, system, actor, end. Edge kinds must be one of sequence, data, conditional, reports_to. Edges that point at a missing node are dropped. Nodes are auto-laid out. Returns the new flow id, node and edge counts, and the number of dropped edges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | The edges in the graph. | |
| nodes | Yes | The nodes in the graph. | |
| title | Yes | The title for the new flow. | |
| team_id | No | Optional team id to assign the flow to. | |
| direction | No | Optional layout direction. vertical stacks ranks top-down (default); horizontal advances left-to-right. | |
| folder_id | No | Optional folder id to create the flow in. |