What is a Workflow?
A workflow is a visual graph of connected nodes that define a precise execution path. Each node performs an action or makes a decision, and edges connect nodes to define the flow. Unlike runbooks (which give agents flexibility), workflows follow explicit branches and conditions every time.When to Use Workflows
Workflows are ideal when:Workflow Components
Nodes
Nodes are the building blocks of workflows:Edges
Edges connect nodes and define the flow:- Success path — Where to go when the node succeeds
- Failure path — Where to go when the node fails
- Branch paths — Decision outputs evaluated in order, with an else path when nothing matches
Inputs and Outputs
Each node can:- Accept inputs — Manual values, ticket data, saved values, previous node outputs, or AI-generated values
- Produce outputs — Data passed to subsequent nodes
Example Workflow
Refund Request Workflow: What this does:- Extracts the order number from the customer’s message
- Looks up the order in your system
- Checks if it’s within the return window
- Either processes the refund OR explains the policy
- Sends the appropriate response
Workflows vs Runbooks
Choose Workflows When
- Process must be identical every time
- Audit trails require deterministic paths
- Multiple tools must execute in exact order
- Branching logic is complex but well-defined
Choose Runbooks When
- Conversations vary significantly
- AI judgment improves outcomes
- Quick iteration is important
- Instructions are easier than flowcharts
Workflow Versions
Workflow edits are saved as versions:Next Steps
Create a Workflow
Build your first workflow
Nodes & Conditions
Reference for all node types
Sub-Agents
Call agents from workflows
Compare to Runbooks
Understand when to use each