Minideas

Idea 15 of 15 · The Claude API

Workflows and agents

Two ways to join several calls to Claude: fixed steps you wire up, or an agent that chooses its own.

workflow: steps you wired upwritechecktranslateagent: Claude picks each step??
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”.

write a draftdraftyour code checksfix the styleeditedyour code checkstranslateone call to Claude per step, one after another
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.

sortshippingbillingcomplainta prompt written for each kind of message
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.

toneaccuracymissing infocombine the results
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.

Claude picksthe next stepa toolrunsreads theresultgoal met:answerno fixed route: Claude decides as it goes
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.

Swipe the card, or use the arrow keys.

Go deeper

Each card stack gives you the idea. These open resources go into the detail.

Notes on the Claude Partner Network learning path on Anthropic Academy.