The output of step one becomes the input to step two
After this, you'll be able to take a complex task and split it into a sequence of AI calls where each step's output becomes the next step's input, producing better results than a single prompt could.
Complete Keeping AI useful across multiple sessions first; this lesson builds on managing context and state across multiple AI interactions.
When you ask an AI to research, analyze, and write a report in a single call, it splits its attention across three tasks and does all three worse than it would if focused on one. The fix is compounding engineering: splitting the work into sequential calls where each output feeds the next. The loop is simple: extract, structure, compose.
Now try it: take a task you currently handle in one long prompt and break it into two steps where the output of step 1 is pasted as input to step 2. The discipline is resisting the urge to combine them back into one step after it works.
Paste this into Claude
I want to build a 3-step AI pipeline for [describe the end goal, e.g., turning a rough brain dump into a formatted client proposal]. Step 1 should [describe what the first call should extract or identify from my raw input; be specific about the output format]. Step 2 should [describe how to structure or transform step 1's output; name the grouping or organization method]. Step 3 should [describe the final output that uses the structured content from step 2]. For each step, write a reusable prompt template with [bracketed placeholders] for the content that changes each time. Then run step 1 on this example input and show me the output I would paste into step 2: [paste a real example of your raw input material].
Check yours against
Run the pipeline on a second piece of input and confirm each step produces useful output without you manually editing the content between steps.
Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.
Without scrolling up, pick one messy task of yours that you now do in a single long prompt. Write what step 1, step 2 and step 3 each hand to the next, one line each.
One good answer: 'Step 1 lists every complaint in my customer survey answers, with a count. Step 2 groups them by theme. Step 3 writes a one-page summary for the owner from the groups only.' If your steps each read only the previous step's output, you have a pipeline. Test step 1 alone first.
One long prompt produces mediocre output across three tasks. Three focused prompts, each passing output to the next, produce better output at every step.