Skip to content
BENIBIX Learn

CrewAI

Development🧬 AI EngineeringLLM Frameworks

Also known as Crew AI, CrewAI Framework, CrewAI Flows

A free Python kit. A crew of agents, each with a role, shares one job.

Think of it like

It is like a school project team. One child reads, one writes, and one draws.

Example

Lucy makes a crew of two. A researcher agent finds facts about e-bikes. Then a writer agent turns them into a blog post.

Why it matters

Splitting a big job between agents with clear roles is easy to read and to change. Each agent can be tested on its own part.

Definition

CrewAI is an open-source Python framework for teams of AI agents that work together. Each agent gets a role, a goal and a backstory, which shape how it acts. You give tasks to agents, and a crew runs them one after another or under a manager. Flows sit around crews and control the steps, the saved state and the branches. It suits jobs that split well into parts, like research and then writing.

Example code

python
from crewai import Agent

researcher = Agent(
    role="Senior Data Researcher",
    goal="Uncover new developments in electric bikes",
    backstory="You find the most relevant information and present it clearly.",
)
Each agent must have a role, a goal and a backstory.
CrewAI is the one built around a crew of agents, each with a role.

Common mistake

Making a crew for a job one agent can do. Each extra agent adds model calls, cost and more places for things to go wrong.

Key takeaways

  1. 1
    Roles. Role, goal and backstory.
  2. 2
    Tasks and crews. Work handed out to agents.
  3. 3
    Flows. Steps and state around crews.