Viral UGC Creator for TikTok & Multi-Platform Publishing using AI Avatars - n8n Workflow

Deploy a powerful n8n workflow using AI (GPT-4, ElevenLabs, VEED) to automatically generate short, viral videos and publish them across 9+ social media platforms, starting from a simple Telegram n8n trigger.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Markdown-formatted:
Digital Marketers and Content Agencies: Looking to scale content production across numerous social channels automatically.
Solopreneurs and Influencers: Needing high-quality, personalized video content without spending hours on editing or filming.
n8n Automation Specialists: Seeking an advanced, multi-step n8n template demonstrating complex AI orchestration.
Developers: Interested in integrating ElevenLabs, Perplexity, and VEED.io/FAL.ai within a single n8n workflow.

Overview

This advanced n8n workflow solves the complex challenge of consistent, trend-aware video content creation for social media. By leveraging a highly efficient sequence of AI tools orchestrated by n8n, this solution transforms a basic content idea and a photo, provided via a simple Telegram Trigger n8n node, into a fully produced, ready-to-publish vertical video.

The seamless orchestration of the n8n node sequence, including trend research via Perplexity, scripting via GPT-4, voice synthesis via ElevenLabs, and AI avatar video generation via VEED.io (through FAL.ai), ensures speed and scale. This is one of the most powerful n8n templates available for rapid, automated content production, significantly reducing the time spent on manual research and editing. The final video is immediately tracked in Google Sheets and published across multiple social platforms using the specialized Blotato n8n node.

How it Works

This powerful automation starts with the Telegram Trigger n8n node, activated when a user sends a photo (the avatar) and a caption (the theme) to a Telegram bot.


  1. Input Processing: The initial Extract Photo and Theme n8n node captures the inputs. The photo is downloaded and uploaded to a public temporary URL (Build Public Image URL).

  2. Trend Research: The Search Trends with Perplexity n8n node queries current viral topics relevant to the theme, ensuring the content is timely.

  3. Script Generation: The Generate Script with GPT-4 n8n node uses the gathered trends to craft a concise, 30-second viral script, optimized for voice synthesis.

  4. Voice Synthesis: The ElevenLabs Voice Synthesis n8n node converts the script into high-quality MP3 audio, which is then uploaded to a public URL (Upload Audio to Public URL).

  5. Video Creation: The FAL.ai Video Generation n8n node combines the public image and audio URLs using the VEED.io Fabric 1.0 model to create a lip-synced talking avatar video. The n8n workflow then pauses using a Wait n8n node for processing before downloading the result.

  6. Caption & Tracking: A second Generate Caption with GPT-4 n8n node creates an SEO-friendly caption complete with trending hashtags. The video details are recorded in Google Sheets.

  7. Multi-Platform Publishing: The completed video is uploaded via the Upload Video to BLOTATO n8n node, which then branches out, using several Blotato n8n node instances to publish simultaneously to TikTok, LinkedIn, Facebook, Instagram, Twitter (X), YouTube, Threads, Bluesky, and Pinterest. The final step of this n8n workflow updates the status in Google Sheets to 'DONE'.

Installation Guide

Markdown-formatted:


  1. Import the n8n workflow: Copy the provided JSON data and paste it directly into your n8n instance using the 'Import Workflow' option.

  2. Configure Credentials: Set up the required credentials in n8n:

Telegram API for the Telegram Trigger.
Perplexity API and OpenAI API for the AI processing nodes.
Google Sheets OAuth2 API for logging.
Blotato API (requires installing the @blotato/n8n-nodes-blotato community n8n node).

  1. Update Workflow Configuration: Open the Workflow Configuration n8n node (Set node) and replace the placeholder values with your actual API keys and Voice ID for ElevenLabs and FAL.ai.

  2. Telegram Webhook Setup: Activate the Telegram Trigger n8n node to generate and register the necessary webhook URL with your Telegram bot.

  3. Activate: Ensure the entire n8n workflow is active to begin automated video generation.

Node Details

Markdown-formatted:

Telegram Trigger (n8n trigger):
Function: Initiates the n8n workflow upon receiving a message containing a photo and/or text (used as the theme).
Key Configuration: Triggers on message and photo updates.
Workflow Configuration (Set n8n node):
Function: Centralizes sensitive keys and settings (ElevenLabs API Key, Voice ID, FAL API Key) for easy global referencing across the n8n workflow.
Search Trends with Perplexity (Perplexity n8n node):
Function: Performs real-time trend research based on the user-provided theme using a sophisticated LLM (sonar model, configured via expression).
Generate Script with GPT-4 (OpenAI n8n node):
Function: Uses GPT-4o-mini to synthesize the trends and theme into a concise, viral, 30-second script optimized for voice synthesis.
ElevenLabs Voice Synthesis (HTTP Request n8n node):
Function: Calls the ElevenLabs API to convert the generated script into high-quality audio using the specified voice ID.
FAL.ai Video Generation (HTTP Request n8n node):
Function: Submits the public image and audio URLs to the VEED Fabric 1.0 model via FAL.ai to generate the talking avatar video.
Generate Caption with GPT-4 (OpenAI n8n node):
Function: Creates the final, highly engaging social media caption, including 5-8 relevant trending hashtags for maximum reach.
Save to Google Sheets (Google Sheets n8n node):
Function: Logs all crucial metadata (script idea, generated caption, all media URLs) for tracking purposes.
Upload Video to BLOTATO (Blotato Community n8n node):
* Function: Stages the completed video for simultaneous multi-platform distribution using the Blotato service, demonstrating a powerful use case for community n8n templates.

Related n8n Workflows

Free

Nodes: 12 Nodes
Updated: December 26 2025
View all
Created by

Automation expert and certified trainer. I create hands-on courses to master automation with n8n. Contact me to access my exclusive training and start building powerful workflows today. 🚀

Featured*