Generate & auto-post social videos to multiple platforms with GPT-4 and Kling AI
Needs changesWhat 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).
- Extract Prompt & Caption (Code): runs custom JavaScript code
- Transform Prompt for Kling (GPT-4) (AI Agent): runs an AI agent, with model: OpenAI Model Bridge
- Generate Video via Kling API (HTTP Request): calls api.piapi.ai (POST)
- Wait: waits 7 minutes
- Get Generated Video URL (HTTP Request): calls an HTTP API
- Generate Voice-Over Script (OpenAI): uses OpenAI
- Convert Script to Audio (TTS) (OpenAI): work with audio
- Upload Audio to Cloudinary (HTTP Request): calls api.cloudinary.com
- Merge Audio + Video (HTTP Request): calls api.json2video.com (POST)
- Wait: waits 1 minutes
…plus 21 more steps. See the full node list below.
Services it uses
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.0 | Replace 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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets - Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set
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…