CrewAI setup tutorial with LangChain and LangGraph

A Windows CrewAI walkthrough covers uv installation, YAML agents and tasks, execution errors, hosted OpenAI calls and flow code.

Player not loading? Watch on YouTube

This beginner tutorial explains CrewAI crews, agent roles and tasks, then compares them with LangChain's model and tool integrations and LangGraph's nodes, state and branching workflows.

The Windows demonstration uses VS Code and uv. The presenter checks Python 3.12.5, reports CrewAI 1.11.1 and creates a CRM assistant project using OpenAI GPT-4. The walkthrough covers agent roles, goals and backstories in YAML, task descriptions and expected outputs, and the decorators that connect them in crew.py.

An initial crewai install attempt fails because it cannot find the project configuration file. The presenter later reports successful execution after working inside the project directory and adding LanceDB to address another error. They describe research-task output from OpenAI, but do not validate its accuracy.

Later sections explain sequential and hierarchical execution, task attributes and output guardrails. A flow code example uses LiteLLM with GPT-4o-mini to request a random city, store it in state and request a fact about it. This section walks through the code rather than establishing a separately verified successful run.

The demonstrated model calls use OpenAI's hosted API. The presenter's closing Python 3.14 recommendation differs from the version demonstrated and does not establish a compatibility requirement.