n8n

How to Automate Telegram Social Video Publishing?

Turn a Telegram message into a ready to publish video. Send a prompt or an image, get music, voice, captions, and a title, then push it to multiple social channels. Teams that publish short videos often can move faster and keep everything tracked in one place.

The flow starts when your Telegram bot receives a text or photo. It routes image messages to Cloudinary and an image to video service, or routes text prompts to a video generator. Music comes from a music API, while OpenAI writes a short script and social caption. A media step merges video and audio, and wait steps handle long tasks until the final file is ready. Titles, captions, and links go to Google Sheets for tracking. A Telegram message returns the finished video and caption for a quick review. When approved, one upload reaches a social posting API, which creates posts for Instagram, YouTube, TikTok, Facebook Page, Threads, X, LinkedIn, Bluesky, and Pinterest.

You need accounts and API keys for Telegram, OpenAI, Google Sheets, Cloudinary, the music tool, and the social posting API. Expect faster turnarounds, clear logs, and consistent posting across channels.

What are the key features?

  • Telegram bot trigger captures a text prompt or photo from chat
  • Smart branch chooses the image path or text prompt path automatically
  • Downloads Telegram images, uploads to Cloudinary, and gets a public URL
  • Converts an image into a short video and waits until rendering is done
  • Generates a video from prompts and collects the final video link
  • Creates a short script with OpenAI and splits lines for clean voice pacing
  • Generates background music using a music API and fetches the file URL
  • Merges video and audio using a media fusion service with async wait handling
  • Builds a social caption and SEO title with OpenAI for each post
  • Logs title, caption, and links in Google Sheets, returns preview in Telegram, then uploads once to a posting API to publish across nine social platforms

What are the benefits?

  • Reduce manual work from 3 hours to 10 minutes per video by automating creation and posting
  • Automate 90 percent of repetitive steps from script to captions to publishing
  • Improve tracking accuracy by 95 percent with automatic Google Sheets logging
  • Handle up to 10 times more videos per week with the same team size
  • Connect 6 services in one flow for faster cross channel publishing
  • Cut review loops to minutes by sending previews back in Telegram

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram, OpenAI, Google Sheets, Cloudinary, Blotato and Piapi. See the Tools Required section above for links to create accounts with these services.
  3. Connect Telegram: In n8n, open the Telegram Trigger and Telegram nodes, choose or create a Telegram credential, and paste your bot token. Set the chat ID where the bot should listen and send messages.
  4. Connect OpenAI: In the n8n credentials manager, create an OpenAI credential with your API key from your OpenAI account. Select this credential in the OpenAI nodes for script and caption generation.
  5. Connect Google Sheets: In n8n, create a Google Sheets OAuth2 credential. Approve access and select the target spreadsheet and sheet in the Append Video Data to Google Sheet node.
  6. Set Cloudinary: Create a Cloudinary account and get your API key and secret. In n8n, create an HTTP Basic Auth credential and reference it in the Upload Image to Cloudinary node. Confirm the upload URL uses your cloud name.
  7. Configure Blotato: Obtain your API key and add it as blotato-api-key in the HTTP Request header for Upload Video to Blotato and all Post to platform nodes. Open the Assign Platform IDs for Blotato node and fill each account ID.
  8. Configure Piapi: Create an API key. In n8n, create an HTTP Header credential and attach it to Generate Music with Piapi and Get Music File URL nodes.
  9. Set media services: For Convert Image to Video, Get Image-Based Video URL, Merge Video + Music, and Get Final Video URL nodes, update base URLs, headers, and any custom auth using the credentials manager.
  10. Map Google Sheet fields: In Append Video Data to Google Sheet, map title, caption, video URL, and status columns. Ensure your sheet headers match the node fields exactly, including any spaces in names.
  11. Set Telegram outputs: In Send Final Video to Telegram and Send Caption to Telegram, confirm the chat ID and message formatting. Send a test message to verify delivery.
  12. Run a full test: Send a prompt or image to your bot. Watch the execution for wait nodes to complete, review the returned video and caption in Telegram, confirm a new row in Google Sheets, and verify a new upload and scheduled posts in your posting tool.
  13. Troubleshoot: If a step hangs, check that external services can reach the provided webhook URLs from the Wait nodes. Verify all API keys and headers, inspect execution logs for errors, and confirm your sheet column for url matches the mapping including any spaces.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Blotato

Sign up

Starter: $29 / mo (includes Social media API and n8n & Make official nodes)

Cloudinary

Sign up

Free plan: $0 / mo, includes API access (Upload widget, API, search) with 25 monthly credits

Google Sheets

Sign up

Free: $0 (Google Sheets API usage has no additional cost; quota limits apply)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

PIAPI

Sign up

Free plan: $0 / mo (API access to basic APIs); Pay-as-you-go Kling video from $0.16 per 5s standard video

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.