Skip to main content
The workflow_definition object passed to Create from Definition and Update Agent defines the full conversation graph. Use this contract for workflow agents. Retrieve an existing definition before editing it and preserve fields you are not changing. Validate and test changes before publishing.

Nodes

Each node represents a step in the conversation.

Node types


Node data fields

Conversation node fields

agentNode — data extraction

Extraction variable schema:
type is one of string, number, or boolean.

agentNode — tools

trigger node

webhook node

qa node


Edges

Each edge connects two nodes and defines when the transition fires.

Validation rules

  • All source and target IDs in edges must reference existing node IDs
  • All nodes except trigger, webhook, and qa must have a non-empty prompt
  • Node IDs must be unique within the workflow
  • A workflow needs exactly one start node; an API Trigger does not replace the Start Call conversation step
  • Use at most one Global node; multiple End Call nodes can represent different endings
  • Validate with the agent validation endpoint before publishing

Minimal example