๐ Welcome to the future of AI collaboration! This project demonstrates how to build powerful multi-agent systems using CrewAI, where AI agents work together like a real team to solve complex problems.
CrewAI is a cutting-edge framework that enables you to orchestrate role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks more effectively than any single AI could alone.
- ๐ค Multi-Agent Collaboration: Agents work together like a real team
- ๐ญ Role-Based Agents: Each agent has specific roles and expertise
- ๐ Sequential Task Execution: Tasks flow logically from one agent to another
- ๐ ๏ธ Custom Tools: Extend agents with specialized capabilities
- ๐ Verbose Logging: Track every step of the process
๐ฆ CrewAI-Project/
โโโ ๐ main.py # Interactive multi-agent system
โโโ ๐ง test3agents.py # Advanced 3-agent collaboration
โโโ ๐ requirements.txt # Python dependencies
โโโ ๐ Instructions.md # ๐ Detailed setup guide
โโโ ๐ .gitignore # Git ignore rules
โโโ ๐ .env # Environment variables (create this)
โโโ ๐ README.md # This file
๐ Detailed Setup Instructions: For a comprehensive step-by-step guide, see our Instructions.md file!
- ๐ Python 3.11.9 (Required version)
- ๐ OpenAI API Key (Get one here)
- ๐ป Terminal/Command Prompt/Powershell
git clone https://github.com/jishanahmed-shaikh/CrewAI-AgenticAI-Framework.git
cd CrewAI-AgenticAI-Framework
Create a .env
file in the project root:
OPENAI_API_KEY=your_actual_api_key_here
๐ Security Note: Never commit your API key to version control!
# Create virtual environment
python -m venv crew-env
# Activate it (Windows)
crew-env\Scripts\activate
# Activate it (macOS/Linux)
source crew-env/bin/activate
pip install -r requirements.txt
Perfect for beginners! This example shows a single Python developer agent:
python main.py
What it does:
- ๐ค Creates a Python Developer agent
- ๐ Assigns a task to reverse a string
- โ Executes and shows the result
This showcases the real power of CrewAI with 3 specialized agents:
python test3agents.py
Meet the Team:
- ๐ง Technician Agent: Sets up software and environments
- ๐ก๏ธ Security Agent: Handles authentication with Keycloak
- ๐งช Testing Agent: Validates everything works perfectly
agent = Agent(
role="Your Agent's Job Title", # ๐ญ What they do
goal="What they want to achieve", # ๐ฏ Their objective
backstory="Their background story", # ๐ Their expertise
verbose=True, # ๐ข Show their work
tools=[custom_tools] # ๐ ๏ธ Special abilities
)
task = Task(
description="What needs to be done", # ๐ The assignment
expected_output="What you expect", # โ
Success criteria
agent=assigned_agent # ๐ค Who does it
)
crew = Crew(
agents=[agent1, agent2, agent3], # ๐ค The team
tasks=[task1, task2, task3], # ๐ The work
verbose=True # ๐ Show progress
)
Want to give your agents superpowers? Here's how to create custom tools:
from langchain.tools import BaseTool
from pydantic import BaseModel, Field
class CustomToolInput(BaseModel):
parameter: str = Field(..., description="Tool parameter")
class CustomTool(BaseTool):
name = "ToolName"
description = "What this tool does"
args_schema = CustomToolInput
def _run(self, parameter: str) -> str:
# Your tool logic here
return f"Tool executed with: {parameter}"
- ๐ Data Analysis Pipeline: Research โ Analysis โ Reporting
- ๐ E-commerce Automation: Product research โ Content creation โ Marketing
- ๐ Financial Planning: Market analysis โ Strategy โ Risk assessment
- ๐ง DevOps Pipeline: Setup โ Security โ Testing (like our example!)
- ๐ฑ App Development: Planning โ Coding โ Testing โ Deployment
- ๐ Bug Resolution: Detection โ Analysis โ Fix โ Verification
- โ๏ธ Content Creation: Research โ Writing โ Editing โ Publishing
- ๐ฌ Video Production: Scripting โ Storyboarding โ Editing โ Review
- ๐ต Music Production: Composition โ Arrangement โ Mixing โ Mastering
๐ Need More Help? Check our comprehensive Instructions.md for detailed troubleshooting steps!
- โ
Check your
.env
file exists - โ
Verify the key format:
OPENAI_API_KEY=sk-...
- โ
Restart your terminal after creating
.env
- โ Use Python 3.11.9 specifically
- โ
Check with:
python --version
- โ Consider using pyenv for version management
- โ Activate your virtual environment
- โ
Run:
pip install -r requirements.txt
- โ Check you're in the right directory
- "Multi-Agent Systems" by Gerhard Weiss
- "Artificial Intelligence: A Modern Approach" by Russell & Norvig
- "The Alignment Problem" by Brian Christian
We love contributions! Here's how you can help:
- ๐ด Fork the repository
- ๐ฟ Create a feature branch:
git checkout -b amazing-feature
- ๐พ Commit your changes:
git commit -m 'Add amazing feature'
- ๐ค Push to the branch:
git push origin amazing-feature
- ๐ Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- ๐ CrewAI Team for the amazing framework
- ๐ค OpenAI for the powerful language models
- ๐ Python Community for the excellent ecosystem
- ๐ฅ Contributors who make this project better
- ๐ฌ Community: Join the CrewAI community
- ๐ฆ Twitter: @CrewAI
- ๐ง Help: Help
- ๐ Issues: GitHub Issues
Made with โค๏ธ by the Mr. Jishanahmed AR Shaikh for the AI Community
"The future belongs to organizations that can harness the collective intelligence of AI agents working in harmony."
Ready to build your own AI agent team? Here are some ideas:
- ๐ฏ Customer Service Crew: Support โ Escalation โ Resolution
- ๐ Market Research Team: Data collection โ Analysis โ Insights
- ๐จ Creative Agency: Brainstorming โ Design โ Review โ Refinement
- ๐ฅ Healthcare Assistant: Symptoms โ Diagnosis โ Treatment โ Follow-up
The possibilities are endless! ๐
Happy coding! ๐