Quick overview
This workflow listens for a YouTube Short link sent to a Telegram bot, downloads the video metadata and MP4 URL via Apify, generates a repost caption with OpenAI, uploads the video to Blotato, publishes it as a Facebook Reel, Instagram Reel, and TikTok post, then confirms back in Telegram.
How it works
- Triggers when a message containing a YouTube Short URL is received by your Telegram bot.
- Sends the URL to an Apify YouTube downloader actor to retrieve the Short’s title and direct MP4 format URLs.
- Selects the best MP4 with audio up to the configured resolution and uploads it to Blotato to get a stable hosted media URL.
- Uses OpenAI (via the LangChain agent) to generate a short caption from the video title using your caption rules.
- Publishes the hosted video and generated caption to Facebook (as a Reel), Instagram (as a Reel), and TikTok via Blotato, continuing even if one platform publish fails.
- Sends a Telegram message confirming the publishes and includes the caption that was used.
Setup
- Create a Telegram bot and add its token as an n8n Telegram credential, then start a chat with the bot so it can receive messages.
- Add an Apify API token as an n8n HTTP Header Auth credential (Authorization: Bearer YOUR_TOKEN) and keep the Apify actor endpoint as configured in the HTTP Request.
- Add your OpenAI API key as an OpenAI credential and set the model name in the Configuration values if you want to change it.
- Install and authenticate the Blotato community node, connect your Facebook Page, Instagram account, and TikTok account in Blotato, and select the correct account/page IDs in the three publish steps.
- Review the Configuration values (video quality and caption instructions) and activate the workflow, then send a YouTube Short link to the Telegram bot.
Additional info