New Tool Radar

AI Agents & Automation

How to Run CrewAI Tasks in Sequential Order So Each Agent Builds on the Last

Set a CrewAI crew to Process.sequential so tasks run in order and each agent works from the previous agent's output.

Schematic diagram with three steps: List agents and tasks, Set Process.sequential, then Check the handover.

A crew is a team, and the process decides how the team works. With Process.sequential, the default, tasks execute in order: each agent completes its task before the next one starts, and the next agent can use the previous output as context.

Before you start

You need a CrewAI project with at least two agents and two tasks, where the second task genuinely needs the first result. If the tasks are independent, sequential order only makes the crew slower.

Set the process when you create the crew

In crew.py, create the Crew with the agents list, the tasks list, process set to Process.sequential, and verbose set to True so the run log shows each step. The task that depends on the earlier result should list that task in its context, so the agent receives the output to build on.

Run once and check the handover

Run the crew and read the log in order: the first task should finish and its output should appear as context for the second. If the second agent repeats the first agent work instead of building on it, the context link between the tasks is missing.

Worked example: A two-step crew for a fictional research desk

Maple Research is a fictional research desk. Its crew researches a topic and then writes a briefing from the research. The table shows the order.

Step Agent What it produces
1 researcher A list of 10 key developments
2 reporting_analyst A briefing built from those 10 points

Expected result (UNTESTED): the briefing quotes developments from the research list instead of inventing new ones. We checked the CrewAI documentation summary, which describes Process.sequential and the context link between tasks, but we did not run the crew on this machine.

Limits

Sequential order is slow by design: the second agent waits for the first, and a failure in step one stops the whole crew. For independent tasks, run them separately instead. Keep the handover output short so the next agent is not buried in context.

Sources

See all