Contrast CrewAI role-driven model with LangGraph state-driven graph
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
CrewAI is described as 'role-driven' and LangGraph as 'state-driven.' Unpack what that means in terms of the core abstraction each one asks you to think in, and explain how that difference shows up in the kind of bugs each framework makes hard or easy.
CrewAI gives you Agent + Task + Process; LangGraph gives you State + Node + Edge. The first invites role-bleed bugs, the second invites state-merge bugs.
Picture two ways to organise a kitchen. CrewAI is the brigade kitchen: each cook has a title (saucier, pastry chef, expediter), a backstory of training, and a list of dishes they own. You write the menu by saying who cooks what in what order. LangGraph is a dish-assembly line on a conveyor belt: a tray (the state) carries the dish from station to station, each station reads the tray, adds something, and passes it on, and a switch decides which station gets it next. Brigade kitchens go wrong when two cooks step on each other's roles. Conveyor belts go wrong when two stations write to the same spot on the tray and clobber each other.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: CrewAI's persona model + LangGraph's state-machine model + the bug categories each invites + production failure modes + when each fits + migration pattern.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking CrewAI for a pipeline that is really a state machine, then fighting role descriptions to encode branching logic. The shape of the work should pick the framework, not vice versa.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.