Skip to content

brndngln/ai-ad-creative-strategist

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿท๏ธ Project Title

AI Ad Creative Strategist (Foreplay + SORA)


๐Ÿงพ Executive Summary

AI Ad Creative Strategist is an enterprise-grade, agentic AI system that automates the full lifecycle of high-performance advertising creative generation. The platform continuously monitors competitor ads, identifies winning creatives, extracts creative intelligence, adapts strategies to a target brand, and generates new AI-powered video advertisements using advanced multimodal models.

The solution replaces manual ad research, creative strategy formulation, and initial video production with a deterministic, auditable, and scalable workflow.


๐Ÿ“‘ Table of Contents

  1. ๐Ÿงฉ Project Overview
  2. ๐ŸŽฏ Objectives & Goals
  3. โœ… Acceptance Criteria
  4. ๐Ÿ’ป Prerequisites
  5. โš™๏ธ Installation & Setup
  6. ๐Ÿ”— API Documentation
  7. ๐Ÿ–ฅ๏ธ UI / Frontend
  8. ๐Ÿ”ข Status Codes
  9. ๐Ÿš€ Features
  10. ๐Ÿงฑ Tech Stack & Architecture
  11. ๐Ÿ› ๏ธ Workflow & Implementation
  12. ๐Ÿงช Testing & Validation
  13. ๐Ÿ” Validation Summary
  14. ๐Ÿงฐ Verification Testing Tools
  15. ๐Ÿงฏ Troubleshooting & Debugging
  16. ๐Ÿ”’ Security & Secrets
  17. โ˜๏ธ Deployment
  18. โšก Quick-Start Cheat Sheet
  19. ๐Ÿงพ Usage Notes
  20. ๐Ÿง  Performance & Optimization
  21. ๐ŸŒŸ Enhancements & Features
  22. ๐Ÿงฉ Maintenance & Future Work
  23. ๐Ÿ† Key Achievements
  24. ๐Ÿงฎ High-Level Architecture
  25. ๐Ÿ—‚๏ธ Project Structure
  26. ๐Ÿงญ How to Demonstrate Live
  27. ๐Ÿ’ก Summary, Closure & Compliance

๐Ÿงฉ Project Overview

This project implements a five-phase AI advertising pipeline orchestrated through a workflow automation engine. It integrates external ad intelligence APIs, multiple AI models, persistent data storage, and human-in-the-loop controls.

The system is designed to be:

  • Fully automated yet review-gated
  • Data-driven and repeatable
  • Scalable across brands and markets
  • Auditable and compliant

๐ŸŽฏ Objectives & Goals

  • Automate competitor ad discovery
  • Identify statistically winning creatives
  • Extract reusable creative intelligence
  • Adapt strategies to a new brand identity
  • Generate production-ready AI video ads
  • Reduce time-to-creative from weeks to minutes

โœ… Acceptance Criteria

  • Workflow runs end-to-end without manual intervention
  • Only qualified ads are processed
  • Generated creatives are brand-aligned
  • All outputs are logged and traceable
  • No secrets are committed to source control

๐Ÿ’ป Prerequisites

  • Node-based workflow orchestration platform
  • API access to ad intelligence provider
  • Access to multimodal AI models
  • Persistent datastore (Airtable)
  • Team communication platform (Slack)

โš™๏ธ Installation & Setup

  1. Clone the repository
  2. Configure environment variables
  3. Import workflow JSON
  4. Bind credentials
  5. Populate brand data
  6. Enable scheduled trigger

๐Ÿ”— API Documentation

The AI Ad Creative Strategist integrates with multiple external APIs to enable end-to-end creative intelligence, adaptation, and generation. Each API plays a distinct role in the pipeline and is invoked at a specific phase of execution.

Integrated APIs Overview

API / Service Phase Used Purpose Data In Data Out
Foreplay Public API Phase 1 Competitor ad discovery Brand ID, filters Ad metadata, video URLs
Gemini Multimodal API Phase 3 Creative intelligence extraction Video URL, transcript Scene analysis, hooks, CTA logic
Anthropic Claude API Phase 4 Brand strategy adaptation Creative blueprint, brand data SORA-optimized prompt
SORA 2 Video API Phase 5 Video ad generation Structured prompt Generated video asset
Slack Webhook API Phase 5 Team notification Status payload Message delivery

API Invocation Characteristics

  • All API calls are synchronous within their execution phase
  • Rate limiting is controlled via loop iteration boundaries
  • Failures are isolated per ad item
  • Retries are delegated to workflow-level controls

๐Ÿ–ฅ๏ธ UI / Frontend

This project is backend-first. The UI consists of:

  • Workflow visualization canvas
  • Airtable dashboards
  • Slack notifications

Styling changes are managed at the brand data level rather than UI code.


๐Ÿ”ข Status Codes

CodeMeaning
200Successful execution
400Invalid input or configuration
401Authentication failure
500External service failure

๐Ÿš€ Features

The platform delivers a comprehensive feature set designed for modern performance marketing, creative operations, and AI-driven growth teams.

Core Functional Features

  • Automated competitor ad ingestion with zero manual research
  • Runtime-based qualification to identify proven winning creatives
  • Second-by-second video and narrative intelligence extraction
  • Brand-safe creative strategy adaptation using AI agents
  • Automated cinematic video generation using structured prompts

Operational & Enterprise Features

  • Full audit trail of inputs, transformations, and outputs
  • Human-in-the-loop approval workflow
  • Failure isolation and graceful degradation
  • Cost control via deterministic filtering
  • Extensible phase-based architecture

Business Impact Features

  • Reduced creative ideation time from weeks to minutes
  • Consistent creative quality across campaigns
  • Scalable multi-brand execution
  • Repeatable creative experimentation

๐Ÿงฑ Tech Stack & Architecture

Technology Stack

Layer Technology Role
Orchestration n8n Workflow automation and control
Ad Intelligence Foreplay API Competitor ad discovery
Analysis AI Gemini Multimodal creative analysis
Strategy AI Claude Brand adaptation and reasoning
Generation AI SORA 2 Video ad generation
Persistence Airtable Audit logs and brand data
Notification Slack Human review signaling

ASCII Component Diagram

[ Daily Scheduler ]
        |
        v
[ Foreplay API ]
        |
        v
[ Qualification Filter ]
        |
        v
[ Loop Controller ]
        |
        v
[ Gemini Analysis ]
        |
        v
[ Claude Adaptation ]
        |
        v
[ SORA 2 Generator ]
        |
        v
[ Airtable Logs ] ---> [ Slack Notifications ]

๐Ÿ› ๏ธ Workflow & Implementation

Step-by-Step Execution Flow

  1. Scheduled trigger initiates a new execution context
  2. Competitor ads are fetched from the ad intelligence API
  3. Ad metadata is normalized and prepared for evaluation
  4. Ads are filtered using runtime qualification rules
  5. Each qualified ad enters a controlled processing loop
  6. Video transcripts are aggregated and cleaned
  7. Multimodal AI analyzes creative structure and messaging
  8. Creative intelligence is persisted for traceability
  9. Brand context is loaded from internal datastore
  10. AI agent adapts winning strategy to brand constraints
  11. Structured video generation prompt is produced
  12. Video creative is generated using SORA 2
  13. Outputs are logged and notifications are dispatched

Failure Handling

  • Errors are scoped to individual ads
  • Workflow continues processing remaining items
  • Execution logs capture error context

๐Ÿงช Testing & Validation

IDAreaCommandExpected OutputExplanation
T-01IngestionManual runAds fetchedValidates API access
T-02FilteringManual runQualified ads onlyEnsures logic correctness

๐Ÿ” Validation Summary

All workflow phases were validated through controlled manual executions and persisted data inspection.


๐Ÿงฐ Verification Testing Tools & Command Examples

  • Workflow execution logs
  • Airtable record inspection
  • Slack message verification

