Course Content
CrewAI Multi-Agents
9 sections · 53 lessons
What is the difference between sequential and hierarchical processes in CrewAI?
What you need to know
Sequential
crew = Crew(agents=[researcher, writer, editor], tasks=[research, draft, edit], process=Process.sequential) # the default- Every task must have an
agent. - Order = the
taskslist. - Cost ≈ one agent loop per task.
Hierarchical
1from crewai import LLM23crew = Crew(agents=[researcher, writer, editor],4 tasks=[research, draft, edit],5 process=Process.hierarchical,6 manager_llm=LLM(model="openai/gpt-4o"))- You must set
manager_llmormanager_agent, or the crew fails validation. - CrewAI gives the manager the delegation tools and sets its
allow_delegation=True. A custom manager must not have tools of its own and must not be inagents. - For each task, if the task names an
agent, the manager can delegate only to that agent; if not, it can choose any worker. - The manager reviews the result and can delegate again, so one task can take several worker runs.
Side by side
| Sequential | Hierarchical | |
|---|---|---|
| Who picks the worker | you, per task | the manager, at run time |
| Task order | list order | still list order |
| LLM calls | one loop per task | manager loop plus one or more worker loops per task |
| Repeatability | high | lower; the manager may choose differently |
| Debugging | read the tasks in order | trace every delegation |
A real-life example
A B2B SaaS company handles inbound requests from its website form: some are sales leads, some are support problems, some are partnership offers. They tried a hierarchical crew with a manager and three workers (lead researcher, support triager, partnerships analyst), and one task with no agent: "Handle this inbound request".
It worked — the manager routed correctly about 92% of the time — but each request cost 3 to 5 LLM loops and 40 seconds, and the manager sometimes asked two workers for the same request.
They replaced it with a sequential design inside a Flow: a single cheap classification step labels the request, a @router sends it to one of three small sequential crews. Routing accuracy stayed about the same, cost fell by roughly 60%, and every run followed a path they could read in the logs. The hierarchical version stayed in use for the strategy team's open-ended research questions, where the right expert really is unclear.
Follow-up questions to expect
- "Does the manager reorder tasks?" — No. Tasks are still taken in list order; the manager decides who does each one and whether the result is good enough.
- "
manager_llmormanager_agent?" —manager_llmuses CrewAI's default manager prompt;manager_agentlets you write the manager's role, goal and backstory, for example to enforce your quality standards. - "Which model should the manager use?" — A strong one, because its mistakes affect every task; workers doing narrow jobs can use cheaper models.