Overview & Setup
This n8n template demonstrates how to automatically generate authentic User-Generated Content (UGC) style marketing videos for eCommerce products using AI. Simply upload a product image, and the workflow creates multiple realistic influencer-style video ads complete with scripts, personas, and video generation.
Use cases
- Generate multiple UGC video variations for A/B testing
- Create authentic-looking product demonstrations for social media
- Produce influencer-style content without hiring creators
- Quickly test different marketing angles for new products
- Scale video content creation for eCommerce catalogs
Good to know
- Sora 2 video generation takes approximately 2-3 minutes per 12-second video
- Each video generation costs approximately $0.50-1.00 USD (check OpenAI pricing for current rates)
- The workflow generates multiple video variations from a single product image
- Videos are automatically uploaded to Google Drive upon completion
- Generated videos are in 720x1280 (9:16) format optimized for social media
How it works
- Product Analysis: OpenAI's vision API analyzes the uploaded product image to understand its features, benefits, and target audience
- Persona Creation: The system generates a detailed profile of the ideal influencer/creator who would authentically promote this product
- Script Generation: Gemini 2.5 Pro creates multiple authentic UGC video scripts (12 seconds each) with frame-by-frame breakdowns, natural dialogue, and camera movements
- Frame Generation: For each script, Gemini generates a custom first frame that adapts the product image to match UGC aesthetic and aspect ratio
- Video Production: Sora 2 API generates the actual video using the script and custom first frame as reference
- Status Monitoring: The workflow polls the video generation status every 15 seconds until completion
- Upload & Storage: Completed videos are automatically uploaded to Google Drive with organized naming
How to use
- Click the form trigger URL to access the submission form
- Upload your product image (works best with clean product shots on white/neutral backgrounds)
- Enter the product name
- Submit the form and wait for the workflow to complete
- Find your generated UGC videos in the specified Google Drive folder
- Each run produces multiple video variations you can test
Requirements
- OpenAI API account with Sora 2 access for video generation and GPT-4 Vision
- Google Gemini API account for script generation and image adaptation
- Google Drive account for video storage
- Sufficient API credits for video generation (budget accordingly)
Customizing this workflow
- Adjust the video duration in the generate_video node (currently set to 12 seconds)
- Modify the persona prompt in analyze_product node to target different audience demographics
- Change the script style in set_build_video_prompts node for different UGC aesthetics (excited discovery, casual recommendation, etc.)
- Update the Google Drive folder in upload_video node to organize videos by campaign
- Add additional processing nodes for video editing, subtitle generation, or thumbnail creation
- Modify the aspect ratio in resize_image node for different platforms (1:1 for Instagram feed, 16:9 for YouTube, etc.)