metadata
title: UGC Video Generator
emoji: 🎥
colorFrom: blue
colorTo: purple
sdk: static
pinned: false
license: apache-2.0
UGC Single Video Generator (n8n + AI)
Automatically generate authentic User-Generated Content (UGC) videos from a simple form submission, powered by n8n, Anthropic, and KIE.AI video generation.
Overview
This workflow automates the process of creating influencer-style promotional videos.
Users describe the type of video and influencer, optionally let AI write the script, and select the video’s aspect ratio.
The workflow then generates a complete UGC-style MP4 video using AI, returning a video link automatically.
How It Works
Form Submission
- A form asks the user for:
- Video description
- Influencer type
- Whether to auto-generate a script
- Optional custom script
- Aspect ratio (9:16 or 16:9)
- A form asks the user for:
AI Script Generation
- If “generate script” is checked, the workflow calls Anthropic Claude to produce a short, natural UGC-style script based on the video description and influencer type.
Prompt Building
- Combines description, script, and influencer details to create structured text prompts for video generation.
Video Generation
- Sends prompts to the KIE.AI Video API (
veo3_fastmodel) to generate a realistic influencer-style video.
- Sends prompts to the KIE.AI Video API (
Video Retrieval
- Fetches the finished MP4 file and returns the link automatically.
Workflow Structure
| Step | Node | Description |
|---|---|---|
| 1 | Form Trigger | Collects user input through a custom web form. |
| 2 | Edit Fields | Normalizes and prepares fields for downstream use. |
| 3 | Script Decision | Checks if the user wants to auto-generate or use a custom script. |
| 4 | HTTP Request (Anthropic) | Generates a short script using Claude. |
| 5 | Determine Final Script | Merges AI or manual script with user input. |
| 6 | Create Prompts | Builds natural prompts for image/video generation. |
| 7 | Generate Video (KIE.AI) | Sends request to the KIE.AI API to produce the video. |
| 8 | Check Video Success | Confirms if the API returned a success code. |
| 9 | Get Video File | Retrieves the video download link using the task ID. |
| 10 | Output Result | Outputs video URL and status as JSON. |
Example Output
Watch the demo video: 👉 UGC Video Example
Setup Instructions
1️⃣ Prerequisites
- n8n installed (self-hosted or Cloud)
- Accounts and API keys for:
- Anthropic API
- KIE.AI Video API
- Optional: a hosting service (e.g., Railway, Vercel) for the form trigger webhook.
2️⃣ Environment Variables
Create a .env file in your n8n environment:
ANTHROPIC_API_KEY=your-anthropic-key
KIE_API_KEY=your-kie-api-key