AI Video Creation & Auto-Posting Workflow with n8n

This n8n workflow automates AI-driven video creation from Telegram prompts, adds voice-over and captions, then auto-posts to nine social platforms. It saves hours in video production and social media management by combining GPT-4, Kling AI, and Blotato API integration.
telegramTrigger
lmChatOpenAi
httpRequest
+6
Workflow Identifier: 1005
NODES in Use: telegramTrigger, code, agent, lmChatOpenAi, httpRequest, wait, googleSheets, telegram, set

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does ⚙️

This workflow automates making social media videos from text prompts sent on Telegram.

It turns a simple message into a full video with voice-over and captions.

The final video posts automatically to nine platforms at once.

This saves many hours and avoids manual posting errors.

It handles everything from text cleaning, video generation, voice creation, captioning, metadata saving, to publishing.


Who should use this workflow

This workflow is good for social media managers who manage multiple platforms and want to save time.

Anyone wanting fast, automatic video production from text prompts with no video editing skills needed will benefit.


Tools & services used ⚙️

  • Telegram Bot API: Receives user messages.
  • OpenAI GPT-4: Refines text prompts and writes scripts.
  • Langchain Agent: Enhances prompts for video AI.
  • Kling AI API: Creates cinematic videos from prompts.
  • OpenAI TTS: Converts scripts to speech audio.
  • Cloudinary: Hosts voice audio files online.
  • JSON2Video API: Merges audio with video and adds captions.
  • Google Sheets: Saves video info and tracks content.
  • Blotato API: Posts final videos on 9 social platforms automatically.
  • n8n Automation Platform: Connects all the steps in one workflow.

Inputs, processing steps, and outputs

Inputs

  • Text message on Telegram starting with “generate video” and including a video idea and caption separated by a comma.
  • API Keys or credentials for each service integrated in the workflow.

Processing Steps

  • Parse Telegram message to separate video prompt and caption idea.
  • Use GPT-4 and Langchain Agent to improve prompt to a cinematic video description.
  • Send prompt to Kling API to generate a 10-second vertical video.
  • Wait and check for completion and get video URL.
  • Create a 7-second voice-over script with GPT-4 using the caption idea.
  • Convert the script to audio with OpenAI TTS.
  • Upload the audio to Cloudinary for hosting.
  • Use JSON2Video API to merge audio with the video.
  • Wait and fetch the merged narrated video URL.
  • Add styled captions to the video using JSON2Video API.
  • Generate social media captions and a YouTube-style title with GPT-4.
  • Save video metadata to Google Sheets.
  • Send final video and caption back to Telegram for review.
  • Post videos automatically to Instagram, YouTube, TikTok, Facebook, Threads, Twitter (X), LinkedIn, Bluesky, and Pinterest via Blotato API.

Outputs

  • Final cinematic video with voice narration and captions.
  • Social captions and video titles for better engagement.
  • Video and metadata saved in Google Sheets for record keeping.
  • Posted content on nine social channels with no manual work.

Beginner step-by-step: How to run this workflow in n8n ✏️

1. Import the workflow into n8n

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor, select the option “Import from File” and upload the workflow file.

2. Set up credentials and configurations

  1. Add valid API Keys for Telegram, OpenAI, Kling AI, Cloudinary, Google Sheets, and Blotato in the credentials settings.
  2. Check for places where IDs, emails, channel names, or spreadsheet tables need to be updated to match the user’s accounts.
  3. Copy and paste any code snippets and prompt texts provided in nodes if needed.

3. Test the workflow

  1. Send a test message to the connected Telegram bot starting with the text “generate video”, followed by a prompt and caption idea.
  2. Observe the workflow execution in n8n’s interface to confirm each step runs successfully.

4. Activate for production

  1. Set the workflow status to “active” inside n8n.
  2. Make sure to watch logs and any error messages on first live runs to fix possible issues.
  3. This enables automated video creation and posting from Telegram prompts without extra clicks.

You can consider self-host n8n if wanting full control or server-based running.


Customization ideas ✏️

  • Change video length: Edit the duration parameter in Kling API node to any seconds wanted.
  • Change voice style: Adjust the OpenAI voice script prompt for tone (casual, formal, inspirational).
  • Caption look: Change font, color, size, and position in the JSON2Video captions node.
  • Add or remove social channels: Update Blotato platform IDs if needed to target different accounts.
  • Improve prompt details: Rewrite Langchain Agent’s system message to make video prompts suit special topics or themes.

Troubleshooting 🔧

Video does not generate or Kling API returns error

Check that the Kling API Key is correct.

Use simpler prompts to confirm if the problem is prompt complexity.

Voice audio upload to Cloudinary fails

Verify the multipart form data fields in the HTTP node.

Confirm Cloudinary upload preset is correct and allowed.

Social posts don’t appear on platforms

Double-check Blotato API Key and the channel or account IDs used in the node.

Confirm accounts are active on Blotato dashboard.


Summary of benefits and results

✓ Saves hours weekly by fully automating social video making.

✓ Eliminates mistakes from manual video production and posting.

✓ Generates engaging videos with narration and captions automatically.

→ The user sends a quick prompt and the finished video appears on many platforms.

→ Organizes metadata for tracking and re-use in Google Sheets.

→ Makes managing multiple social accounts simpler and faster.


Frequently Asked Questions

Yes. The workflow allows replacing the OpenAI audio conversion node with another TTS API. Adjust the audio upload and video merge steps accordingly.
Check Kling API Key correctness and ensure prompts are clear. Retry with simpler prompts. Confirm Kling API service status.
The workflow saves video metadata, titles, captions, and URLs into Google Sheets automatically for easy tracking.
Yes. Adjust the platform account IDs in the Blotato API node to add or remove social channels as needed.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free