Skip to content

๐Ÿค– CrewAI Agentic AI Framework Build smart, role-based AI teams with CrewAI! โš™๏ธ๐Ÿค Agents collaborate like real teams to solve complex tasks. from DevOps pipelines ๐Ÿ› ๏ธ and secure auth flows ๐Ÿ” to content creation โœ๏ธ and business automation ๐Ÿ“ˆ. Easily customizable, extendable with tools ๐Ÿงฉ, and fully powered by ๐Ÿง  GPT-4 + ๐Ÿ Python 3.11.9.

Notifications You must be signed in to change notification settings

jishanahmed-shaikh/CrewAI-AgenticAI-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– CrewAI Agentic AI Framework & Multi-Agent System

Python CrewAI OpenAI

๐Ÿš€ 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.

๐ŸŒŸ What is CrewAI?

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.

๐ŸŽฏ Key Features

  • ๐Ÿค 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

๐Ÿ“ Project Structure

๐Ÿ“ฆ 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

๐Ÿš€ Quick Start Guide

๐Ÿ“‹ Detailed Setup Instructions: For a comprehensive step-by-step guide, see our Instructions.md file!

๐Ÿ“‹ Prerequisites

  • ๐Ÿ Python 3.11.9 (Required version)
  • ๐Ÿ”‘ OpenAI API Key (Get one here)
  • ๐Ÿ’ป Terminal/Command Prompt/Powershell

๐Ÿ› ๏ธ Installation Steps

1๏ธโƒฃ Clone & Navigate

git clone https://github.com/jishanahmed-shaikh/CrewAI-AgenticAI-Framework.git
cd CrewAI-AgenticAI-Framework

2๏ธโƒฃ Create Environment File

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!

3๏ธโƒฃ Setup Virtual Environment

# Create virtual environment
python -m venv crew-env

# Activate it (Windows)
crew-env\Scripts\activate

# Activate it (macOS/Linux)
source crew-env/bin/activate

4๏ธโƒฃ Install Dependencies

pip install -r requirements.txt

๐ŸŽฎ Running the Examples

๐ŸŒฑ Basic Example (Single Agent)

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

๐Ÿš€ Advanced Example (Multi-Agent System)

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

๐Ÿ—๏ธ Understanding the Architecture

๐Ÿค– Agent Components

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 Structure

task = Task(
    description="What needs to be done",     # ๐Ÿ“ The assignment
    expected_output="What you expect",       # โœ… Success criteria
    agent=assigned_agent                     # ๐Ÿค– Who does it
)

๐Ÿ‘ฅ Crew Assembly

crew = Crew(
    agents=[agent1, agent2, agent3],        # ๐Ÿค– The team
    tasks=[task1, task2, task3],            # ๐Ÿ“‹ The work
    verbose=True                            # ๐Ÿ“Š Show progress
)

๐Ÿ› ๏ธ Creating Custom Tools

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}"

๐ŸŽฏ Use Cases & Applications

๐Ÿข Business Applications

  • ๐Ÿ“Š Data Analysis Pipeline: Research โ†’ Analysis โ†’ Reporting
  • ๐Ÿ›’ E-commerce Automation: Product research โ†’ Content creation โ†’ Marketing
  • ๐Ÿ“ˆ Financial Planning: Market analysis โ†’ Strategy โ†’ Risk assessment

๐Ÿ’ป Development Workflows

  • ๐Ÿ”ง DevOps Pipeline: Setup โ†’ Security โ†’ Testing (like our example!)
  • ๐Ÿ“ฑ App Development: Planning โ†’ Coding โ†’ Testing โ†’ Deployment
  • ๐Ÿ› Bug Resolution: Detection โ†’ Analysis โ†’ Fix โ†’ Verification

๐ŸŽจ Creative Projects

  • โœ๏ธ Content Creation: Research โ†’ Writing โ†’ Editing โ†’ Publishing
  • ๐ŸŽฌ Video Production: Scripting โ†’ Storyboarding โ†’ Editing โ†’ Review
  • ๐ŸŽต Music Production: Composition โ†’ Arrangement โ†’ Mixing โ†’ Mastering

๐Ÿ”ง Troubleshooting

๐Ÿ“‹ Need More Help? Check our comprehensive Instructions.md for detailed troubleshooting steps!

Common Issues & Solutions

๐Ÿšซ "OpenAI API Key not found"

  • โœ… Check your .env file exists
  • โœ… Verify the key format: OPENAI_API_KEY=sk-...
  • โœ… Restart your terminal after creating .env

๐Ÿ "Python version mismatch"

  • โœ… Use Python 3.11.9 specifically
  • โœ… Check with: python --version
  • โœ… Consider using pyenv for version management

๐Ÿ“ฆ "Module not found"

  • โœ… Activate your virtual environment
  • โœ… Run: pip install -r requirements.txt
  • โœ… Check you're in the right directory

๐Ÿ“š Learning Resources

๐ŸŽ“ Official Documentation

๐ŸŽฌ Videos, Courses & Tutorials

๐Ÿ“– Recommended Reading

  • "Multi-Agent Systems" by Gerhard Weiss
  • "Artificial Intelligence: A Modern Approach" by Russell & Norvig
  • "The Alignment Problem" by Brian Christian

๐Ÿค Contributing

We love contributions! Here's how you can help:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch: git checkout -b amazing-feature
  3. ๐Ÿ’พ Commit your changes: git commit -m 'Add amazing feature'
  4. ๐Ÿ“ค Push to the branch: git push origin amazing-feature
  5. ๐ŸŽ‰ Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • ๐ŸŽ‰ CrewAI Team for the amazing framework
  • ๐Ÿค– OpenAI for the powerful language models
  • ๐Ÿ Python Community for the excellent ecosystem
  • ๐Ÿ‘ฅ Contributors who make this project better

๐Ÿ“ž Support & Community


๐ŸŒŸ Star this repo if you found it helpful! ๐ŸŒŸ

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."

๐Ÿš€ What's Next?

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! ๐ŸŽ‰

About

๐Ÿค– CrewAI Agentic AI Framework Build smart, role-based AI teams with CrewAI! โš™๏ธ๐Ÿค Agents collaborate like real teams to solve complex tasks. from DevOps pipelines ๐Ÿ› ๏ธ and secure auth flows ๐Ÿ” to content creation โœ๏ธ and business automation ๐Ÿ“ˆ. Easily customizable, extendable with tools ๐Ÿงฉ, and fully powered by ๐Ÿง  GPT-4 + ๐Ÿ Python 3.11.9.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages