AI Ad Campaign Core
What it does
Our AI-Powered Marketing Campaign Dashboard revolutionizes digital marketing by deploying seven autonomous AI agents that work together to create, launch, and optimize complete marketing campaigns in just 5-10 minutes. The system analyzes target audiences, allocates budgets intelligently, generates compelling ad copy, creates professional images and videos using Amazon Nova Canvas and Nova Reel, and continuously optimizes campaign performance in real-time.
The platform reduces traditional campaign creation time from 7-14 days to under 10 minutes, while cutting costs from $5,000-$10,000 to approximately $1.86 per campaign—an 8,000% cost reduction. Users simply input their product details and budget, then watch as the AI agents autonomously handle audience research, budget allocation, content generation, and performance analytics. The system supports multiple platforms including Instagram, Facebook, TikTok, and LinkedIn, with a human-in-the-loop approval process for final content review.
Everything is fully functional in the local version, with all seven agents working seamlessly together through the Strands framework and AWS Bedrock integration.
How we built it
We architected a full-stack application combining modern web technologies with cutting-edge AI capabilities:
Frontend Stack:
- React 18 with TypeScript for type-safe UI development
- Vite as the build tool for lightning-fast development
- Tailwind CSS for responsive, utility-first styling
- Vitest for comprehensive testing
- Deployed on AWS Amplify for scalable static hosting
Backend Stack:
- Python 3.11 with FastAPI for high-performance API endpoints
- Strands Agents framework for orchestrating AI agent workflows
- Claude 3.7 Sonnet via AWS Bedrock for intelligent decision-making
- Model Context Protocol (MCP) integration through AWS AgentCore gateway
- Deployed on Railway for serverless backend hosting
AI Agent Architecture:
- Audience Agent - Analyzes demographics and identifies target segments (2 min)
- Budget Agent - Optimally allocates budget across platforms (1 min)
- Prompt Agent - Crafts platform-specific ad strategies (1 min)
- Content Agent - Generates ads via MCP gateway (2-3 min)
- Content Revision Agent - Refines and improves generated content based on feedback
- Analytics Agent - Tracks CTR, ROI, and conversions in real-time
- Optimization Agent - Continuously improves campaign performance
The agents communicate through the MCP gateway, which provides access to Amazon Nova Canvas for image generation ($0.04/image), Amazon Nova Reel for video creation ($0.80/video), and AWS S3 for media storage. The entire system is containerized with Docker for consistent deployment across environments.
Challenges we ran into
MCP Gateway Integration: Implementing the Model Context Protocol gateway was complex, requiring careful orchestration between AI agents and AWS services. We had to design a robust error-handling system to manage API rate limits and ensure graceful degradation when services were temporarily unavailable.
Agent Coordination: Synchronizing seven autonomous agents to work together seamlessly proved challenging. We needed to implement a sophisticated state management system to track agent progress, handle dependencies between agents, and ensure data consistency across the workflow.
Real-time Performance Tracking: Building a real-time analytics system that could process campaign metrics while agents were still generating content required careful backend architecture. We implemented WebSocket connections and optimized database queries to maintain sub-second response times.
Content Generation Quality: Ensuring AI-generated content met professional marketing standards required extensive prompt engineering and iterative refinement. We developed a multi-stage validation system that checks content quality, brand consistency, and platform-specific requirements.
Cost Optimization: Balancing AI model usage with cost efficiency was critical. We implemented intelligent caching, batch processing for similar requests, and strategic model selection (using different Claude variants based on task complexity) to keep per-campaign costs under $2.
Accomplishments that we're proud of
Unprecedented Speed and Cost Reduction: We achieved a 2,000x speed improvement (from 7-14 days to 5-10 minutes) and 8,000% cost reduction (from $5,000-$10,000 to $1.86) compared to traditional marketing workflows—a truly transformative impact on the industry.
Fully Functional Agentic AI System: We successfully implemented a production-ready multi-agent system where seven specialized AI agents work autonomously and collaboratively. The local version is fully operational with all agents executing their tasks flawlessly, including the Content Revision Agent that iteratively refines generated content based on quality standards and user feedback.
Seamless MCP Integration: We built a robust integration with AWS AgentCore's Model Context Protocol, enabling our agents to access external tools like Nova Canvas and Nova Reel. This architecture is extensible to future integrations with social media APIs for automated posting.
Professional-Grade Content Generation: Our system generates marketing content—including ad copy, images, and videos—that meets professional standards. The quality is consistent and often indistinguishable from human-created content.
Complete End-to-End Solution: We delivered a full-stack application with polished UI/UX, comprehensive documentation, Docker containerization, and deployment guides for AWS Amplify and Railway. The project is production-ready and scalable.
What we learned
Agentic AI Architecture: We gained deep expertise in designing multi-agent systems where AI agents have specialized roles but work collaboratively toward a common goal. Understanding agent orchestration, state management, and inter-agent communication patterns was invaluable.
Model Context Protocol (MCP): We learned how MCP enables AI agents to interact with external tools and services in a standardized way. This protocol is crucial for building extensible AI systems that can integrate with diverse APIs and platforms.
Prompt Engineering at Scale: Crafting effective prompts for different agent roles taught us the importance of context, specificity, and iterative refinement. We learned that prompt quality directly impacts output consistency and reliability.
AWS Bedrock Ecosystem: We explored the full capabilities of AWS Bedrock, including Claude 3.7 Sonnet for reasoning, Nova Canvas for image generation, and Nova Reel for video creation. Understanding pricing models and optimization strategies was essential.
Production AI Deployment: We learned the complexities of deploying AI systems to production, including managing API keys securely, handling rate limits, implementing retry logic, monitoring costs, and ensuring system reliability.
Human-AI Collaboration: We discovered that the most effective AI systems maintain human oversight at critical decision points. Our human-in-the-loop approval workflow balances automation with quality control.
What's next for AI Advertisement Campaign
Automated Social Media Posting: Integrate real social media APIs (Facebook, Instagram, TikTok, LinkedIn) through the MCP gateway to enable agents to automatically post approved campaigns, eliminating manual deployment steps.
Real-World Performance Tracking: Connect to actual platform analytics APIs to track real campaign performance metrics (impressions, clicks, conversions) and enable agents to make data-driven optimization decisions based on live data.
Advanced A/B Testing: Implement automated A/B testing where agents generate multiple creative variations, deploy them simultaneously, analyze performance, and automatically scale winning variants while pausing underperformers.
Multi-Campaign Management: Expand the system to manage multiple campaigns simultaneously, with intelligent resource allocation across campaigns and cross-campaign learning to improve overall performance.
Custom Brand Voice Training: Allow users to train agents on their specific brand guidelines, tone of voice, and visual style to ensure all generated content maintains perfect brand consistency.
Predictive Analytics: Implement machine learning models that predict campaign performance before launch, enabling agents to proactively optimize creative and targeting strategies.
Expanded Content Formats: Add support for additional content types including carousel ads, story formats, interactive content, and longer-form video content for platforms like YouTube.
Enterprise Features: Build team collaboration tools, approval workflows, role-based access control, and white-label capabilities for marketing agencies managing multiple client campaigns.
Built With
- bedrock
- claude
- kiro
- mcp
- postcss
- python
- react
- tailwind
- typescript
Log in or sign up for Devpost to join the conversation.