What the Workflow Owns
The workflow should control:- Case state
- Deadline checks
- Branch routing
- Tool call order
- Retry and failure paths
- Human approval gates
- Handoffs to subflows
- Status updates back to the source system
Main Flow
Subflows
Break repeated deterministic logic into callable workflows:Agent Calls
Use focused agents with clear contracts:
The workflow should validate the output shape before continuing.
Branching Guidelines
Use deterministic branches for conditions such as:- Response deadline has passed
- Case value is above approval threshold
- Required evidence is missing
- Account response is overdue
- Reviewer rejected the evidence packet
- Tool call failed
- Whether the reason text maps to one or more categories
- What clarification to request from the account
- How to summarize evidence in a clear narrative
- Whether reviewer comments imply a specific correction
Related Docs
Workflows
Learn when to use deterministic workflows.
Nodes and Conditions
Build branches, tool nodes, and conditions.
Sub-Agents
Call focused agents from workflows and agents.
Guardrails
Add escalation and restriction rules.