Skip to main content

One telegram chat to edit, thumbnail & auto-post your videos everywhere

Workflow preview

Workflow preview
100%
One telegram chat to edit, thumbnail & auto-post your videos everywhere preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow turns any Telegram bot into an AI powered social media command center for photos, videos and voice notes. video demo From one Telegram c...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.switch, n8n-nodes-base.noop, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.googlegemini, @n8n/n8n-nodes-langchain.lmchatgooglegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Juan Carlos Cavero Gracia.

Original n8n.io source

1.1 Workflow description

Title
One telegram chat to edit, thumbnail & auto-post your videos everywhere
Workflow name
One telegram chat to edit, thumbnail & auto-post your videos everywhere

This workflow turns any Telegram bot into an AI-powered social media command center for photos, videos and voice notes.

video demo

From one Telegram chat you can:

  • Send a photo and auto-post it to Instagram, TikTok and Pinterest with AI captions.
  • Send a video and:
    • Let AI generate titles + descriptions and upload it to TikTok, Instagram and YouTube.
    • Use /thumb to generate 4 custom thumbnails with Nano Banana Pro.
    • Use /edit ... to run FFmpeg edits (cut, mute, resize, speed, etc.) via Upload-Post FFmpeg jobs and get the edited video back in Telegram.
  • Send a voice note and turn it into posts for LinkedIn, X (Twitter) and Threads, then auto-publish.
  • Keep human approval in the loop: every caption or text post is shown in Telegram for you to accept before publishing.

Out of the box, the captions and long descriptions are optimized for Spanish (es-ES), but you can easily change the prompts to any language or brand voice.


What You Can Do From Telegram

1. Photo → Instagram, TikTok & Pinterest

Just send a photo (or image as document) to your Telegram bot:

  • The workflow downloads the photo from Telegram.
  • Gemini 2.5 Flash analyzes the image plus your caption/text (if any).
  • An AI Agent generates platform-specific descriptions for:
    • TikTok (short hook, 90 chars)
    • Instagram
    • Pinterest (title + description)
  • You receive a message in Telegram with all the proposed descriptions.
  • You approve or reject with inline buttons.
  • On approval, Upload-Post publishes the photo to:
    • Instagram
    • TikTok
    • Pinterest (to the board you configured)
      and sends back a status message with success flags, post URLs and error messages.

2. Video → TikTok, Instagram & YouTube (no commands)

If you send a video with no special caption:

  • The workflow treats it as a standard video post.
  • It fetches the file from Telegram.
  • Gemini 2.5 Flash analyzes the video and describes its content.
  • An AI Agent turns that description + your caption into:
    • TikTok description
    • Instagram description
    • YouTube title + description
  • You get a Telegram message with the three platform descriptions to review.
  • Once you approve:
    • It shows “Uploading…” in Telegram.
    • The video is sent to Upload-Post, which uploads to TikTok, Instagram and YouTube with the generated text.
    • Finally, you receive an upload report for each platform (success, URL, error message).

3. /thumb → AI Thumbnails for Your Video (Nano Banana Pro)

If you send a video with caption exactly /thumb:

  • The workflow downloads the video.
  • Gemini 2.5 Flash generates a long, SEO-rich description in Spanish of everything that happens in the video.
  • A second AI Agent uses that detailed description to create 3 concepts:
    • Each concept has: title, description, and a full prompt_thumbnail (Spanish, single line) specially crafted for Nano Banana Pro.
  • In Telegram you see the 3 concepts (titles) and select:
    • 0, 1, 2 or “create new”.
  • Once you choose a concept:
    • The prompt is sent to Nano Banana Pro (fal-ai/nano-banana-pro/edit) with your reference face image (configurable).
    • Nano Banana Pro generates 4 thumbnails (16:9).
    • The workflow downloads the 4 images and sends them back to you in Telegram as photos so you can pick and use your favorite in your YouTube/Upload-Post pipeline.

Use /thumb whenever you already have the video and just want killer thumbnails generated with AI.


4. /edit … → Natural-Language FFmpeg Video Editor

If you send a video with a caption starting with /edit, for example:

  • /edit cut the first 3 seconds and remove the audio
  • /edit crop to vertical 9:16 and speed up x1.5
  • /edit blur the background and keep the subject centered

The workflow behaves as a text-to-FFmpeg command generator:

  • An AI Agent (powered by Gemini) reads your /edit instructions.
  • It generates a safe FFmpeg command in JSON format:
    • Always uses ffmpeg -y
    • Uses {input} and {output} placeholders
    • No semicolons and no dangerous shell characters
  • The workflow then:
    • Downloads the original video from Telegram.
    • Calls Upload-Post FFmpeg jobs API with the video and the generated full_command.
    • Polls the job status until it’s finished.
    • Downloads the processed (edited) video.
    • Sends the edited video back to you in Telegram with a simple sendVideo node.

