Category: Automations › Social Media & Content · Best for: Creators wanting daily video content · Platform: n8n · Steps: 33
What it does
The AI makes short videos and posts them to Instagram and more.
and generates a cinematic video based entirely on text input.
Works with: Telegram, OpenAI, Agent, PiAPI, Google Sheets, Blotato
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- Telegram bot token from @BotFather: how to connect (used by Trigger: Telegram Prompt, Send Final Video to Telegram, Send Caption Link via Telegram)
- OpenAI API key: how to connect (used by OpenAI Model Bridge, Generate Voice-Over Script, Convert Script to Audio (TTS), Generate Social Caption from Voiceover, Generate YouTube-Style Title)
- API key sent as an HTTP header (see the node for which service): how to connect (used by Generate Video via Kling API, Get Generated Video URL, Merge Audio + Video, Get Video URL with Audio, Add Captions/Subtitles to Video, Get Final Video URL (Audio + Captions))
- httpBasicAuth: how to connect (used by Upload Audio to Cloudinary, Merge Audio + Video)
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Save Video Metadata to Google Sheets)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Save Video Metadata to Google Sheets →
sheetName: choose your own - Save Video Metadata to Google Sheets →
documentId: choose your own - Send Final Video to Telegram →
chatId: choose your own - Send Caption Link via Telegram →
chatId: choose your own
- Save Video Metadata to Google Sheets →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). Trigger: Telegram Prompt starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- Trigger: Telegram Prompt starts the workflow (Telegram).
- OpenAI Model Bridge uses AI (OpenAI).
- Extract Prompt & Caption reshapes the data for the next step.
- Transform Prompt for Kling (GPT-4) uses AI (Agent).
- Generate Video via Kling API calls an external API (https://api.piapi.ai/api/v1/task).
- Wait for Video Generation pauses before continuing.
- Get Generated Video URL calls an external API (=https://api.piapi.ai/api/v1/task/{{ $json.data.task_id }}).
- Generate Voice-Over Script uses AI (OpenAI).
- Convert Script to Audio (TTS) uses AI (OpenAI).
- Upload Audio to Cloudinary calls an external API (https://api.cloudinary.com/v1_1/dc5wapno3/auto/upload).
- Merge Audio + Video calls an external API (https://api.json2video.com/v2/movies).
- Wait for Audio/Video Fusion pauses before continuing.
- Get Video URL with Audio calls an external API (=https://api.json2video.com/v2/movies?id={{ $json.project }}).
- Wait Before Captioning pauses before continuing.
- Add Captions/Subtitles to Video calls an external API (https://api.json2video.com/v2/movies).
- Wait for Caption Render pauses before continuing.
- Get Final Video URL (Audio + Captions) calls an external API (=https://api.json2video.com/v2/movies?id={{ $json.project }}).
- Generate Social Caption from Voiceover uses AI (OpenAI).
- Generate YouTube-Style Title uses AI (OpenAI).
- Save Video Metadata to Google Sheets uses Google Sheets to append.
- Send Final Video to Telegram uses Telegram to sendVideo.
- Send Caption Link via Telegram uses Telegram.
- Assign Social Media IDs reshapes the data for the next step.
- Upload Video to Blotato calls an external API (https://backend.blotato.com/v2/media).
- Post to Instagram calls an external API (https://backend.blotato.com/v2/posts).
- Post to YouTube calls an external API (https://backend.blotato.com/v2/posts).
- Post to TikTok calls an external API (https://backend.blotato.com/v2/posts).
- Post to Facebook Page calls an external API (https://backend.blotato.com/v2/posts).
- Post to Threads calls an external API (https://backend.blotato.com/v2/posts).
- Post to Twitter (X) calls an external API (https://backend.blotato.com/v2/posts).
- Post to LinkedIn calls an external API (https://backend.blotato.com/v2/posts).
- Post to Bluesky calls an external API (https://backend.blotato.com/v2/posts).
- Post to Pinterest calls an external API (https://backend.blotato.com/v2/posts).
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
STEP 1, Create Video Using AI
This step handles the full video creation pipeline using AI.
It starts from a Telegram message containing a prompt,
refines the prompt with GPT-4 to suit Kling’s video engine,
and generates a cinematic video based entirely on text input.
STEP 2, Add Voice-Over to Video
Here, a short-form voice-over script is generated using GPT-4 based on the topic.
The script is converted to speech, uploaded, and merged with the AI-generated video, resulting in a fully narrated visual asset.
STEP 5, Auto-Publish to 9 Social Platforms
The final step automates distribution using Blotato’s API.
The video is auto-published to Instagram, YouTube, TikTok, Facebook,
LinkedIn, Threads, Twitter (X), Bluesky, and Pinterest
##, all in one go, with no manual work required.
STEP 4, Save Video & Notify via Telegram
This step generates a title and caption for the video,
saves the content metadata to a Google Sheet for future tracking,
And sends both the final video and its description to a Telegram chat for validation or reuse.
The script is converted to speech, uploaded, and merged with the AI-generated video, resulting in a fully narrated visual asset.
STEP 3, Add Captions to Enhance Engagement
To increase accessibility and boost social engagement,
this step overlays professional-looking subtitles on the video using a styling template.
This results in a final video that includes visuals, voice-over, and captions.
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method