Create AI-generated UGC marketing videos with Telegram & GPT-4
Go to WorkflowDescription
π 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 and also put the http token in the Bot id node too
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.