Skip to content

bitsandbrainsai/ai-veo3-ad-generation-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI Cinematic Ad Intelligence Platform Logo Animation

AI Cinematic Ad Intelligence Platform

From Prompt to Production โ€” Multi-Scene AI Ads, Orchestrated, Rendered, and Delivered in Real Time

An enterprise-grade, AI-native platform engineered to transform raw voice or text inputs into fully orchestrated, multi-scene cinematic advertisements at scale. Powered by agentic prompt intelligence, event-driven automation, and distributed cloud rendering, the system executes an end-to-end creative pipelineโ€”from ideation and scene generation to compositing and final deliveryโ€”with precision and speed.


๐Ÿงพ Executive Summary

This platform converts a userโ€™s Telegram voice message or text ad idea into a fully produced, cinematic 6-scene video advertisement using generative AI. It automatically:

  • Accepts voice or text input from Telegram
  • Transcribes speech using OpenAI
  • Designs a six-scene ad narrative using GPT
  • Generates each scene via Google Veo3
  • Stores clips in Google Drive
  • Indexes them in Airtable
  • Stitches them into a full video using JSON2Video
  • Delivers the final ad back to the user on Telegram

The system runs as a fully autonomous, agentic, AI-driven creative production pipeline. :contentReference[oaicite:1]{index=1}


๐Ÿ“‘ Table of Contents

  • ๐Ÿท๏ธ Project Title
  • ๐Ÿงพ Executive Summary
  • ๐Ÿงฉ Project Overview
  • ๐ŸŽฏ Objectives & Goals
  • โœ… Acceptance Criteria
  • ๐Ÿ’ป Prerequisites
  • โš™๏ธ Installation & Setup
  • ๐Ÿ”— API Documentation
  • ๐Ÿ–ฅ๏ธ UI / Frontend
  • ๐Ÿ”ข Status Codes
  • ๐Ÿš€ Features
  • ๐Ÿงฑ Tech Stack & Architecture
  • ๐Ÿ› ๏ธ Workflow & Implementation
  • ๐Ÿงช Testing & Validation
  • ๐Ÿ” Validation Summary
  • ๐Ÿงฐ Verification Tools
  • ๐Ÿงฏ Troubleshooting
  • ๐Ÿ”’ Security & Secrets
  • โ˜๏ธ Deployment
  • โšก Quick-Start
  • ๐Ÿงพ Usage Notes
  • ๐Ÿง  Performance
  • ๐ŸŒŸ Enhancements
  • ๐Ÿงฉ Maintenance
  • ๐Ÿ† Achievements
  • ๐Ÿงฎ High-Level Architecture
  • ๐Ÿ—‚๏ธ Project Structure
  • ๐Ÿงญ Live Demonstration
  • ๐Ÿ’ก Summary, Closure & Compliance

๐Ÿงฉ Project Overview

AI-Veo3-Ad-Generation-Platform is a production-grade AI Creative Automation Engine. It removes human intervention from the entire ad creation lifecycle by combining:

  • Conversational AI
  • Multimodal prompt engineering
  • AI video synthesis (Veo3)
  • Automated media storage
  • Database indexing
  • Final cinematic rendering

The system is triggered by Telegram and orchestrated entirely by n8n. :contentReference[oaicite:2]{index=2}


๐ŸŽฏ Objectives & Goals

  • Convert voice โ†’ ad โ†’ video with zero manual steps
  • Enforce consistent cinematic structure across all ads
  • Enable scalable AI-driven creative production
  • Provide cloud-stored video assets and traceability
  • Deliver output back to users instantly

โœ… Acceptance Criteria

AreaAcceptance Requirement
Input HandlingSystem must accept both Telegram voice and text messages and route them correctly
TranscriptionVoice messages must be transcribed into text with >95% accuracy
AI ScriptGPT must generate a valid 6-scene JSON payload for Veo3
Video GenerationEach scene must be rendered by Veo3 and stored successfully
DatabaseAirtable must persist all scene URLs with the campaign name
Final VideoJSON2Video must produce a Full-HD merged ad
DeliveryFinal video must be sent to the originating Telegram user

