Templates / Generate & auto-post social videos to multiple platforms with GPT-4 and Kling AI

Generate & auto-post social videos to multiple platforms with GPT-4 and Kling AI

Needs changes

by Dr. Firas ✓ · 20,883 views · created 2025-04-09 · Content Creation, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 33 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model, OpenAI and Google Sheets. It also calls api.piapi.ai, api.cloudinary.com and api.json2video.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. Extract Prompt & Caption (Code): runs custom JavaScript code
  2. Transform Prompt for Kling (GPT-4) (AI Agent): runs an AI agent, with model: OpenAI Model Bridge
  3. Generate Video via Kling API (HTTP Request): calls api.piapi.ai (POST)
  4. Wait: waits 7 minutes
  5. Get Generated Video URL (HTTP Request): calls an HTTP API
  6. Generate Voice-Over Script (OpenAI): uses OpenAI
  7. Convert Script to Audio (TTS) (OpenAI): work with audio
  8. Upload Audio to Cloudinary (HTTP Request): calls api.cloudinary.com
  9. Merge Audio + Video (HTTP Request): calls api.json2video.com (POST)
  10. Wait: waits 1 minutes

…plus 21 more steps. See the full node list below.

Services it uses

TelegramOpenAI Chat ModelOpenAIGoogle Sheets

HTTP calls to: api.piapi.ai, api.cloudinary.com, api.json2video.com, backend.blotato.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Transform Prompt for Kling (GPT-4) (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Transform Prompt for Kling (GPT-4) (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

AI-Powered Social Video Generator with Auto-Posting to Instagram, TikTok, YouTube, Facebook, LinkedIn, Threads, Pinterest, Twitter (X), and Bluesky Who is this workflow for? This workflow is ideal for content creators, marketers, social media managers, and…

Excerpt from Dr. Firas's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.