Overview • Agents • Features • Setup • Usage • Roadmap • License
A sophisticated multi-agent creative collaboration platform that transforms business challenges into comprehensive solutions through autonomous AI agents. Agentcy 2.0 combines advanced research, strategic planning, content creation, and visual design capabilities.
Completely modernized and streamlined for 2024, Agentcy 2.0 represents a complete evolution from experimental scripts to a production-ready creative agency platform. Built on AG2 (the community-driven successor to AutoGen), it orchestrates specialized AI agents that collaborate like a real creative agency team.
- 🚀 AG2 Framework: Modern, community-maintained multi-agent platform
- 🧠 Advanced Research: Web search, intelligent scraping, and AI summarization
- 🎨 Visual Content: AI image generation and critique workflows
- 📊 Professional Frameworks: Marketing, copywriting, and media planning methodologies
- 🏗️ Production Ready: Single consolidated file, robust error handling, organized outputs
The enhanced agent team includes specialized roles for comprehensive creative solutions:
- Agency Manager: Coordinates all project activities and ensures quality deliverables
- Agency Researcher: Conducts advanced web research with intelligent scraping and summarization
- Agency Strategist: Develops strategic frameworks using proven marketing methodologies
- Agency Copywriter: Creates persuasive content using psychological principles and copywriting best practices
- Agency Visual Director: Generates and critiques visual content using AI image generation
- Agency Marketer: Designs comprehensive marketing campaigns and customer journeys
- Agency Media Planner: Optimizes channel strategy using professional media planning frameworks
- Agency Director: Provides creative leadership and ensures excellence across all outputs
- User Proxy: Manages human interaction and oversees the collaborative process
- Web Search: Real-time search using Serper API
- Intelligent Scraping: Content extraction with Browserless and Selenium fallback
- AI Summarization: Direct OpenAI integration for content summarization (no LangChain dependency)
- Research Reports: Automatically generated and saved research documentation
- AI Image Generation: Stability AI integration via Replicate
- Image Critique: LLaVA-powered image analysis and improvement suggestions
- Visual Strategy: Comprehensive visual direction and creative concepts
- Marketing: 4P's, STP, AIDA, Customer Journey, Marketing Funnel
- Copywriting: Reciprocity, Scarcity, Authority, Consistency, Social Proof, Liking
- Media Planning: RACE, POEM, OST, See-Think-Do-Care
- Modern Dependencies: AG2, OpenAI 1.98+, minimal focused dependencies
- Organized Outputs: Structured file organization with research/, content/, images/ folders
- Error Handling: Robust retry logic and graceful failure handling
- Configuration Management: Environment-based API key management
# Using uv (recommended)
uv install
# Or using pip
pip install -e .
Copy the environment template and add your API keys:
cp .env.example .env
Edit .env
with your API keys:
# Required
OPENAI_API_KEY=your_openai_api_key_here
SERPER_API_KEY=your_serper_api_key_here
# Optional (for enhanced features)
BROWSERLESS_API_KEY=your_browserless_api_key_here
REPLICATE_API_TOKEN=your_replicate_api_token_here
Option A: Use .env only (Recommended)
The system will automatically create AG2 config from your .env
file. No additional setup needed.
Option B: Create OAI_CONFIG_LIST file If you prefer separate AG2 configuration:
[
{
"model": "gpt-4o",
"api_key": "your_openai_api_key_here"
}
]
🔒 Security Best Practices:
- Add
OAI_CONFIG_LIST
to your.gitignore
- Never share or commit files containing API keys
- Revoke and regenerate keys if accidentally exposed
- OpenAI: Get your API key from OpenAI Platform
- Serper: Sign up at Serper.dev for web search (free tier available)
- Browserless (Optional): Get API key from Browserless.io for enhanced scraping
- Replicate (Optional): Sign up at Replicate.com for AI image generation
python agentcy.py
Follow the prompts to:
- Enter your brand/company name
- Describe your goal or problem statement
- Watch the AI agents collaborate to create a comprehensive solution
📍 Enter the brand or company name: TechStartup
🎯 Enter your goal, brief, or problem statement: Launch a new mobile app for productivity
The system will generate:
- Market research and competitive analysis
- Strategic positioning and messaging
- Creative copy and content
- Visual concepts and imagery
- Marketing campaign strategy
- Media planning recommendations
output/
├── research/ # Research reports and market analysis
├── content/ # Generated copy and content
├── images/ # AI-generated visual content
└── session_logs/ # Complete session transcripts
"Configuration validation failed"
- Ensure
OPENAI_API_KEY
andSERPER_API_KEY
are set in.env
- Check that your OpenAI API key is valid and has sufficient credits
"Module not found" errors
- Run
uv install
orpip install -e .
to install dependencies - Optional features require additional packages (see error messages for specific install commands)
Image generation not working
- Install replicate:
pip install replicate
- Set
REPLICATE_API_TOKEN
in your.env
file - Ensure you have credits in your Replicate account
Research/scraping failures
- Verify
SERPER_API_KEY
is correct - For enhanced scraping, add
BROWSERLESS_API_KEY
- Check your internet connection
Run the test suite to verify everything is working:
python test_agentcy.py
If you're upgrading from Agentcy 1.0, here are the key changes:
- Framework: Migrated from AutoGen to AG2
- Dependencies: Removed LangChain, updated to modern libraries
- Structure: Consolidated from multiple files to single
agentcy.py
- Configuration: New environment-based configuration system
- AI image generation and critique
- Advanced web scraping with fallbacks
- Professional marketing frameworks
- Organized output structure
- Enhanced error handling
- Security First: If you have an existing
OAI_CONFIG_LIST
with exposed API keys, revoke those keys immediately - Install new dependencies:
uv install
- Set up secure configuration using
.env
file (recommended) - Use
python agentcy.py
instead ofpython main.py
- Recommended: Use
.env
file for all API keys (more secure, easier to manage) - Alternative: Keep existing
OAI_CONFIG_LIST
file (ensure it's in.gitignore
)
- Modernize to AG2 framework
- Remove LangChain dependency
- Consolidate codebase into single file
- Add visual content generation
- Implement professional frameworks
- Enhanced research capabilities
- Organized output structure
- Production-ready error handling
- Local LLM support (Ollama integration)
- Web-based UI for project management
- Template system for different industries
- Integration with design tools (Figma, Adobe)
- Performance analytics and optimization
- Multi-language support
- Custom agent training workflows
- API endpoints for programmatic access
MIT License. See LICENSE for more information.