nodes joined by edges. You send it to POST /v1/workflows and PUT /v1/workflows/{workflow_ref}; the dashboard builder produces the same JSON. This page explains each part of the graph.
Nodes
Each node is{ "id": string, "type": string, "data": object }.
Node types
endCall and data are accepted compatibility aliases; new API payloads should use end and task.
Node data fields
Edges
Each edge is{ "id": string, "source": string, "source_handle": string?, "target": string, "condition": object? }.
Session variable to evaluate.
Comparison operator:
eq, neq, gt, gte, lt, lte, contains, exists.Value to compare against.
data.condition/data.conditions; the API normalizes these into condition.
Variables Schema
variables_schema maps variable names to their typed definitions.
Compliance Plan
Workflows accept the samecompliance_plan structure as assistants, including audio_redaction. The plan is inert unless enabled is true. The published version snapshot controls runtime disclosure, consent, retention, redaction, and whether post-call artifacts can be emitted.
Workflows accept the same compliance_plan structure as assistants: enabled, ai_disclosure, recording_consent (with max_attempts 1–3 and end_call_on_decline), transcript_retention, and sensitive_data (with up to 10 custom regex patterns). The plan is inert unless enabled is true.
Inheritance and overrides
The workflow global configuration establishes the default prompt, providers, compliance policy, and analysis selection. A Start node’sstart_speaking_plan overrides the inherited speaking plan for the workflow session. Each Agent node can then override model, voice, and transcriber for its scoped handoff; Conversation nodes keep the active Agent configuration. Provider objects use the same canonical snake_case structures as Create Assistant.

