The Instagram Marketing Crew is a professional, multi-agent AI system that automates and optimizes Instagram content strategy and creation. Built with CrewAI, this project empowers businesses and content creators to approach Instagram marketing with data-driven insights, strategic planning, and creative content generation.
- Time-Intensive Research: Manually researching trends, hashtags, and competitor activities takes hours each week
- Inconsistent Strategy: Without proper planning, content becomes disjointed and fails to build audience engagement
- Trend FOMO: Missing out on trending topics and hashtags that could boost reach and engagement
- Content Creation Bottleneck: Creating engaging visuals and compelling copy requires significant creative resources
- SEO Optimization: Instagram's algorithm favors well-optimized content, but manual optimization is complex and time-consuming
Our AI-powered crew addresses these challenges by providing:
- Automated Market Research: Real-time analysis of Instagram trends, hashtags, and competitor activities
- Strategic Content Planning: Data-driven content calendars aligned with trending topics and audience preferences
- Visual Content Generation: Detailed image descriptions optimized for AI image generators
- SEO-Optimized Copywriting: Engaging captions with trending hashtags and strategic keywords
- Comprehensive Reporting: Complete content strategy documentation for team collaboration
- Modern Streamlit UI: User-friendly web interface for seamless interaction and output visualization
- Python >=3.10 <3.14
- UV package manager
- Gemini API key (or OpenAI API key if using OpenAI)
- Serper API key (for web search functionality)
# Install UV
pip install uv
# Navigate to project directory
cd project_crew
# Install dependencies
crewai install
# Set up environment variables
# Add your MODEL, GEMINI_API_KEY and SERPER_API_KEY to .env file in the project root
# Run the crew (CLI)
crewai run
# Or launch the Streamlit UI (recommended)
streamlit run ../streamlit_app.py # from inside project_crew, or adjust path as needed- Agents: Modify
src/project_crew/config/agents.yamlto customize agent roles and goals - Tasks: Update
src/project_crew/config/tasks.yamlto adjust task descriptions and outputs - Tools: Add custom tools in
src/project_crew/tools/custom_tool.py - Inputs: Customize user inputs in
src/project_crew/main.pyor use the Streamlit UI
- Analyzes industry trends and competitor activities
- Identifies trending hashtags and topics
- Researches optimal posting times and content performance
- Uses web search tools to gather real-time data
- Output: Comprehensive market research report
- Develops weekly content calendars based on research findings
- Aligns content themes with brand voice and audience interests
- Plans optimal posting schedules
- Integrates trending topics into strategic content themes
- Output: Detailed content calendar
- Generates detailed image descriptions for AI image generators
- Creates visual concepts that align with content strategy
- Ensures brand consistency across visual content
- Output: Image descriptions for each post
- Crafts engaging captions and call-to-actions
- Incorporates trending hashtags and keywords
- Maintains brand voice and tone consistency
- Optimizes copy for Instagram's algorithm
- Output: SEO-optimized copy for each post
This project is designed for:
- Brands & Businesses: Streamline and professionalize Instagram content planning, ensuring alignment with current trends and audience interests.
- Agencies: Automate research and content generation for multiple clients, saving time and increasing output quality.
- Content Creators & Influencers: Receive data-driven content ideas, visual prompts, and optimized captions to boost engagement and growth.
- Marketing Teams: Collaborate more efficiently with AI-generated reports and content calendars, reducing manual workload and improving consistency.
By leveraging AI, teams can focus on creative strategy and brand building, while the system handles research, ideation, and content drafting.
project_crew/
├── src/project_crew/
│ ├── config/
│ │ ├── agents.yaml # Agent definitions and configurations
│ │ └── tasks.yaml # Task descriptions and expected outputs
│ ├── tools/
│ │ └── custom_tool.py # Web search and Instagram research tools
│ ├── crew.py # Main crew orchestration logic
│ └── main.py # Entry point and user input handling
├── streamlit_app.py # Streamlit web UI
├── tests/ # Test suite
├── pyproject.toml # Project dependencies and metadata
└── README.md # This file
- Instagram Analytics: Due to Instagram API restrictions, deep engagement metrics and competitor analytics are limited. The system relies on public data and third-party APIs (e.g., Serper for web search). For advanced analytics, integration with paid third-party services or manual data input may be required.
- No Direct Instagram Posting: The system generates content and strategy but does not post directly to Instagram.
- Web Scraping: Not used by default due to legal and ethical considerations. If deeper analytics are needed, consider integrating with compliant third-party analytics APIs.
- LLM Provider: By default, the system is configured for Gemini. To use OpenAI or another provider, update the
.envand configuration files accordingly. - Content Quality: While the AI provides high-quality suggestions, human review is recommended before publishing.
- Third-Party API Costs: Some analytics or search features may require paid API keys for full functionality.
- Data Privacy: Ensure compliance with data privacy laws and platform terms when integrating third-party services.