Build Your First CrewAI File-Reading Crew
Beginner · 30 minutes · 5 tasks, checked automatically · 100 points
Install CrewAI into your local Python environment and build a multi-agent crew that reads real files from a folder on your machine. You will create agents with distinct roles, assign them tasks that use a file-reading tool, and run a sequential crew that produces a written summary report. Because this crew runs directly on your machine, it can read any folder you point it at — something a container cannot do.
What you’ll learn
- Install crewai and crewai-tools into the managed LearnXops virtualenv
- Create a sample documents folder inside the lab directory with at least two text files
- Define two CrewAI agents — a Reader and a Summariser — each with a role, goal and backstory
- Wire the agents to tasks that use the FileReadTool and run them as a sequential crew
- Verify that the crew produces a written summary report file in the lab directory
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: gpt-4o
- Open source: github.com/crewAIInc/crewAI
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Python 3.10 or newer installed and available as python3
- pip available in your shell
- OPENAI_API_KEY set in your environment
- A terminal with write access to ~/LearnXops/agent-labs
Topics: crewai, agents, file-reading, sequential-process, openai, python, local-machine, crewai-tools
Create a free account to start this lab.
Keep going
- Install OpenClaw and Bring Up the Gateway
- Run OpenClaw Fully Offline with a Local Ollama Model
- Walk the OpenClaw Workspace: Sessions, History, and Resuming Conversations
- Configure Hermes: Persistent Model, Backend, and Tool Defaults
- Hermes Agent: Install, Diagnose, and First-Run Setup Against a Local Model
- Tour the Hermes Toolsets: Discover, Enable, and Trace Tool Calls