prompt only holds the global part
(identity, tone, general rules); the actual call flow lives here.
Single-prompt agents have no workflow. For them this endpoint returns null.
The workflow is not part of
PATCH /v1/agents/{agent_id}. It is a large object and
is validated before it is stored, so it has its own endpoint.Data model
Step
Every
next[].id must reference an existing step id.
Endpoints
Get workflow
agents:read
Replace workflow
Replaces the workflow completely. There is no partial update — send the full object.agents:write
{"workflow": { ... }}.
To remove the workflow and turn the agent back into a single-prompt agent, send null:
Validation
The workflow is validated against the same rules the voice runtime enforces. If it is invalid, nothing is written and the response is400 VALIDATION_ERROR listing every
problem found: