Two ways to join several calls to Claude: fixed steps you wire up, or an agent that chooses its own.
1 / 5
Workflow or agent?
A bigger job often takes several calls to Claude, joined in one of two ways. In a workflow, your code fixes the steps in advance; the next three cards show common patterns. In an agent, Claude picks each step itself, using tools in a loop, as in “Giving Claude tools”.
2 / 5
Workflow 1: chaining
Split a job into a chain of calls to Claude, each one’s output the next one’s input. For a product description: call 1 writes a draft, call 2 edits it to the style guide, call 3 translates it. Each prompt stays simple, and your code checks every step.
3 / 5
Workflow 2: routing
First a quick request classifies the message: shipping, billing or a complaint. Then your code sends it to a prompt written for that category, so each prompt stays focused on one kind of request.
4 / 5
Workflow 3: parallelization
Independent checks can run side by side: tone, accuracy and missing details as three requests at the same time, then combine the results. It’s faster, and each request has one clear job.
5 / 5
Agents: when nobody knows the steps
When the route can’t be planned, give Claude tools and a goal and let it choose each step, as in the tool loop. That’s an agent: flexible, but slower, costlier and harder to predict. Start with a workflow and reach for an agent only when you need one.