A multi-agent AI system built with Phi Framework and Groq's LLaMA-3 model that automates social media content creation. The system uses specialized agents to research trends, generate engaging content, and optimize posts for different platforms.
- 🧠 Multi-Agent Architecture - 3 specialized AI agents working together
- 📱 Platform Optimization - Adapts content for Instagram, Twitter, LinkedIn
- 🔥 Real-Time Trends - Finds trending topics and hashtags
- 📊 Content Variations - Generates multiple versions for A/B testing
- ⚡ Fast Processing - Powered by Groq's ultra-fast LLMs
- Research Agent → Finds trending topics and hashtags using web search
- Content Agent → Creates engaging posts and captions
- Optimization Agent → Adapts content for different social platforms
- Orchestrator → Coordinates all agents for comprehensive output
- Python 3.8+
- Groq API Key → Get it here
- Phi API Key → Get it here
# Clone repository
git clone https://github.com/yourusername/smart-content-creator.git
cd smart-content-creator
# Create virtual environment
python -m venv venv
source venv/bin/activate # For Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
echo "GROQ_API_KEY=your_groq_api_key_here" > .env
echo "PHI_API_KEY=your_phi_api_key_here" >> .env
# Run the system
python main.py# Generate fitness content
content_creator_system.print_response(
"Create Instagram posts for a fitness influencer focusing on home workouts",
stream=True
)
# Create business content
content_creator_system.print_response(
"Generate LinkedIn content for a tech startup launching an AI product",
stream=True
)
# Multi-platform optimization
content_creator_system.print_response(
"Create content about productivity tips and optimize for Instagram, Twitter, and LinkedIn",
stream=True
)# Launch playground interface
python playground.py
# Open in browser
http://localhost:7777- phidata
- groq
- python-dotenv
- duckduckgo-search
- requests
- beautifulsoup4
- Marketing Agencies → Manage multiple client accounts efficiently
- Small Businesses → Automate social media presence
- Content Creators → Scale content production
- E-commerce → Generate product-focused social content
- ✅ Trending topic research with sources
- 📝 Platform-specific content variations
- 📊 Hashtag recommendations with engagement data
- 📋 Optimized formatting for each platform
# Change content niche by modifying the query
content_creator_system.print_response("Your custom content request here", stream=True)- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Phi Framework - Multi-agent AI framework
- Groq - Ultra-fast LLM inference
- DuckDuckGo - Privacy-focused search API