Workflows and orchestration
What it is
Two terms:
- A workflow is a set of steps and the rules for moving between them. A step can be plain code, one model call, or a whole agent loop.
- Orchestration is the job of running a workflow: starting steps in the right order, passing data between them, handling failures, and recording progress. The code that does it is the orchestrator.
A useful picture is a graph: steps are nodes, and the connections between them are edges.
Why it matters
Workflows put structure around model freedom.
- You choose where the model may decide and where the path is fixed.
- Fixed parts are predictable, testable and cheap.
- Free parts handle the cases a fixed path cannot.
- The most reliable systems are fixed on the outside and agentic only where needed.
In the real world: A claims system is a seven-step workflow in which only step four, 'investigate the claim', is an agent loop; the rest are fixed, and that is why it passed audit.
Visual example
ShapesEach has a card below. Real systems combine several.
Thinking of 'workflow' and 'agent' as competing choices. They nest. A workflow can contain agents as steps, and an agent can call a workflow as a tool.
Practise it: Design a Multi-Agent AI System, Design a Multi-Agent Incident Response System