Transform product images into professional UGC video ads instantly. Receive images via Telegram, generate AI scripts with Gemini, and create videos automatically—all in one seamless workflow.
This powerful workflow automates the creation of User-Generated Content (UGC) product advertisement videos directly from product images shared via Telegram. Simply send a product photo to your bot, and the system intelligently analyzes the product, generates a professional ad script, creates a polished video, and delivers it back to you—all without manual intervention.
Key benefits and time savings:
Target use cases:
This workflow is ideal for:
No video editing experience required—the AI handles all creative and technical aspects.
Why it's needed: Telegram serves as your primary interface for this workflow. It receives product images from users, triggers the entire automation pipeline, and delivers the finished videos back. This creates a seamless, user-friendly experience where creators simply upload images and receive videos.
Setup steps:
Create a Telegram Bot
@BotFather
/newbot
123456789:ABCdefGHIjklmnoPQRstuvWXYZabcdefgh)Obtain Your Bot Token
Set Up Webhook in TaskAGI
Configure Webhook in BotFather
@BotFather in Telegram/setwebhook
Test the Connection
How to obtain API keys/credentials:
Configuration in TaskAGI:
{{secrets.telegram_token}} in node configurationsWhy it's needed: Google Gemini's advanced vision AI analyzes product images and generates compelling, professional UGC ad scripts. It understands product features, benefits, and emotional appeals—creating scripts optimized for conversion.
Setup steps:
Access Google Cloud Console
Enable the Gemini API
Create an API Key
AIzaSy...)Configure in TaskAGI
Set Model Parameters
gemini-2.5-flash (optimized for speed and quality)0.7 (balanced creativity and consistency)1500 (sufficient for detailed scripts)How to obtain API keys/credentials:
Configuration in TaskAGI:
{{secrets.gemini_api_key}}
Why it's needed: Google Veo 3 is a cutting-edge video generation AI that transforms scripts into polished, professional UGC-style videos. It handles cinematography, pacing, transitions, and visual effects—producing broadcast-quality content automatically.
Setup steps:
Access Google AI Studio
Generate Veo 3 API Key
Set Up Billing
Configure in TaskAGI
Test Video Generation
How to obtain API keys/credentials:
Configuration in TaskAGI:
{{secrets.veo3_api_key}}
Node 1: Workflow Overview (core.workflow_note)
UGC Video Generation Workflow
Converts product images → AI scripts → Professional videos
Triggered via Telegram, delivered back to user
Node 2: Receive Product Image (telegram.webhook)
message_with_photo
{{secrets.telegram_token}}
Node 3: Extract Image & Caption (core.edit_data)
photo_id → Store as {{photo_id}}
caption → Store as {{product_caption}}
user_id → Store as {{user_id}}
{
"photo_id": "AgADAgADr6cxG...",
"product_caption": "Blue wireless headphones",
"user_id": "123456789"
}
Node 4: Download Telegram Image (telegram.getFile)
{{photo_id}} (from Node 3){{secrets.telegram_token}}
file_path will be generated automaticallyNode 5: Analyze Product & Generate Script (googlegemini.analyzeImage)
{{secrets.gemini_api_key}}
gemini-2.5-flash
{{downloaded_image}} (from Node 4)You are a professional UGC ad scriptwriter specializing in
high-converting product advertisements. Analyze the product
image and create a 30-second script that:
- Opens with a relatable problem
- Showcases product benefits naturally
- Includes a clear call-to-action
- Uses conversational, authentic language
- Targets social media audiences (TikTok/Instagram style)
0.7 (balanced creativity)1500
"You know that frustrating moment when your headphones
keep falling out during workouts? These wireless headphones
have this incredible secure-fit design... [continues for 30 seconds]"
Node 6: Generate UGC Video (googleveo3.generateVideo)
{{secrets.veo3_api_key}}
{{generated_script}} (from Node 5){{downloaded_image}} (from Node 4)Create a UGC-style product advertisement video for social media.
- Duration: 15-30 seconds
- Style: Authentic, relatable, high-energy
- Include product shots, lifestyle imagery, and text overlays
- Optimize for TikTok/Instagram Reels (9:16 aspect ratio)
- Add trending background music and sound effects
30 seconds1080x1920 (mobile-optimized)24 fps9:16 (vertical for social media)Node 7: Send Video to User (telegram.sendVideo)
{{secrets.telegram_token}}
{{user_id}} (from Node 3){{generated_video}} (from Node 6)✨ Your UGC video is ready!
Product: {{product_caption}}
Generated with AI
Ready to post on TikTok, Instagram, YouTube Shorts
HTML (for formatted text)Nodes 8-9: Documentation Notes
The workflow follows this sequential data pipeline:
Telegram Image (Node 2)
↓
Extract metadata (Node 3)
↓
Download image file (Node 4)
↓
Analyze + Generate script (Node 5)
↓
Create video (Node 6)
↓
Send to user (Node 7)
Key data transformations:
Before running your first workflow:
Verify all integrations are connected
Check API quotas and billing
Validate webhook configuration
Prepare a test product image
Send test image to your bot
"Test product: Blue wireless headphones"
Monitor workflow execution
At Node 2 (Receive Image):
At Node 3 (Extract Data):
At Node 4 (Download Image):
At Node 5 (Generate Script):
At Node 6 (Generate Video):
Explore these powerful automation agents that complement your workflow.
Automate expense tracking via Telegram with AI-powered voice transcription, OCR receipt scanning, and intelligent expens...
Automate news analysis and intelligent Q&A with Pinecone vector search—instantly summarize articles from Telegram links...
Transform product images into viral UGC videos instantly—from Telegram to social platforms with AI-powered scripts and a...