๐Ÿ’ป Prerequisites

  • n8n (self-hosted or cloud)
  • Telegram Bot Token
  • OpenAI API Key
  • Veo3 (fal.ai) API Key & Secret
  • Google Drive OAuth credentials
  • Airtable Base & Table
  • JSON2Video API Key
  • Public HTTPS webhook URL

โš™๏ธ Installation & Setup

  1. Deploy n8n using Docker or Cloud
  2. Import veo3-ad-generator.json workflow
  3. Configure credentials:
    • Telegram
    • OpenAI
    • Google Drive
    • Airtable
    • Veo3 (fal.ai)
    • JSON2Video
  4. Create Airtable schema with fields: Name, voice_over, scene_link1 โ†’ scene_link6
  5. Create Google Drive folder for videos
  6. Set Telegram webhook to n8n trigger URL

๐Ÿ”— API Documentation

ServiceEndpointPurpose
TelegramgetFile / sendVideoReceive voice & deliver video
OpenAI/audio/transcriptionsSpeech to text
OpenAI GPT/chat/completionsAd scene generation
Veo3queue.fal.run/fal-ai/veo3Scene video generation
JSON2Video/v2/moviesFinal video stitching

๐Ÿ–ฅ๏ธ UI / Frontend

The platform uses Telegram as the UI layer.

LayerDescription
Telegram ChatUser inputs voice or text
Telegram Video PlayerFinal ad playback

No web frontend is required. All state, scenes, and progress is handled by n8n + Airtable.


๐Ÿ”ข Status Codes

CodeMeaning
200Successful video generation
400Invalid input or missing prompt
401Invalid API keys
429Rate limit reached
500AI service or Veo3 failure

๐Ÿš€ Features

CapabilityDescription
Voice IntakeTelegram accepts audio messages and extracts voice files
Speech-to-TextOpenAI Whisper transcribes spoken ad ideas
Ad IntelligenceGPT-based AdScript AI creates 6-scene narrative JSON
Video GenerationEach scene rendered using Veo3 via fal.ai queue API
Cloud StorageAll scenes stored to Google Drive
Data IndexScene links persisted into Airtable
Final RenderJSON2Video stitches 6 scenes into a full HD movie
DeliveryTelegram sends final video + URL back to the user

๐Ÿงฑ Tech Stack & Architecture

Telegram โ†’ n8n โ†’ OpenAI โ†’ Veo3 โ†’ Google Drive โ†’ Airtable โ†’ JSON2Video โ†’ Telegram

[User]
   |
[Telegram]
   |
[n8n Orchestrator]
   |
[OpenAI (Transcribe + Script)]
   |
[Veo3 Generator]
   |
[Google Drive Storage]
   |
[Airtable Scene Index]
   |
[JSON2Video Movie Engine]
   |
[Telegram Delivery]

๐Ÿ› ๏ธ Workflow & Implementation

  1. User sends voice/text to Telegram
  2. n8n detects message type
  3. Voice โ†’ OpenAI Whisper โ†’ text
  4. Text โ†’ GPT โ†’ 6-scene JSON
  5. Each scene sent to Veo3
  6. Veo3 returns video URLs
  7. Videos saved to Google Drive
  8. Links stored in Airtable
  9. JSON2Video builds final movie
  10. Telegram sends the final ad

๐Ÿงช Testing & Validation

IDAreaCommandExpected OutputExplanation
T01TelegramSend voice messagen8n triggeredValidates webhook
T02OpenAISubmit audioTranscript returnedSpeech pipeline
T03Veo3Submit promptVideo URLScene generation
T04JSON2VideoCreate movieMP4 URLFinal render

๐Ÿ” Validation Summary

  • All six scenes are verified in Airtable
  • Google Drive contains all video clips
  • Final movie plays successfully
  • Telegram receives the output

๐Ÿงฐ Verification Testing Tools

  • Postman โ€“ API checks
  • Telegram Bot console
  • n8n Execution Logs
  • Airtable record viewer
  • Google Drive media preview

๐Ÿงฏ Troubleshooting & Debugging

IssueCauseFix
No videoVeo3 timeoutIncrease wait nodes
Missing scenesAirtable mappingFix upsert schema
Telegram failureBot token expiredRegenerate token

