Writing a Prompt for a Multi-Step Task in Claude.ai
A request with several moving parts, research a topic, then outline it, then write it up, tends to go wrong when it's handed to Claude as one dense paragraph.
Search across all documentation pages
A request with several moving parts, research a topic, then outline it, then write it up, tends to go wrong when it's handed to Claude as one dense paragraph.
Breaking that same request into an ordered, numbered set of steps gives Claude an explicit sequence to follow instead of a pile of instructions it has to silently sort out on its own.
This page walks through how to structure a multi-step prompt in Claude.ai, using a realistic example from start to finish.
A multi-step task is any request with more than one distinct stage, where a later stage depends on the output of an earlier one.
Writing all the stages as one flat paragraph forces Claude to guess at both the sequence and the dependencies between them.
Numbering the steps explicitly removes that guesswork, and it also gives you a natural place to check the work partway through instead of only at the very end.
This matters most for genuinely multi-part requests, a single-stage task doesn't need this treatment, and over-structuring a simple ask just adds unnecessary overhead.
The example below shows the difference between a flat, unordered prompt and a properly sequenced one for the same underlying task.
The general shape for turning a complex ask into an ordered prompt.
1. <First step - usually gathering or establishing something>
2. <Second step - usually building on step 1's output>
3. <Third step - usually refining or formatting the prior output>
4. <Final step - the deliverable in its finished form>
Do these in order. Show me the result of each step before
moving to the next. / Do all steps and give me the final result.When to reach for this:
Here's a real multi-step task: preparing a short status update for a manager, covering three sub-teams' progress, then getting it into a specific format.
A flat, unordered version of the request:
I need a status update, can you look at the notes I'm about to
paste and write something up for my manager summarizing what
each team did, formatted nicely as bullet points, and keep it
short.This bundles four different jobs, extract per-team info, summarize, decide on tone/audience, and format, into one sentence, with no indication of the order or how thorough each stage should be.
The same request, broken into ordered steps:
I'm going to paste raw notes from 3 sub-teams below. Do this in
order:
1. Read the notes and pull out exactly one key update per team
(what shipped, what's blocked, what's next).
2. Write a one-sentence summary for each team's update, in
plain language a non-technical manager would understand.
3. Format all three as a bulleted list, team name in bold,
followed by its one-sentence summary.
4. Keep the whole thing under 100 words total.
[notes pasted here]Each step is a distinct job with a clear input and output: step 1 extracts, step 2 translates for the audience, step 3 formats, step 4 sets the final constraint.
What this demonstrates:
| Element | Purpose | Example |
|---|---|---|
| A short verb-first instruction per step | Keeps each step scannable and unambiguous | "Extract the key update per team." |
| An explicit output shape per step, when it varies | Prevents format confusion between stages | "Write one sentence per team." |
| A final step for formatting/constraints | Keeps global rules (length, tone) separate from content steps | "Keep it under 100 words total." |
| An instruction on whether to show work | Controls whether you see each stage or just the end result | "Show me each step's output before continuing." |
| Alternative | Use When | Don't Use When |
|---|---|---|
| A single flat prompt | The task is genuinely one stage, even if it's a long one | The task has real dependencies between distinct stages |
| Numbered multi-step prompt (this page) | 3+ distinct stages, with later steps depending on earlier ones | The steps are actually independent and don't need a specific order |
| Separate messages per stage (manual iteration) | You want to fully review and possibly redirect each stage before continuing | The task is routine enough that you trust the whole sequence to run unsupervised |
| XML-tagged sections for context vs. instructions | The prompt mixes background material with the steps and needs clear visual separation | The prompt is short enough that plain numbered steps are already unambiguous |
Show each step for high-stakes or unfamiliar tasks, so you can catch a problem early before it affects later steps.
Ask for just the final result on routine tasks you've successfully run this way before.
Numbered steps make the sequence and dependency between parts of the task explicit, not just the detail within each part.
A highly detailed paragraph can still leave Claude to guess at ordering, even if every individual requirement is clearly described.
Yes, they combine well, set the role or context first, then list the ordered steps for the actual task.
The role shapes tone and depth throughout; the steps shape the sequence of the work itself.
Have Claude pause and ask before continuing, by explicitly instructing it to check with you at that point rather than guessing.
For example: "After step 2, ask me which option I prefer before continuing to step 3."
A very long chain of steps, especially with steps that aren't truly dependent on each other, gets harder to track and more likely to be executed slightly out of order or merged.
If you're past 6-7 steps, consider whether some of them are really independent requirements that could be grouped instead.
Either works, as long as it's clearly included somewhere in the prompt before Claude needs it for the relevant step.
A common pattern is listing the steps first, then the source material, so the instructions are read before the raw content.
Numbered steps organize the sequence of the task itself; XML tags organize different kinds of content (background, instructions, examples) within a single prompt.
The two techniques often combine well on longer, more complex prompts that need both.
Point out specifically which step was skipped or merged and ask for it to be redone as a distinct step.
This is usually a sign that two of your steps were too similar or lacked a clear enough distinction between them, worth tightening for next time.
Yes, the underlying benefit, giving Claude explicit sequencing instead of implicit ordering, applies across Claude Haiku 4.5, Claude Sonnet 5, Claude Opus 4.8, and Claude Fable 5.
A model with a very large context window, like Claude Fable 5's 1M-token window, can also hold many steps plus a large amount of source material in view at once.
No, numbered steps organize a single prompt into an ordered sequence Claude executes in one pass (or with checkpoints you request).
Iterative refinement is a separate technique for improving a response across multiple back-and-forth turns after you've already seen a result.
Stack versions: Written against the Claude model lineup current as of ~June 2026 - Claude Fable 5, Claude Opus 4.8, Claude Sonnet 5 (the default), and Claude Haiku 4.5. Model names, pricing, and product features move quickly - verify current specifics at platform.claude.com/docs before relying on them.
Reviewed by Chris St. John·Last updated Jul 19, 2026