quantum-ai-v2/agents/configs/agents/social-ads-generator.json
Claude bc662e6af0 🎯 Implement dynamic agent configuration system for ultimate scalability
BREAKTHROUGH: Configuration-driven agent management that scales to 100+ agents

## New System Architecture:
- **JSON Configuration Files**: All agents defined in version-controlled JSON
- **Dynamic Loading**: populate_agents.py reads from config files automatically
- **Zero Code Changes**: Add new agents by creating JSON files only
- **Automatic Railway Sync**: Single command ensures database consistency

## File Structure:
- agents/configs/categories/categories.json - All categories
- agents/configs/agents/*.json - Individual agent configurations
- agents/configs/README.md - Complete documentation

## Key Benefits:
 **Ultimate Scalability**: Add 1000+ agents without touching code
 **Version Control**: All agent definitions tracked in git
 **Railway Consistency**: Single command syncs local and production
 **Developer Experience**: JSON files are easier than Python commands
 **Validation**: Built-in error handling and field validation
 **Documentation**: Self-documenting with clear examples

## Migration Path:
- Extracted all 6 existing agents to JSON configurations
- Updated populate_agents.py to load dynamically from configs
- Maintained backward compatibility
- Added comprehensive documentation

## Usage:
```bash
# Add new agent: Create JSON file in agents/configs/agents/
# Deploy to Railway: python manage.py populate_agents
# Result: Agent automatically appears in marketplace
```

This solves the original issue: "if we create another will it show on railway also???"
Answer: YES - just create JSON file and run populate_agents\!

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 08:38:59 +05:30

49 lines
1.6 KiB
JSON

{
"slug": "social-ads-generator",
"name": "Social Ads Generator",
"short_description": "Create compelling social media advertisements optimized for different platforms",
"description": "Generate engaging social media advertisements with AI-powered content generation. Optimized for Facebook, Instagram, LinkedIn, Twitter, TikTok, and YouTube.",
"category": "marketing",
"price": 6.0,
"agent_type": "form",
"system_type": "webhook",
"form_schema": {
"fields": [
{
"name": "description",
"type": "textarea",
"label": "Describe what you'd like to generate",
"placeholder": "Describe the product, service, or campaign",
"required": true,
"rows": 4
},
{
"name": "social_platform",
"type": "select",
"label": "For Social Media Platform",
"required": true,
"options": [
{"value": "", "label": "Select a platform..."},
{"value": "facebook", "label": "Facebook"},
{"value": "instagram", "label": "Instagram"},
{"value": "linkedin", "label": "LinkedIn"},
{"value": "twitter", "label": "X (Twitter)"}
]
},
{
"name": "include_emoji",
"type": "select",
"label": "Include Emoji",
"required": true,
"options": [
{"value": "", "label": "Select an option..."},
{"value": "yes", "label": "Yes"},
{"value": "no", "label": "No"}
]
}
]
},
"webhook_url": "http://localhost:5678/webhook/2dc234d8-7217-454a-83e9-81afe5b4fe2d",
"access_url_name": "",
"display_url_name": ""
}