๐Ÿ”’ Security & Secrets

  • All API keys stored in n8n credentials vault
  • Telegram Webhooks use HTTPS
  • No secrets are hardcoded

โ˜๏ธ Deployment

Recommended deployment: n8n on VPS or Cloud with HTTPS + public IP.

Flow:
Telegram โ†’ HTTPS โ†’ n8n โ†’ Cloud APIs โ†’ User

โšก Quick-Start Cheat Sheet

  1. Send voice message to Telegram bot
  2. Wait ~2โ€“5 minutes
  3. Receive AI-generated ad video

๐Ÿงพ Usage Notes

  • Best results with 5โ€“20 sec voice prompts
  • Describe product, audience, and tone

๐Ÿง  Performance & Optimization

  • Parallel Veo3 scene generation
  • Async waits avoid blocking
  • Cloud-based scaling via fal.ai

๐ŸŒŸ Enhancements & Features

  • Multi-language ads
  • Brand voice presets
  • Auto subtitles
  • Bulk campaign generation

๐Ÿงฉ Maintenance & Future Work

  • Add web dashboard
  • Add billing system
  • Brand asset library

๐Ÿ† Key Achievements

  • Fully autonomous ad creation
  • AI cinematic storytelling
  • Cloud-native video factory

๐Ÿ—‚๏ธ Project Structure

AI-VEO3-AD-GENERATION-PLATFORM
โ”‚
โ”œโ”€โ”€ assets
โ”‚   โ””โ”€โ”€ diagrams
โ”‚       โ”œโ”€โ”€ system-architecture-1.png
โ”‚       โ”œโ”€โ”€ system-architecture-2.png
โ”‚       โ”œโ”€โ”€ system-architecture-3.png
โ”‚       โ”œโ”€โ”€ system-architecture-4.png
โ”‚       โ”œโ”€โ”€ system-architecture-5.png
โ”‚       โ”œโ”€โ”€ system-architecture-6.png
โ”‚       โ”œโ”€โ”€ system-architecture-7.png
โ”‚       โ””โ”€โ”€ system-architecture-8.png
โ”‚
โ”œโ”€โ”€ docs
โ”‚   โ”œโ”€โ”€ architecture.md
โ”‚   โ”œโ”€โ”€ data-flow.md
โ”‚   โ”œโ”€โ”€ execution-phases.md
โ”‚   โ”œโ”€โ”€ services.md
โ”‚   โ””โ”€โ”€ setup.md
โ”‚
โ”œโ”€โ”€ workflows
โ”‚   โ””โ”€โ”€ veo3-ad-generator.json
โ”‚
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .gitignore
โ””โ”€โ”€ README.md

๐Ÿงฎ High-Level Architecture

Voice/Text
   โ†“
Telegram Bot
   โ†“
n8n Intake Router
   โ†“
AI Transcription
   โ†“
AI Creative Director
   โ†“
6ร— Veo3 Video Jobs
   โ†“
Cloud Storage
   โ†“
Scene Database
   โ†“
Final Video Composer
   โ†“
User Delivery

๐Ÿงญ How to Demonstrate Live

  1. Open Telegram
  2. Send voice message to bot
  3. Observe n8n workflow execution
  4. Watch scenes appear in Google Drive
  5. Final video arrives in Telegram

๐Ÿ’ก Summary, Closure & Compliance

This platform represents a **next-generation AI creative production system** capable of generating full cinematic advertisements without any human intervention. It complies with:

  • Cloud-native orchestration principles
  • Zero-trust API security
  • Event-driven automation design
  • AI-first creative workflows

This architecture is scalable, monetizable, enterprise-ready, and compliant with modern AI SaaS production standards. The system can be commercialized as an AI Ad Factory, Creative Automation API, or White-Label Marketing Engine. :contentReference[oaicite:3]{index=3}

About

A production-ready, enterprise-grade AI ad generation platform orchestrated with n8n, OpenAI, and Veo3. Converts voice or text into multi-scene cinematic ads using agentic prompt engineering, distributed cloud rendering, event-driven pipelines, Airtable indexing, JSON2Video compositing, and automated creative orchestration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors