## What Is CrewAI?
CrewAI is a Python framework for orchestrating multiple AI agents that work together on complex tasks, each with specialized roles, goals, and tools.
### Core Concepts
- Agent: An autonomous unit with a role, goal, backstory, and tools
- Task: A specific piece of work assigned to an agent
- Crew: A team of agents working together on related tasks
- Tool: Functions that agents can use (web search, file I/O, APIs)
- Process: How tasks are executed (sequential or hierarchical)
### Installation
```bash pip install crewai crewai-tools ```
### Your First Crew
```python from crewai import Agent, Task, Crew
researcher = Agent( role="Senior Research Analyst", goal="Find comprehensive information about AI trends in 2026", backstory="You are an expert analyst who excels at finding and synthesizing information.", verbose=True, )
writer = Agent( role="Content Writer", goal="Write engaging articles based on research findings", backstory="You are a skilled writer who transforms complex topics into accessible content.", verbose=True, )
research_task = Task( description="Research the top 5 AI trends for 2026 with supporting data.", expected_output="A detailed report with statistics and sources.", agent=researcher, )
writing_task = Task( description="Write a blog post based on the research findings.", expected_output="A 1000-word blog post with headers and examples.", agent=writer, )
crew = Crew( agents=[researcher, writer], tasks=[research_task, writing_task], verbose=True, )
result = crew.kickoff() ```