Create AI-Generated UGC Marketing Videos with Telegram & GPT-4
📌 How to Set Up the AI UGC Video Automation System This system uses Telegram + N8N (no-code automation) + AI models to generate user-generated content (UGC) videos automatically.
🔹 Overview Input: Send a photo of the product + character via Telegram bot. Process: N8N workflow handles: Image analysis Prompt generation Image creation Video clip generation Combining clips into a final UGC ad Output: Video sent back to Telegram (or other destination like Google Drive/Dropbox).
🔹 System Workflow Input Section
Telegram Setup: Create a Telegram bot and get its Bot ID. Connect the bot to N8N Telegram Trigger node. Bot listens for messages (photos + instructions). Send Input Upload one compressed image with : Product Character (optional) Example: “Create a UGC video with Gandalf promoting The Hobbit book. 20 seconds long.” Image Handling
. N8N retrieves the image from Telegram (via file path). . OpenAI agent analyzes the image: . Extracts product details (brand, color, description). . Extracts character details (name, outfit, style).
Confirm Input: . System replies on Telegram: “Got it. I’m now creating your video.”
Step 1: Create Image AI Agent (Image Prompt) Generates a natural, UGC-style prompt (realistic iPhone photo look). Uses OpenAI GPT to structure prompt and aspect ratio (2:3 or 3:2). Image Generation Sends prompt + aspect ratio to Key.AI → 4.0 Image Model. Waits until image is generated. Example: Gandalf holding The Hobbit book.
Step 2: Create Video Clips AI Agent (Video Prompt) Creates video script and scenes (dialogue + setting). Calculates how many clips needed (e.g. 20s request → 3 x 8s clips). Ensures UGC style (casual, amateur look). Clip Generation Sends prompts to Key.AI V3 model (Fast or Quality). Input: Prompt + image + aspect ratio. Output: Multiple short clips (8s each). Wait for Processing Clips take a few minutes to generate. Retrieve video URLs from Key.AI.
Step 3: Combine Video Aggregate Clips 2.Collect all video URLs (from multiple clips). Merge with FFmpeg Send videos to File.AI → FFmpeg Merge Service. Stitches clips into one continuous video. Final Output Final merged video returned as a download URL. N8N sends the video back to your Telegram chat (or connected storage).
🔹 Customization Options Models: V3 Fast (~$0.40/clip, cheaper, good enough). V3 Quality (~$2/clip, slightly higher quality). Video Length: AI automatically adjusts number of clips. Outputs: Telegram (default) Can be extended to Google Drive, Dropbox, etc.
🔹 Cost Image generation: a few cents. Video clips: ~$0.40 each with V3 Fast. Clip merging: < $0.01. Much cheaper than manual UGC production.
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Reusable and Independently Testable Sub-workflow
Reusable and Independently Testable Sub-workflow This n8n workflow provides a standardized structure for building and te...
Build a PDF-Based RAG System with OpenAI, Pinecone and Cohere Reranking
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This workflow prov...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments