Build stateful agent workflows as graphs — nodes, edges, conditional routing, cycles, and persistent state. Use when agent logic needs branching, loops, retries, or human-in-the-loop checkpoints.