🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Telegram + Google Gemini: YouTube Shorts scripts fast

Lisa Granqvist Partner Workflow Automation Expert

You find a great YouTube video, you know it could become a solid Short, and then you hit the usual wall. Transcript hunting, copy-paste chaos, and that weird moment where you’re rewriting the same idea three times just to make it “Shorts-ready.”

This Gemini script automation hits content creators first, honestly. But social media managers repurposing client videos and small agency owners trying to keep a posting cadence feel the drag too. The outcome is simple: you send a link, you get a usable Shorts script back in Telegram.

Below you’ll see how the workflow pulls a transcript, has Google Gemini shape it into a hook + tight script, and sends it back so you can record (or hand it to someone who will).

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Telegram + Google Gemini: YouTube Shorts scripts fast

The Problem: Turning Long Videos into Shorts Scripts Is Slow

Repurposing should feel like a shortcut. Instead, it turns into a mini project. You grab a link, then you’re bouncing between transcript tools, YouTube captions, and notes apps, trying to pull out the “one point” that will actually work in a 30–60 second Short. Half the time, you end up with a summary that sounds fine on paper but has no hook, no pacing, and no clean ending. Then you rewrite. Again.

The friction compounds, especially when you want to do this more than once a week.

  • Getting a transcript often means using a separate tool, then cleaning up messy formatting by hand.
  • Shorts scripts need structure (hook, beats, payoff), and most “summaries” don’t give you that.
  • When you’re on the go, you can’t easily repurpose from your phone without losing the thread.
  • Inconsistent scripts lead to extra edits, which quietly kills your posting rhythm.

The Solution: Send a YouTube Link, Get a Shorts Script Back

This workflow turns Telegram into your “repurpose inbox.” You send a YouTube URL to your Telegram bot, and n8n takes over. First, it retrieves the video transcript via Supadata (a community node that pulls transcripts reliably). Then it packages that transcript into a clean input for an AI prompt. Google Gemini generates a Shorts-optimized script with a title and a tight body that’s easier to read aloud. Finally, the finished script is sent back to you in Telegram, ready to record or tweak.

It starts with a Telegram message. Supadata fetches the transcript, then Gemini shapes it into something performable. A Telegram reply delivers the final script so you’re not digging through tools to find it.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you repurpose 5 long-form videos a week. Manually, it’s usually about 20 minutes to grab a transcript, skim it, and rewrite a Short script that has a real hook, so call it about 100 minutes weekly. With this workflow, you spend maybe 1 minute sending links in Telegram, then wait a few minutes for processing while you do something else. You’re still reviewing the script (you should), but you’re no longer starting from a blank page.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Telegram to receive links and deliver scripts
  • Google Gemini to generate Shorts-ready scripts
  • Supadata API key (get it from your Supadata dashboard)

Skill level: Intermediate. You’ll connect credentials and install one community node if you self-host.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

You send a YouTube URL in Telegram. The workflow begins the moment your bot receives a message containing a link.

The transcript gets pulled automatically. n8n uses the Supadata community node to fetch the transcript, so you’re not copying captions or juggling third-party transcript sites.

Gemini turns raw text into a Shorts script. The workflow assembles the transcript into a clean input, then a Gemini chat model generates a structured output (title plus a script body that’s easier to read aloud).

The script lands back in Telegram. You get the result in the same chat where you sent the link, which means you can capture ideas from your phone and keep moving.

You can easily modify the prompt style to match your brand voice based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Telegram Trigger

This workflow starts when a Telegram message containing a video ID is received.

  1. Add the Telegram Link Trigger node as the trigger.
  2. Set Updates to message.
  3. Credential Required: Connect your telegramApi credentials in Telegram Link Trigger.

Step 2: Connect Supadata to Fetch the Transcript

The trigger passes the video ID to Fetch Transcript, which retrieves the transcript text.

  1. Add the Fetch Transcript node and connect it to Telegram Link Trigger.
  2. Set Operation to getTranscript.
  3. Set Video ID to {{ $json.message.text }}.
  4. Credential Required: Connect your supadataApi credentials in Fetch Transcript.

Step 3: Set Up Script Assembly and AI Generation

The transcript is transformed into a single script string and sent to the AI chain for formatted output.

  1. Add Assemble Script Text and connect it to Fetch Transcript.
  2. Create a field named full_script with value {{ $json.content.map(item => item.text).join('\n') }}.
  3. Add Generate Trivia Script and connect it to Assemble Script Text.
  4. Set Text to =#background information {{ $json.full_script }}.
  5. Enable the output parser in Generate Trivia Script (it uses Structured Output Parser).
  6. Attach Gemini Chat Engine as the language model for Generate Trivia Script.
  7. Credential Required: Connect your googlePalmApi credentials in Gemini Chat Engine.

Structured Output Parser is an AI sub-node. Add any required credentials to Generate Trivia Script (the parent), not the parser itself.

Step 4: Configure Telegram Output Delivery

The generated title and script are sent back to the originating Telegram chat.

  1. Add Dispatch Summary and connect it to Generate Trivia Script.
  2. Set Text to {{ $json.output.title }} {{ $json.output.script }}.
  3. Set Chat ID to {{ $('Telegram Link Trigger').item.json.message.chat.id }}.
  4. Credential Required: Connect your telegramApi credentials in Dispatch Summary.

Step 5: Test and Activate Your Workflow

Verify the end-to-end flow before enabling it in production.

  1. Click Execute Workflow and send a Telegram message with a valid video ID to trigger Telegram Link Trigger.
  2. Confirm that Fetch Transcript returns transcript content and Assemble Script Text outputs full_script.
  3. Check that Generate Trivia Script returns structured output with title and script.
  4. Verify the final message appears in Telegram via Dispatch Summary.
  5. When successful, switch the workflow to Active to run continuously.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Telegram bot credentials can expire or get misconfigured. If messages stop triggering, check the Telegram Trigger node credentials and your bot token in BotFather first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Supadata or Gemini keys can fail due to permissions or rate limits. If transcript fetches come back empty, verify your Supadata API key and check its usage logs before changing the workflow.

Frequently Asked Questions

How long does it take to set up this Gemini script automation automation?

About 30 minutes if you already have your API keys.

Do I need coding skills to automate Shorts script creation?

No. You’ll mostly paste in credentials and edit a prompt if you want a different tone.

Is n8n free to use for this Gemini script automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Gemini API usage plus Supadata transcript lookups.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this Gemini script automation workflow for a different script style?

Yes, and it’s the best part. You’ll edit the prompt in the Google Gemini node to match your voice (more energetic, more educational, more “storytime,” whatever works). Common customizations include adding a stronger first-line hook, forcing a specific length like 120–160 words, and asking for on-screen captions cues. If you want to swap AI providers, you can replace the Gemini chat model node with an OpenAI node and keep the rest of the flow the same.

Why is my Telegram connection failing in this workflow?

Usually it’s the bot token or a missing permission in the Telegram credentials you saved in n8n. Regenerate the token in BotFather if you suspect it leaked or was rotated, then update the Telegram Trigger and send node to use the new credential. Also check that your workflow is active and that you are messaging the correct bot chat.

How many videos can this Gemini script automation automation handle?

If you self-host, there’s no hard execution limit (it mostly depends on your server) and most small teams run dozens of videos a day without issues.

Is this Gemini script automation automation better than using Zapier or Make?

Often, yes, for this use case. The transcript step relies on a community node, and n8n is simply more comfortable when you need “fetch data, transform it, then run an AI chain” logic. You also get a self-hosted option, which matters once you start processing lots of links. Zapier or Make can be quicker for very simple workflows, but you may hit limits as soon as you add branching, retries, or more complex AI prompting. Talk to an automation expert if you want a quick recommendation based on your volume.

Once this is running, turning a random YouTube find into a record-ready Short stops being a chore. You’ll feel the difference after the first few links.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal