Skip to main content

Generate UGC videos from product images with Gemini and VEO3

Workflow preview

Workflow preview
100%
Generate UGC videos from product images with Gemini and VEO3 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

N8N UGC Video Generator Setup Instructions Transform Product Images into Professional UGC Videos with AI This powerful n8n workflow automatically converts product images into professional User Gene...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.converttofile, n8n-nodes-base.httprequest, n8n-nodes-base.telegramtrigger, n8n-nodes-base.set, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatanthropic

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Growth AI.

Original n8n.io source

1.1 Workflow description

Title
Generate UGC videos from product images with Gemini and VEO3
Workflow name
Generate UGC videos from product images with Gemini and VEO3

N8N UGC Video Generator - Setup Instructions

Transform Product Images into Professional UGC Videos with AI

This powerful n8n workflow automatically converts product images into professional User-Generated Content (UGC) videos using cutting-edge AI technologies including Gemini 2.5 Flash, Claude 4 Sonnet, and VEO3 Fast.

Who's it for

  • Content creators looking to scale video production
  • E-commerce businesses needing authentic product videos
  • Marketing agencies creating UGC campaigns for clients
  • Social media managers requiring quick video content

How it works

The workflow operates in 4 distinct phases:

Phase 0: Setup - Configure all required API credentials and services Phase 1: Image Enhancement - AI analyzes and optimizes your product image Phase 2: Script Generation - Creates authentic dialogue scripts based on your input Phase 3: Video Production - Generates and merges professional video segments

Requirements

Essential Services & APIs

  • Telegram Bot Token (create via @BotFather)
  • OpenRouter API with Gemini 2.5 Flash access
  • Anthropic API for Claude 4 Sonnet
  • KIE.AI Account with VEO3 Fast access
  • N8N Instance (cloud or self-hosted)

Technical Prerequisites

  • Basic understanding of n8n workflows
  • API key management experience
  • Telegram bot creation knowledge

How to set up

Step 1: Service Configuration

  1. Create Telegram Bot

    • Message @BotFather on Telegram
    • Use /newbot command and follow instructions
    • Save the bot token for later use
  2. OpenRouter Setup

    • Sign up at openrouter.ai
    • Purchase credits for Gemini 2.5 Flash access
    • Generate and save API key
  3. Anthropic Configuration

    • Create account at console.anthropic.com
    • Add credits to your account
    • Generate Claude API key
  4. KIE.AI Access

    • Register at kie.ai
    • Subscribe to VEO3 Fast plan
    • Obtain bearer token

Step 2: N8N Credential Setup

Configure these credentials in your n8n instance:

  1. Telegram API Credential

    • Name: telegramApi
    • Bot Token: Your Telegram bot token
  2. OpenRouter API Credential

    • Name: openRouterApi
    • API Key: Your OpenRouter key
  3. Anthropic API Credential

    • Name: anthropicApi
    • API Key: Your Anthropic key
  4. HTTP Bearer Auth Credential

    • Name: httpBearerAuth
    • Token: Your KIE.AI bearer token

Step 3: Workflow Configuration

  1. Import the Workflow

    • Copy the provided JSON workflow
    • Import into your n8n instance
  2. Update Telegram Token

    • Locate the "Edit Fields" node
    • Replace "Your Telegram Token" with your actual bot token
  3. Configure Webhook URLs

    • Ensure all Telegram nodes have proper webhook configurations
    • Test webhook connectivity

Step 4: Testing & Validation

  1. Test Individual Nodes

    • Verify each API connection
    • Check credential configurations
    • Confirm node responses
  2. End-to-End Testing

    • Send a test image to your Telegram bot
    • Follow the complete workflow process
    • Verify final video output

How to customize the workflow

Modify Image Enhancement Prompts

  • Edit the HTTP Request node for Gemini
  • Adjust the prompt text to match your style preferences
  • Test different aspect ratios (current: 1:1 square format)

Customize Script Generation

  • Modify the Basic LLM Chain node prompt
  • Adjust video segment duration (current: 7-8 seconds each)
  • Change dialogue style and tone requirements

Video Generation Settings

  • Update VEO3 API parameters in HTTP Request1 node
  • Modify aspect ratio (current: 16:9)
  • Adjust model settings and seeds for consistency

Output Customization

  • Change final video format in MediaFX node
  • Modify Telegram message templates
  • Add additional processing steps before delivery

Workflow Operation

Phase 1: Image Reception and Enhancement

  1. User sends product image via Telegram
  2. System prompts for enhancement instructions
  3. Gemini AI analyzes and optimizes image
  4. Enhanced square-format image returned

Phase 2: Analysis and Script Creation

  1. System requests dialogue concept from user
  2. AI analyzes image details and environment
  3. Claude generates realistic 2-segment script
  4. Scripts respect physical constraints of original image

Phase 3: Video Generation

  1. Two separate videos generated using VEO3
  2. System monitors generation status
  3. Videos merged into single flowing sequence
  4. Final video delivered via Telegram

Troubleshooting

Common Issues

  • API Rate Limits: Implement delays between requests
  • Webhook Failures: Verify URL configurations and SSL certificates
  • Video Generation Timeouts: Increase wait node duration
  • Credential Errors: Double-check all API keys and permissions

Error Handling

The workflow includes automatic error detection:

  • Failed video generation triggers error message
  • Status checking prevents infinite loops
  • Alternative outputs for different scenarios

Advanced Features

Batch Processing

  • Modify trigger to handle multiple images
  • Add queue management for high-volume usage
  • Implement user session tracking

Custom Branding

  • Add watermarks or logos to generated videos
  • Customize color schemes and styling
  • Include brand-specific dialogue templates

Analytics Integration

  • Track usage metrics and success rates
  • Monitor API costs and optimization opportunities
  • Implement user behavior analytics

Cost Optimization

API Usage Management

  • Monitor token consumption across services
  • Implement caching for repeated requests
  • Use lower-cost models for testing phases

Efficiency Improvements

  • Optimize image sizes before processing
  • Implement smart retry mechanisms
  • Use batch processing where possible

This workflow transforms static product images into engaging, professional UGC videos automatically, saving hours of manual video creation while maintaining high quality output perfect for social media platforms.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 3 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 5 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Send message and wait for response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Get a file

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Send a photo message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Send message and wait for response1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 11 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 12 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 13 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 14 - HTTP Request1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Get a file1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 17 - HTTP Request2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 19 - Merge video

Type / Role
n8n-nodes-mediafx.mediaFX - mediaFX
Config choices
Version 1

Block 20 - Send a video

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 22 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 23 - HTTP Request3

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate UGC videos from product images with Gemini and VEO3
Complexity advanced
Nodes 32
Categories Content Creation, Multimodal AI
Author Growth AI
Published 25 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8927/8927.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate UGC videos from product images with Gemini and VEO3 do?

N8N UGC Video Generator Setup Instructions Transform Product Images into Professional UGC Videos with AI This powerful n8n workflow automatically converts product images into professional User Gene...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.