This makes Telegram a front-end for a remote FFmpeg engine: you describe the edit in natural language, and the workflow handles all the FFmpeg complexity.

> Note: The edited video is returned to Telegram; if you want to auto-post it, simply send the new video again without /edit so it goes through the normal multi-platform publishing path.


5. Voice Notes → LinkedIn, X & Threads (Text Posts)

For voice messages:

  • The Telegram Trigger detects message.voice.
  • The workflow downloads the audio file.
  • OpenAI Whisper transcribes the recording.
  • An AI Agent turns the transcription into:
    • A LinkedIn post (Spanish, long-form dev/creator style, based on your examples).
    • A Threads post (Spanish, up to ~500 chars).
    • A Tweet / X post or thread (English, using hooks + hashtags like #n8n, #automation, #dev).
  • In Telegram you see a preview message with the suggested copy for Threads, LinkedIn and X.
  • After you approve:
    • You get an “Uploading…” message.
    • Upload-Post publishes:
      • To your LinkedIn organization page (configured by ID).
      • To X (Twitter).
      • To Threads.
    • The workflow sends a status message with success flags and URLs for each platform.

This is perfect for “talk to your phone, ship content to all your text platforms”.


How the Workflow Is Structured

  • Telegram Trigger
    Listens to every incoming message and routes by type:

    • /start → No-Op
    • voice → Audio pipeline
    • document/photo → Photo pipeline
    • video → Video/thumbnail/editor pipelines (/thumb, /edit or normal)
  • AI Blocks (Gemini + OpenAI)

    • Gemini 2.5 Flash for:
      • Photo understanding.
      • Short video descriptions (for auto-posting).
      • Long, detailed video summaries (for thumbnail generator).
    • OpenAI Whisper for voice transcription.
    • Multiple AI Agents (Gemini chat) with structured JSON output parsers for:
      • Per-platform social captions.
      • Threads/LinkedIn/X posts.
      • Thumbnail prompts and title concepts.
      • FFmpeg command generation.
  • Upload-Post Integration

    • Photos → Instagram, TikTok, Pinterest.
    • Videos → TikTok, Instagram, YouTube.
    • Text → LinkedIn page, X, Threads.
    • FFmpeg job endpoint for server-side video editing.
    • All uploads return status, URL and error messages back into Telegram.
  • Human-in-the-Loop

    • All critical AI outputs go through sendAndWait nodes in Telegram:
      • You review and choose whether to publish or not.
      • You choose which thumbnail concept to use.

Requirements & Setup

  • Accounts & APIs

    • Telegram bot (via @BotFather).
    • Upload-Post.com account with your social profiles connected.
    • OpenAI API key (Whisper).
    • Google Gemini API key (AI Studio).
    • Nano Banana Pro / fal.ai key (for thumbnails).
  • Runtime

    • n8n instance (cloud or self-hosted).
    • FFmpeg available where n8n runs (Docker image, VM, etc.) for local checks if needed (the heavy lifting is delegated to Upload-Post FFmpeg jobs).
  • Configuration

    • Create Telegram credentials with your bot token.
    • Create Upload-Post credentials with your API token.
    • Set upload_post_user and pinterest_board_id in the Edit Fields node.
    • Optionally replace:
      • Example face image URL used for Nano Banana Pro.
      • LinkedIn organization ID.
      • Any language / tone in the AI agent system prompts.

Ideal Use Cases

  • Creators & influencers who want to post to every platform from one Telegram chat.
  • Agencies who want a “content butler” clients can use without touching n8n.
  • Solo devs & makers who publish workflows, devlogs and product updates and want:
    • Multi-platform video posts.
    • Voice → LinkedIn/X/Threads posts.
    • Easy text-based video editing and thumbnail generation.

Install this template, plug in your keys, talk to your bot in Telegram, and turn it into your all-in-one AI social media machine.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 3 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 4 - Transcribe a recording

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Get a Audio File

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 17 - Get a Photo

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 18 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Analyze video

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 21 - Analyze an image

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 22 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 23 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 24 - Send Regular Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Showing the first 24 of 104 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow One telegram chat to edit, thumbnail & auto-post your videos everywhere
Complexity advanced
Nodes 104
Categories Social Media, Multimodal AI
Author Juan Carlos Cavero Gracia
Published 07 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9363/9363.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does One telegram chat to edit, thumbnail & auto-post your videos everywhere do?

This workflow turns any Telegram bot into an AI powered social media command center for photos, videos and voice notes. video demo From one Telegram c...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.