Loading...
Loading...
> **Note:** This document represents the original project plan and architecture. The actual implementation may have evolved during development. Please refer to the current codebase and documentation for the final system design.
> **Note:** This document represents the original project plan and architecture. The actual implementation may have evolved during development. Please refer to the current codebase and documentation for the final system design.
# Project Overview: Dynamic Ad Creative Generation Agent
## Project Mission
To design an autonomous, multi-agent system that automates the time-consuming process of creating, testing, and optimizing digital ad creatives. The system aims to save marketing teams significant time and resources while improving return on ad spend (ROAS) through rapid, data-driven iteration.
---
## Core Concept
The system operates as a **controlled feedback loop**, mimicking the workflow of an expert marketing team. It takes a high-level creative brief and manages the entire lifecycle of an ad creative: from initial generation and composition to pre-launch evaluation and post-launch performance analysis.
The process is iterative but not an infinite loop; it is a human-in-the-loop system where a marketer approves the initial campaign launch based on the agents' creative outputs, and then initiates future cycles based on performance recommendations. For the hackathon, the system will focus on generating **digital image ads**.
---
## The Agent Team
Our solution is composed of a team of six specialized AI agents, each with a distinct role:
1. **Coordinator Agent π§ :** The orchestrator and project manager. It directs the workflow, manages state, and delegates tasks to the other agents.
2. **Text Generator Agent βοΈ:** The expert copywriter. It generates multiple variations of ad copy (headlines, body text, CTAs) based on the creative brief.
3. **Image Generator Agent π¨:** The creative artist. It produces a variety of base visual concepts and raw images that align with the campaign's goals.
4. **Ad Composer Agent βοΈ:** The graphic designer. It takes the raw text and images and intelligently combines them, handling resizing, formatting, and text placement to create complete, platform-ready ad creatives.
5. **Evaluator Agent π§:** The pre-launch quality assurance expert. It performs a qualitative analysis of the composed ads, scoring them on criteria like clarity, engagement, and alignment with the brief.
6. **Analytics Agent π:** The post-launch data analyst. It ingests and interprets quantitative performance data (mocked for the hackathon) to identify winning creatives and provide actionable insights for future iterations.
---
## The Workflow
The system follows a logical, cyclical path to ensure continuous improvement.
```mermaid
graph TD
A[Marketer provides Creative Brief] --> B(Coordinator Agent);
B --> C{Text Generator Agent};
B --> D{Image Generator Agent};
C -- Text Variants --> F(Ad Composer Agent);
D -- Raw Images --> F;
F -- Composed Ad Creatives --> G{Evaluator Agent};
G -- Pre-Launch Score & Feedback --> B;
B --> H[Present Ranked Creatives for Launch];
H --> I[Launch Ads];
I -- Performance Data --> J{Analytics Agent};
J -- Insights & Recommendations --> B;
```
1. **Initiation:** A marketer provides a **Creative Brief**.
2. **Generation:** The **Coordinator** tasks the **Text** and **Image Generator** agents to create the raw assets in parallel.
3. **Composition:** The **Ad Composer Agent** receives the assets and assembles them into complete, polished ad creatives.
4. **Evaluation:** The **Evaluator Agent** scores the creatives, providing a pre-launch quality check.
5. **Launch:** The **Coordinator** presents the top-ranked creatives to the marketer for approval to launch.
6. **Analysis:** Post-launch, the **Analytics Agent** processes performance data to find what works.
7. **Iteration:** The insights are fed back to the **Coordinator**, ready to inform the next generation cycle upon the marketer's request.An AI client and API for WordPress to communicate with any generative AI models of various capabilities using a uniform API. Built on top of the [PHP AI Client](https://github.com/WordPress/php-ai-client), it provides a WordPress-native Prompt Builder, an Admin Settings Screen for credentials, automatic credential wiring, a PSR-compliant HTTP client, and a client-side JavaScript API.
> This file provides instructions for AI agents that read AGENTS.md (GitHub Copilot, Cursor, Windsurf, Cline, Aider, OpenCode, and others).
This document collects ideas and instructions for implementing future improvements. Follow these when adding features or refactoring the code.
> This file must stay **in sync** with `CLAUDE.md`. Whenever you change one, mirror the same change in the other so both tools continue to work correctly.