Skip to main content

Create AI-generated UGC marketing videos with Telegram & GPT-4

Workflow preview

Workflow preview
100%
Create AI-generated UGC marketing videos with Telegram & GPT-4 preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How to Set Up the AI UGC Video Automation System This system uses Telegram + N8N (no code automation) + AI models to generate user generated content (UGC) videos automatically. Overview Input...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.toolthink, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.aggregate, n8n-nodes-base.telegram

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Create AI-generated UGC marketing videos with Telegram & GPT-4
Workflow name
Create AI-generated UGC marketing videos with Telegram & GPT-4

📌 How to Set Up the AI UGC Video Automation System

This system uses Telegram + N8N (no-code automation) + AI models to generate user-generated content (UGC) videos automatically.

🔹 Overview

Input: Send a photo of the product + character via Telegram bot.

Process: N8N workflow handles:

  1. Image analysis
  2. Prompt generation
  3. Image creation
  4. Video clip generation
  5. Combining clips into a final UGC ad Output: Video sent back to Telegram (or other destination like Google Drive/Dropbox).

🔹 System Workflow

  • Input Section

Telegram Setup:

  1. Create a Telegram bot and get its Bot ID.
  2. Connect the bot to N8N Telegram Trigger node.
  3. Bot listens for messages (photos + instructions).
  4. Send Input
  5. Upload one compressed image with :
  • Product
  • Character (optional) Example: “Create a UGC video with Gandalf promoting The Hobbit book. 20 seconds long.” Image Handling

. N8N retrieves the image from Telegram (via file path). . OpenAI agent analyzes the image: . Extracts product details (brand, color, description). . Extracts character details (name, outfit, style).

  • Confirm Input:

. System replies on Telegram: “Got it. I’m now creating your video.”

Step 1: Create Image

  1. AI Agent (Image Prompt)
  2. Generates a natural, UGC-style prompt (realistic iPhone photo look).
  3. Uses OpenAI GPT to structure prompt and aspect ratio (2:3 or 3:2).
  4. Image Generation
  5. Sends prompt + aspect ratio to Key.AI → 4.0 Image Model.
  6. Waits until image is generated. Example: Gandalf holding The Hobbit book.

Step 2: Create Video Clips

  1. AI Agent (Video Prompt)
  2. Creates video script and scenes (dialogue + setting).
  3. Calculates how many clips needed (e.g. 20s request → 3 x 8s clips).
  4. Ensures UGC style (casual, amateur look).
  5. Clip Generation
  6. Sends prompts to Key.AI V3 model (Fast or Quality).
  7. Input: Prompt + image + aspect ratio.
  8. Output: Multiple short clips (8s each).
  9. Wait for Processing
  10. Clips take a few minutes to generate.
  11. Retrieve video URLs from Key.AI.

Step 3: Combine Video

  1. Aggregate Clips 2.Collect all video URLs (from multiple clips).
  2. Merge with FFmpeg
  3. Send videos to File.AI → FFmpeg Merge Service.
  4. Stitches clips into one continuous video.
  5. Final Output
  6. Final merged video returned as a download URL.
  7. N8N sends the video back to your Telegram chat (or connected storage).

🔹 Customization Options

Models:

V3 Fast ($0.40/clip, cheaper, good enough). V3 Quality ($2/clip, slightly higher quality). Video Length: AI automatically adjusts number of clips.

Outputs:

Telegram (default) Can be extended to Google Drive, Dropbox, etc.

🔹 Cost

Image generation: a few cents. Video clips: ~$0.40 each with V3 Fast. Clip merging: < $0.01. Much cheaper than manual UGC production.

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 - Think

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 2 - GPT

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Split Out

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

Block 4 - Create Video

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

Block 5 - Get Video

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

Block 6 - Wait 2

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

Block 7 - Wait 3

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

Block 8 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Aggregate

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

Block 10 - Wait

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

Block 11 - Send Video

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

Block 12 - Telegram Trigger

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

Block 13 - Bot ID

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

Block 14 - Sticky Note2

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

Block 15 - Get Img Path

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

Block 16 - Describe Img

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 17 - In Progress

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

Block 18 - Structured Output 1

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

Block 19 - Structured Output 2

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

Block 20 - Create Image

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

Block 21 - Get Image

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

Block 22 - Combine Clips

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

Block 23 - Get Final Video

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

Block 24 - If 2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

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

3. Summary Table

Workflow Create AI-generated UGC marketing videos with Telegram & GPT-4
Complexity advanced
Nodes 30
Categories Content Creation, Multimodal AI
Author Deniz
Published 03 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9253/9253.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 Create AI-generated UGC marketing videos with Telegram & GPT-4 do?

How to Set Up the AI UGC Video Automation System This system uses Telegram + N8N (no code automation) + AI models to generate user generated content (UGC) videos automatically. Overview Input...

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.