🎬 Convert YouTube videos to audio summaries with Decodo, OpenAI & Telegram

⚑ 161 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

Stop watching long videos, start listening to concise summaries.

This workflow transforms any YouTube video URL sent via Telegram into a high-quality, spoken audio summary (MP3) and a structured text overview. It acts as your personal AI research assistant, turning lengthy content into bite-sized audio files that you can consume on the go.

It leverages Decodo for robust transcript extraction, OpenAI for intelligent summarization, and for realistic text-to-speech generation.


✨ Features

βš™οΈ How it Works

  1. Trigger: You send a YouTube URL to your Telegram Bot.
  2. Validate: The workflow checks the URL pattern using Regex.
  3. Extract: Decodo scrapes the video page to retrieve the full transcript JSON.
  4. Process: A Code node flattens the complex JSON into a readable text format.
  5. Summarize: OpenAI (gpt-4o-mini) analyzes the text and writes a script optimized for listening.
  6. Speak: OpenAI converts the script into a high-definition MP3 file.
  7. Deliver: The bot replies with the Audio File and a formatted text summary including the genre tags and original link.

πŸ“₯ Decodo Node Installation

The Decodo node is used in this workflow for fetching the YouTube Transcript.

  1. Find the Node: Click the + button in your n8n canvas.
  2. Search: Search for the Decodo node and select it.
  3. Credentials: When configuring the first Decodo node, use your API key (obtained with the 80% discount coupon).
  4. Setup: Open the Decodo (Fetch YouTube Transcript) node to ensure it is correctly targeting the YouTube service.

🎁 Get a free Web Scraping API subscription here πŸ‘‰πŸ» https://visit.decodo.com/X4YBmy


βž• How to Adapt the Template

This workflow is highly flexible and can be modified for various content tasks:

πŸ”— Nodes Used

Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser, OpenAI

πŸ“₯ Import

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

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