Agent Runtime
CrewAI Hierarchical Content Crew
A manager agent plans, delegates, and validates work across specialist agents (researcher, writer, editor) using CrewAI's hierarchical process, with tasks allocated at runtime rather than pre-assigned.
What This Builds
This recipe uses CrewAI’s hierarchical process, which emulates a corporate hierarchy: a manager agent oversees planning, delegation, and validation, while specialist agents do the work. Crucially, tasks are not pre-assigned — the manager allocates work to agents based on their capabilities, reviews outputs, and decides when a task is complete.
The concrete use case is a content production crew. A manager coordinates:
- a researcher that gathers and synthesizes source material,
- a writer that drafts the piece, and
- an editor that reviews and requests revisions.
The manager loops: delegate, inspect, send back for fixes, and only finish when the output meets the bar.
The Stack
- CrewAI — define
Agents with roles/goals andallow_delegation, define the deliverable as aTask, then assemble aCrew(process=Process.hierarchical, ...). Hierarchical mode requires either amanager_llm(CrewAI auto-creates the manager) or a custommanager_agent. - LLM providers — a fast model on GroqCloud for the high-volume worker turns and a stronger model (via OpenRouter, or directly) for the manager’s planning and validation.
- Qdrant (Cloud free tier) — optional vector store behind a research tool so the researcher can retrieve from a private knowledge base.
Step-by-Step Outline
- Define specialist agents. Researcher, writer, and editor, each with a focused role, goal, backstory, and
allow_delegationset appropriately. Give the researcher a retrieval tool backed by Qdrant if you want grounding. - Define the deliverable task(s). Describe the desired output and expected format; do not hard-assign which agent does what.
- Configure the manager. Set
process=Process.hierarchicalon theCrewand providemanager_llm="..."(or a custommanager_agentwith task-management skills). - Kick off. Run the crew; the manager plans the work, delegates to specialists, reviews their outputs, and iterates until satisfied.
- Tune. Watch for the common pitfall where defining only
manager_llm(and letting CrewAI build the manager) behaves more reliably than an under-specified custom manager; add tools to the manager only when you confirm your CrewAI version supports manager tools.
Why This Shape Works
The hierarchical process centralizes planning and quality control in the manager while keeping specialists single-purpose — a clean planner/worker split with built-in review. Because the manager allocates and validates at runtime, the crew adapts to tasks whose subtask breakdown isn’t known in advance, at the cost of extra manager LLM calls.
Source
CrewAI Documentation, Processes (sequential vs. hierarchical, manager_llm / manager_agent, Process.hierarchical): https://docs.crewai.com/en/concepts/processes
CrewAI Documentation, Hierarchical Process guide: https://docs.crewai.com/en/learn/hierarchical-process