🎬 Create YouTube shorts scripts from video links with Gemini AI and Telegram

⚑ 4,331 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 20250715 22.05.10.png disclaimer: This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Quick Summary

This template automates the creation of YouTube Shorts scripts. Simply send a YouTube video URL to a Telegram bot, and this workflow will use AI (Google Gemini) to generate a script optimized for Shorts and send it back to you. It streamlines your content creation process by eliminating the manual work of transcribing and scriptwriting.

Target Audience & Problem Solved

This template is ideal for:

It solves the following problems:

Workflow Overview

This workflow automatically generates a script for YouTube Shorts using AI (Google Gemini) from a YouTube video URL received via Telegram, and then sends the result back to Telegram.

The process is as follows:

  1. Receive URL: A Telegram bot receives a YouTube video URL from a user.
  2. Get Transcript: It uses the community node n8n-nodes-supadata to retrieve the video’s transcript via the Supadata service.
  3. Generate Script: Based on the retrieved transcript, Google Gemini creates a script (title and body) optimized for a YouTube Shorts video.
  4. Send Result: The generated script is sent back to the user who sent the original URL via Telegram.

How to Use

  1. Prerequisites:

    • Install the n8n-nodes-supadata community node as described below.
    • Register your API keys for Telegram, Supadata, and Google Gemini as credentials in n8n.
    • Set the appropriate credentials in each node within the workflow.
    • For Telegram, create your bot with BotFarther.
  2. Execution:

    • Activate the workflow.
    • Send a YouTube video URL to your configured Telegram bot.
  3. Confirmation:

    • After a short while, the workflow will run automatically, and you will receive the completed script from the Telegram bot.

Customization Guide

You can tailor this template to your specific needs:

Community Node Installation

This workflow requires the n8n-nodes-supadata community node. Please install it using the following steps.

  1. Navigate to Settings > Community Nodes in your n8n interface.
  2. Click on Install.
  3. Enter n8n-nodes-supadata in the input field and click the Install button.

πŸ”— Nodes Used

Telegram, Telegram Trigger, Basic LLM Chain, Structured Output Parser, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup