Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
CrewAI 18 Drills: Build Multi-Agent Crews & Flows on Gemini
Rating: 5.0 out of 5(1 rating)
16 students

CrewAI 18 Drills: Build Multi-Agent Crews & Flows on Gemini

One AI hits a wall; a team goes past it. Learn CrewAI Crews and Flows in 18 drills — Gemini free tier, no setup.
Created byM Sakai
Last updated 8/2026
English

What you'll learn

  • Understand how Agent, Task, and Crew relate, and define agents that fit your goal knowing role, goal, and backstory become the prompt itself.
  • Feel how `expected_output` and `description` steer output quality, and pass variables to `kickoff` via `inputs` so one Crew is reusable for other topics.
  • Coordinate several agents sequentially, hand each stage's result to the next with `context`, and explain how adding an editor raises quality.
  • Use built-in `crewai-tools` tools and your own `@tool` functions as appropriate, building agents that read local files or carry custom logic.
  • Save results as Markdown with `output_file`, and trace hand-offs between agents in `verbose` logs to chase the cause when nothing works.
  • Split code from configuration with YAML (agents.yaml and tasks.yaml) and a `@CrewBase` class, reading and writing the standard project layout.
  • Chain steps with `@start`, `@listen`, and `@router`, keep state typed with a Pydantic model, and branch on an LLM's judgment to build controlled Flows.
  • Design and build a pipeline where a Flow calls a Crew through an approval branch, and judge when and how to use Crews versus Flows.

Course content

8 sections • 47 lectures • 3h 1m total length
  • Introduction and Course Structure8:14
  • Link to the CodeSandbox for the exercise0:10
  • Official CodeSandbox Link0:11

Requirements

  • Able to read and write basic Python (variables, functions, classes, `import`, what a decorator looks like, `with` statements). No library knowledge needed.
  • A PC with an internet connection and a modern browser (Chrome recommended) is all you need. We use CodeSandbox, so there is no Python install or setup.
  • Able to obtain one Gemini API key in Google AI Studio (free tier, no credit card). Section 0 walks you through the steps.
  • No AI or multi-agent development experience required. No knowledge of other frameworks such as LangChain is assumed—this course stands alone.

Description

This course contains the use of artificial intelligence.

"Ask one AI assistant to do everything, and the instructions grow so long that quality falls apart" — this course exists to get you past that wall with a team that splits the work by role.

CrewAI is a framework that gives multiple AI agents a role, a goal, and a backstory, then makes them cooperate as a team (a Crew). And in 1.x, alongside Crews that cooperate autonomously, you can build Flows: business workflows with state management and conditional branching. This course builds up those two pillars, Crews and Flows, hands on, through 18 practical drills.

Learning follows a roadmap of 7 chapters. Once Section 0 has your environment ready, Section 1 nails the foundation of the three elements—Agent, Task, and Crew—how role/goal/backstory become the prompt itself, how expected_output decides output quality, and how you pass variables to kickoff with inputs.

Section 2 is the peak of the first half: coordinating multiple agents. You feel why roles get split with a two-agent Crew of a researcher and a writer, and watch each stage's result flow to the next through context between Tasks. Then you add an editor for a three-agent Crew to see how the output improves, and save the result as Markdown with output_file. Section 3 connects agents to the outside world. You read a local file with a built-in crewai-tools tool, write your own tool with the @tool decorator, and assemble a real-world-style Crew that reads rough notes and turns them into a formatted report.

In Section 4 you move definitions that were hard-coded into YAML configuration and a @CrewBase class—the shape of code you actually read in real projects and the official docs. Then Section 5 is the peak of the second half: Flows. You chain steps with @start and @listen, manage state as typed data with a Pydantic model, branch on an LLM's judgment with @router, and finally call a Crew from a Flow—reaching the real-world pattern where the Flow directs traffic and each Crew does the work. In the final chapter, Section 6, every part converges into a blog article pipeline: topic input → outline generation → approval branch → research and writing Crew → Markdown save.

No environment setup required. Using CodeSandbox, you run everything from your first Agent definition through Flow execution in the browser alone. No Python install either. And the Gemini free tier alone carries you to the finish (no credit card required). Multi-agent work tends to multiply calls, so the drills are capped at three agents to stay inside the free tier.

Not just becoming able to run a team, but becoming able to design your own agent teams and workflows. That is the goal of this course.

Who this course is for:

  • Those who can write Python but don't know how to build AI agents—especially multi-agent systems—and aren't sure where to start.
  • Engineers who have touched a single agent via the ChatGPT API or LangChain and now want role-splitting teams and automated business workflows.
  • Anyone who wants to understand CrewAI's Crews and Flows by actually getting hands on, rather than by reading articles or watching videos.
  • Individual developers and students who want to experience multi-agent development end to end on the free tier, without paying for an API.
  • Those who want to design AI automation for multi-step business processes such as research, writing, proofreading, and saving.