Build Your First AI Agent with CrewAI — A Step-by-Step Guide

You've read enough blog posts and watched enough YouTube videos about AI Agents. Time to actually build one. Today, we'll walk through using CrewAI—one of the most popular and well-documented agent frameworks—to create your very first AI Agent.
What is CrewAI?
CrewAI is a Python framework for creating AI agents that can:
- •Work together in a hierarchical structure like a real team
- •Share context and information with each other
- •Execute tasks sequentially or in parallel
- •Integrate with multiple LLM providers (OpenAI, Anthropic, Ollama, Google...)
Think of it this way: You're the CEO, and CrewAI is the organizational framework that helps you manage an entire team of AI employees.
Step 1: Set Up Your Environment
Install CrewAI and its tools:
pip install crewai crewai-tools
CrewAI supports multiple LLM providers:
- •OpenAI (GPT-4, o1-preview)
- •Anthropic (Claude)
- •Ollama (run models locally, for free)
- •Google Vertex AI, , and more

Hoan Do
Founder at Wizy Marketing Agency. Passionate about helping Vietnamese businesses in North America scale with modern technology and premium marketing strategies.
Learn more about us →