mirror of
https://github.com/crewAIInc/crewAI-examples.git
synced 2026-01-09 13:57:57 -05:00
* Reorganize repo structure and upgrade to CrewAI 0.152.0 * chore(gitignore): ignore Python bytecode and __pycache__ across templates * chore(gitignore): ignore Python bytecode and __pycache__ across templates; clean tracked artifacts * Update crews/instagram_post/pyproject.toml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CrewAI Standard Crews Examples
This directory contains examples of traditional CrewAI implementations - autonomous agent teams working together to accomplish complex tasks.
What are CrewAI Crews?
A CrewAI Crew is a team of AI agents, each with specific roles and goals, working together to complete tasks. Key components include:
- Agents: Autonomous AI entities with specific roles and expertise
- Tasks: Defined objectives that agents work to complete
- Tools: Functions and integrations agents can use
- Process: Sequential or hierarchical task execution
Examples in this Directory
Content Creation
- game-builder-crew: Multi-agent team that designs and builds Python games
- instagram_post: Creates engaging Instagram content with research and creativity
- landing_page_generator: Builds complete landing pages from concepts
- marketing_strategy: Develops comprehensive marketing campaigns
- screenplay_writer: Converts text into professional screenplay format
Business & Productivity
- job-posting: Analyzes companies and creates tailored job descriptions
- prep-for-a-meeting: Researches participants and prepares meeting strategies
- recruitment: Automates candidate sourcing and evaluation
- stock_analysis: Performs comprehensive financial analysis with SEC data
Data & Matching
- match_profile_to_positions: CV-to-job matching with vector search
- meta_quest_knowledge: Q&A system using PDF documentation
Travel & Planning
- surprise_trip: Plans personalized surprise travel itineraries
- trip_planner: Compares destinations and optimizes travel plans
Template
- starter_template: Basic template for creating new CrewAI projects
Common Crew Patterns
Agent Definition
# agents.yaml
researcher:
role: "Senior Research Analyst"
goal: "Uncover cutting-edge developments"
backstory: "You're a seasoned researcher..."
Task Definition
# tasks.yaml
research_task:
description: "Conduct comprehensive research on {topic}"
agent: researcher
expected_output: "Detailed research report"
Crew Assembly
from crewai import Crew, Agent, Task
crew = Crew(
agents=[researcher, writer],
tasks=[research_task, writing_task],
process="sequential" # or "hierarchical"
)
Key Features Demonstrated
- Multi-Agent Collaboration: Examples show 2-7 agents working together
- Tool Integration: Web search, APIs, file manipulation, databases
- Custom Tools: Many examples implement specialized tools
- YAML Configuration: Standardized agent/task definitions
- Various Domains: From creative writing to financial analysis
Getting Started
- Choose an example that matches your use case
- Navigate to its directory
- Follow the example-specific README
- Install dependencies (usually via
pip install -r requirements.txtorpoetry install) - Run with
python main.pyor as specified
Each example is self-contained with all necessary configurations and can be used as a starting point for your own crews.