Walee's Blog

A blog to discuss all things Ai Agent Frameworks and Platforms


Create a Senior Data Researcher and Reporting Analyst agent for any Topic


CrewAi requires Python version >=3.10 <3.13 installed on your system.
Using Homebrew for package management on macOS (Please use something similar for your OS if not macOS)
Using Ollama as provider for llama3.1 model

Download and install Ollama for your OS

Ollama Website

Pull down the llama3.1 model

ollama run llama3.1

Confirm Ollama is running in a browser

Open Local Ollama

Install Python version 3.12

brew install python@3.12

Install pipx

brew install pipx

Ensure pipx is in your PATH

pipx ensurepath

Install CrewAi using pipx

# tell pipx to use Python version 3.12
pipx install crewai --python /opt/homebrew/bin/python3.12

Create your project

# crewai create crew <project_name>
crewai create crew crewai_hello_world

Choose ollama as your provider (Option: 5)

Choose llama3.1 as your model (Option: 1)

Change to project directory

cd crewai_hello_world

Create a virtual environment

python3 -m venv venv

Activate the virtual environment

source venv/bin/activate

Modify src/crewai_hello_world/main.py to update topic for your agents and tasks.

# replace every occurence of the topic "AI LLMs" (3 in total)
'topic': 'AI LLMs'
# with
'topic': 'AI Agents'

Modify src/crewai_hello_world/config/tasks.yaml to update the year.

# replace 
2024
# with
2025

Install CrewAi in virtual environment

pip install crewai

Run Your Crew

crewai run

Output I got below

data reseacher report_analyst


Project maintained by wale-e Hosted on GitHub Pages — Theme by mattgraham