New Tool Radar

AI Concepts

How to Split a Complex Task into Steps Inside One Prompt

Split a complex task into steps inside one prompt so the model works through it in order instead of guessing the whole answer.

Schematic illustration of split a complex task into steps inside one prompt: step one list the steps, step two number them in the prompt, step three ask for one answer per step.

A complex task in one sentence asks the model to do several things at once, and it will often skip one or guess the whole answer. Splitting the task into numbered steps inside the prompt makes the model work through it in order: each step’s output feeds the next, and you can see where it went wrong if it did. The steps are part of the prompt, not separate requests.

Prerequisites

  • A complex task that breaks into 3 or 4 clear steps.
  • The order the steps must run in.
  • A way to check each step’s output.

Steps

Step 1: List the steps

Break the task into steps, each with one clear output: find the numbers, then add them, then compare the total with the budget. If a step has two outputs, split it again.

Step 2: Number them in the prompt

Write the steps as a numbered list in the prompt, in order, with the input for each step named. Numbering is the instruction: the model follows the list in order.

Step 3: Ask for one answer per step

Ask the model to give its answer for each step before moving to the next, and to give the final answer last. That way a wrong early step is visible before it corrupts the final answer.

Worked example: Bluebell Bakery weekly order check

The fictional Bluebell Bakery asks a model to check a weekly order in 3 steps: list the items, total them, and compare with the 200 budget.

Step Output Value
1. List the items 3 items listed Flour, yeast, sugar
2. Total the cost 54.00 + 60.00 + 50.00 164.00
3. Compare with the budget 164.00 against 200 Under budget by 36.00

The model lists 3 items, totals them to 164.00, and compares with the 200 budget, finding it under budget by 36.00, with each step visible.

Expected result. The reply shows one answer per step, in order, and the final answer follows from the steps. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.

Limits

  • Steps in a prompt are still one request; a step that needs fresh data needs a tool, not a prompt step.
  • Too many steps in one prompt can confuse the model; 3 or 4 is the working range.
  • This guide does not cover chaining separate requests.

Sources

See all