Transform product images into viral UGC videos instantly—from Telegram to social platforms with AI-powered scripts and automated publishing.
This powerful automation workflow transforms product images into complete, ready-to-publish user-generated content (UGC) videos. Simply send a product photo via Telegram, and the system automatically analyzes the product, generates a compelling video script, creates a professional video using AI, and publishes it across your social media platforms—all without manual intervention.
Key benefits and time savings:
Target use cases:
This workflow is ideal for marketing teams, e-commerce entrepreneurs, content creators, and digital agencies who need to produce high-volume UGC content efficiently. You'll benefit most if you:
No video production experience required—the workflow handles all technical aspects automatically.
Why it's needed: Telegram serves as your primary input channel and communication hub. Users send product images through Telegram, and the system delivers completed videos and confirmation messages back through the same platform, creating a seamless user experience.
Setup steps:
Create a Telegram Bot
@BotFather
/newbot
123456789:ABCdefGHIjklmnoPQRstuvWXYZ)Enable Webhook in TaskAGI
Configure the Telegram Trigger Node
telegram.webhook nodeTest the Connection
How to obtain API keys/credentials: Your Telegram Bot Token is provided immediately by BotFather. Store it securely and never share it publicly. You can regenerate tokens anytime through BotFather if compromised.
Why it's needed: OpenAI's GPT-4 and GPT-4o-mini models power three critical workflow stages: analyzing product images for key features, generating engaging video scripts, and creating social media captions. This ensures your content is compelling and conversion-focused.
Setup steps:
Create an OpenAI Account
Generate Your API Key
Set Up Billing
Configure in TaskAGI
Configure Model Selection
How to obtain API keys/credentials: OpenAI API keys are generated in your account dashboard. Free trial credits are available for new accounts (typically $5-18 worth). Production use requires a paid account with valid payment method.
Why it's needed: Kling generates professional, high-quality videos from text prompts. This transforms your AI-written scripts into visually compelling videos that engage viewers and drive conversions.
Setup steps:
Register with Kling AI
Access API Credentials
Configure in TaskAGI
Set Video Parameters
How to obtain API keys/credentials: Kling provides API credentials through their developer dashboard. Most plans include monthly video generation credits. Check your plan limits to ensure sufficient quota for your expected volume.
Why it's needed: UploadPost handles multi-platform distribution, automatically publishing your generated videos to TikTok, Instagram, YouTube Shorts, and other social platforms simultaneously. This eliminates manual uploading and scheduling.
Setup steps:
Create an UploadPost Account
Connect Social Media Accounts
Configure in TaskAGI
Set Publishing Preferences
How to obtain API keys/credentials: UploadPost generates API credentials in your account dashboard under Developer Settings. You'll need active, authorized social media accounts to publish successfully.
Node 1: Workflow Overview (core.workflow_note)
Node 2: Telegram Trigger (telegram.webhook)
Node 3: Extract Photo and Text (core.edit_data)
photo
caption (optional user notes)Node 4: Get Photo from Telegram (telegram.getFile)
{{nodes.3.photo_id}}
Node 5: Upload to Public URL (core.http_request)
POST
Content-Type: image/jpeg
Node 6: Extract Public URL (core.function)
url field from HTTP responsepublic_photo_url
https://storage.example.com/photos/abc123.jpg
Node 7: Analyze Product Image (openai.createCompletion)
gpt-4o
"Analyze this product image and extract: 1) Product name, 2) Key features (3-5 bullet points), 3) Target audience, 4) Unique selling points. Image URL: {{nodes.6.public_photo_url}}"
0.7 (balanced creativity and accuracy)500
Node 8: Generate UGC Video Script (openai.createCompletion)
gpt-4o
"You are a UGC video script writer. Create a compelling 30-second video script for this product: {{nodes.7.analysis}}. Include: 1) Hook (first 3 seconds), 2) Problem statement, 3) Solution (product benefits), 4) Call-to-action. Write naturally, as if speaking directly to the camera."
0.8 (more creative)400
Node 9: Generate Video with Kling (klingv21.generateVideo)
{{nodes.8.script}}
1080p
30 seconds
9:16 (vertical)Professional or Casual (choose based on brand)Node 10: Send Video to Telegram (telegram.sendVideo)
{{nodes.2.chat_id}}
{{nodes.9.video_url}}
"Your UGC video is ready! Review and approve for publishing."
Node 11: Generate Social Caption (openai.createCompletion)
gpt-4o-mini (cost-effective for simple task)"Create an engaging social media caption (150 characters max) for a UGC video about this product: {{nodes.7.analysis}}. Include relevant emojis and a call-to-action. Format for TikTok/Instagram."
0.7
150
Node 12: Publish to Social Platforms (uploadpost.uploadVideo)
{{nodes.9.video_url}}
{{nodes.11.caption}}
Immediate or schedule for optimal engagement times#UGC #ProductReview #FYP #ForYou (customize per brand)Node 13: Send Confirmation (telegram.sendMessage)
{{nodes.2.chat_id}}
"✅ Your UGC video has been generated and published to {{nodes.12.platforms}}! View it here: {{nodes.12.urls}}"
Before running your first production workflow, verify all integrations:
Test Telegram Connection
Test OpenAI Integration
Test Kling Video Generation
Test UploadPost Distribution
Prepare a Test Product Image
Send Test Image to Telegram Bot
Monitor Execution in Real-Time
| Stage | What to Check | Success Indicator |
|---|---|---|
| Image Upload | Photo received and stored | Public URL generated in Node 6 |
| Product Analysis | AI correctly identifies product | Analysis includes name, features, audience |
| Script Generation | Script is engaging and natural | Script reads well when spoken aloud |
| Video Creation | Kling generates video successfully | Video file exists and plays without errors |
| Social Publishing | Video distributed to platforms | Video appears on TikTok, Instagram, YouTube within 5 minutes |
| User Notification | Confirmation message sent | User receives Telegram message with video links |
Successful workflow execution shows:
✅ Telegram: User receives video preview message within 5 minutes
✅ Video Quality: Generated video is 1080p, 30 seconds, vertical format
✅ Script Quality: Video script is natural, persuasive, and product-focused
✅ Caption Quality: Social caption includes emojis, CTA, and is under 150 characters
✅ Multi-Platform Publishing: Video appears on all selected platforms within 10 minutes
✅ No Errors: Execution logs show zero failures or warnings
Common issues and solutions:
| Issue | Cause | Solution |
|---|---|---|
| Telegram webhook not receiving messages | Bot not properly configured | Verify bot token and webhook URL in TaskAGI settings |
| OpenAI API errors | Insufficient credits or rate limiting | Check billing account and add payment method |
| Kling video generation timeout | Video generation taking too long | Increase timeout setting to 10 minutes |
| UploadPost not publishing | Social accounts not properly authorized | Re-authenticate accounts in UploadPost settings |
| Poor video quality | Low- |
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 professional UGC video ads instantly. Receive images via Telegram, generate AI scripts wit...