Create AI-generated UGC marketing videos with Telegram & GPT-4

Go to Workflow
2,658 views
Built by Deniz Deniz
Created on June 09, 2026

Description

πŸ“Œ 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.

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Telegram
n8n-nodes-base.telegram
Think Tool
@n8n/n8n-nodes-langchain.toolThink