๐Ÿงฏ Troubleshooting & Debugging

Common Issues and Resolutions

Issue Likely Cause Resolution
No ads fetched API credentials invalid Verify API token and permissions
No winning ads Strict runtime filters Adjust qualification thresholds
Off-brand output Incomplete brand data Review brand context records
High cost execution Too many qualified ads Reduce loop batch size

Debugging Best Practices

  • Inspect node-level execution logs
  • Validate intermediate data objects
  • Re-run workflow with a single ad

๐Ÿ”’ Security & Secrets

  • All secrets stored externally
  • .env.example provided
  • No credentials in repository

โ˜๏ธ Deployment

The project is designed for backend execution, while documentation and dashboards can be deployed using modern frontend hosting platforms.

Deployment Targets

  • Workflow Engine: Self-hosted or managed
  • Documentation: Vercel (static deployment)

Deployment Characteristics

  • Stateless execution model
  • No runtime frontend dependency
  • Separation of compute and presentation

โšก Quick-Start Cheat Sheet

  • Import workflow
  • Bind credentials
  • Enable trigger
  • Review Slack output

๐Ÿงพ Usage Notes

  • Generated ads are paused by default
  • Human review is mandatory

๐Ÿง  Performance & Optimization

  • Batch processing reduces cost
  • Filtering minimizes AI usage
  • Stateless execution ensures scalability

๐ŸŒŸ Enhancements & Features

  • Multi-brand parallel execution
  • Creative A/B feedback loop
  • Auto-scoring creatives

๐Ÿงฉ Maintenance & Future Work

  • Model upgrades
  • New ad platforms
  • Creative performance feedback

๐Ÿ† Key Achievements

  • End-to-end AI creative automation
  • Brand-safe generative ads
  • Production-ready architecture

๐Ÿงฎ High-Level Architecture

[ Time Trigger ]
       |
       v
[ Competitor Ad Source ]
       |
       v
[ Qualification Layer ]
       |
       v
[ Intelligence Extraction ]
       |
       v
[ Brand Strategy Layer ]
       |
       v
[ Creative Generation ]
       |
       v
[ Audit & Notification ]

๐Ÿ—‚๏ธ Project Structure

AI-AD-CREATIVE-STRATEGIST/
โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ diagrams/
โ”‚       โ”œโ”€โ”€ 01-workflow-trigger-and-ad-ingestion.png
โ”‚       โ”œโ”€โ”€ 02-winning-ad-filtering-and-analysis.png
โ”‚       โ”œโ”€โ”€ 03-brand-adaptation-and-prompt-generation.png
โ”‚       โ””โ”€โ”€ 04-video-generation-and-delivery.png
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ architecture-overview.md
โ”‚   โ”œโ”€โ”€ workflow-phases.md
โ”‚   โ”œโ”€โ”€ data-flow.md
โ”‚   โ””โ”€โ”€ setup-guide.md
โ”œโ”€โ”€ workflows/
โ”‚   โ””โ”€โ”€ ai-ad-creative-strategist.json
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .gitignore
โ””โ”€โ”€ README.md

๐Ÿงญ How to Demonstrate Live

  1. Open workflow canvas
  2. Run manual execution
  3. Show Airtable records
  4. Show Slack notification

๐Ÿ’ก Summary, Closure & Compliance

The AI Ad Creative Strategist represents a compliant, auditable, and production-ready implementation of agentic AI for marketing operations.

Compliance Alignment

  • Separation of secrets from code
  • Human approval gates
  • Deterministic execution paths
  • Complete audit trails

Closure Statement

This system demonstrates how modern AI can be operationalized responsibly to augment creative teams, reduce costs, and improve advertising effectiveness without compromising governance or control.

About

Advanced, end-to-end, enterprise-grade agentic AI pipeline that automates competitor ad intelligence, performs multimodal creative strategy extraction, enables brand-safe adaptation, and generates AI video ads using LLM reasoning, multimodal analysis, and deterministic workflow orchestration with full auditability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors