Concept guide · LangChain, LangGraph, and CrewAI
What is the difference between a CrewAI crew and a flow?
A slower explanation for when the short interview answer is not enough. Start with the intuition, then connect it to the technical idea and the way an interviewer expects you to reason about it.
ML area
Generative AI → CrewAI crews and flows
Interview format
Core · Defense
Question
GENAI-097
Start with the idea
In simple terms
A crew represents agents collaborating on a set of tasks. A flow is a more explicit application workflow driven by events, state, and controlled transitions. Use the crew for collaboration and the flow when business control and reliability matter.
Make it concrete
A crew can draft a report from specialist findings; a flow can receive the request, select the crew, persist progress, enforce a budget, request human approval, and publish the result.
Build the answer
How to defend your decision
- 1Choose collaboration or deterministic routing for each part of the process.
- 2Keep state, permissions, and side effects in the controlled workflow layer.
- 3Measure the crew’s contribution instead of counting agent calls.
Go one level deeper
The technical explanation
Open delegation is flexible but harder to predict and test. Explicit flows make routing, retries, persistence, and approvals visible. In practice they can be combined: a controlled flow invokes a bounded crew or task group, then validates the result before moving to the next state.
Say this in the interview
A crew represents agents collaborating on a task or process, while a flow represents a more explicit application workflow driven by events, state, and controlled transitions. Use a crew for role-based collaboration and a flow when reliability, routing, persistence, and business control matter more than open delegation.
Keep preparing