High-Level Structure
Every Workflow Definition adheres to the following core JSON schema:Top-Level Properties
| Property | Type | Description |
|---|---|---|
type | string | Constant identifier. Must be exactly "workflow_definition". |
version | string | Schema version. Currently "1.0.1". |
components | array | A list of distinct node instances representing processing steps. |
connections | array | A list of edges dictating the logic flow and data transfer between components. |
Components Array
Thecomponents array contains objects detailing the individual processing units. Each component has an ID, a type definition, and configurations for its specific behavior and positional placement if rendered visually in the UI.
Connections Array
Theconnections array defines how control passes between components upon execution. Connections are directional edges between a specific output “route” of a source component and a specific input “route” of a target component.
Connection Properties
source_id: The ID of the component yielding control.target_id: The ID of the component receiving control.source_port: The physical output port the connection originates from.target_port: The physical input port the connection arrives at.route: The semantic logic path dictating when this edge fires (e.g.,"success","failure","next").

