AutomationMart
Home/Browse/Summarize YouTube video transcripts in Discord with Gemini and Supabase
n8n

Summarize YouTube video transcripts in Discord with Gemini and Supabase

n8nn8n19 modulesv1.0
DiscordGemini

YouTube Video Transcript Summarizer — Discord Bot > Paste a YouTube URL into a Discord channel and this workflow automatically extracts the transcript, uses an LLM to generate a concise summary, and stores everything in a database — all in seconds. > Self-hosted n8n only. This workflow uses the Execute Command node to run yt-dlp inside the n8n container. This requires shell access, which is only available on self-hosted instances (Docker, VPS, etc.) — it will not work on n8n Cloud. Import

At a glance

Summarize YouTube video transcripts in Discord with Gemini and Supabase is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Discord, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Discord, Gemini
Modules
19
Price
Free
Version
v1.0
Summarize YouTube video transcripts in Discord with Gemini and Supabase workflow diagram

About this workflow

YouTube Video Transcript Summarizer — Discord Bot > Paste a YouTube URL into a Discord channel and this workflow automatically extracts the transcript, uses an LLM to generate a concise summary, and stores everything in a database — all in seconds. > Self-hosted n8n only. This workflow uses the Execute Command node to run yt-dlp inside the n8n container. This requires shell access, which is only available on self-hosted instances (Docker, VPS, etc.) — it will not work on n8n Cloud. Import this workflow into n8n --- Prerequisites | Tool | Purpose | |------|---------| | Discord Bot | Listens for messages and sends replies | | yt-dlp | Downloads subtitles and video metadata (must be installed in the n8n container) | | Google Gemini API | Summarizes video transcripts (Gemini 2.5 Flash) | | Supabase | Stores video data and run logs | Credentials | Node | Credential Type | Notes | |------|----------------|-------| | Discord Trigger | Discord Bot Trigger | Bot token with Message Content Intent enabled | | Discord Reply / Discord Not YouTube Reply / Discord Error Reply | Discord Bot | Same bot, used for sending messages | | Message a model (Gemini) | Google Gemini (PaLM) API | API key from Google AI Studio | | Save to Supabase / Log Run / Log Run Error | Supabase | Project URL + anon key | --- What It Does When a user pastes a YouTube URL into a Discord channel, the workflow: 1. Detects the YouTube URL using RegEx (supports youtube.com, youtu.be, shorts, live) 2. Extracts the video's subtitles (English and Vietnamese) and metadata using yt-dlp 3. Cleans the raw VTT subtitle file into plain-text transcript 4. Summarizes the transcript using an LLM (Gemini 2.5 Flash) into a TLDR + detailed summary (in the original language) 5. Stores the video metadata, full transcript, and AI summary in a Supabase database 6. Logs every run (success or error) to a separate runs table for tracking 7. Chunks long summaries into Discord-safe messages (≤2000 characters each) 8. Replies in Discord with the video title, stats, and the full summary Non-YouTube messages get a friendly "not a YouTube link" reply. Errors are caught, classified, logged to the database, and reported back to Discord. --- How It Works Main Flow (Happy Path) Error Flow --- Node Breakdown | # | Node | Type | Description | |---|------|------|-------------| | 1 | Discord Trigger | Discord Bot Trigger | Fires on every message in the configured channel | | 2 | Extract YouTube URL | Code | RegEx extracts video ID from message content | | 3 | Is YouTube URL? | IF | Routes YouTube URLs to processing, others to rejection reply | | 4 | yt-dlp Get Metadata | Execute Command | Downloads subtitles (.vtt, English/Vietnamese) and prints metadata JSON | | 5 | Parse Metadata | Code | Extracts title, channel, views, duration via RegEx; decodes Unicode for multi-language support | | 6 | Read Subtitle File | Execute Command | Dynamically finds and reads the .vtt file (continueOnFail enabled) | | 7 | Parse Transcript | Code | Strips VTT timestamps/tags, deduplicates lines | | 8 | Message a model | Google Gemini | Sends transcript to Gemini 2.5 Flash for TLDR + detailed summary (in original language) | | 9 | Prepare Insert Data | Code | Merges summary with all metadata fields | | 10 | Save to Supabase | Supabase | Inserts full record into videos table | | 11 | Prepare Success Log | Code | Builds success run record | | 12 | Log Run | Supabase | Inserts into runs table | | 13 | Prepare Messages for Discord | Code | Chunks long summaries into Discord-safe messages (≤2000 chars) | | 14 | Discord Reply | Discord | Posts summary preview to channel | | 15 | Discord Not YouTube Reply | Discord | Replies when message isn't a YouTube link | | 16 | Error Trigger | Error Trigger | Catches any unhandled node failure | | 17 | Prepare Error Data | Code | Classifies error type and extracts context | | 18 | Log Run Error | Supabase | Logs error to runs table | | 19 | Discord Error Reply | Discord | Posts error message to channel | --- Setup Guide 1. Discord Bot 1. Go to the Discord Developer Portal 2. Create a new Application → Bot 3. Enable Message Content Intent under Privileged Intents 4. Copy the Bot Token 5. Invite the bot to your server with Send Messages + Read Messages permissions 6. In n8n, create a Discord Bot Trigger credential (for listening) and a Discord Bot credential (for sending replies) 7. Update the guild ID and channel ID in the Discord Trigger node and all Discord reply nodes 2. yt-dlp yt-dlp must be installed in your n8n container. For Docker-based installs: Optional: Place a cookies.txt file at /home/node/.n8n/cookies.txt to avoid age-gated or bot-detection issues. 3. Google Gemini API 1. Go to Google AI Studio 2. Click Create API Key and copy it 3. In n8n, click the Gemini node → Credential → Create New 4. Paste your API key and save 4. Supabase 1. Create a project at supabase.com 2. Go to Settings → API and copy the URL and anon key 3. In n8n, create a Supabase credential with your URL and API key 4. Run the SQL below in the Supabase SQL Editor to create the required tables --- Supabase SQL

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct

Synchronize WooCommerce Inventory & Create Products with Gemini AI & BrowserAct This sophisticated n8n template automates WooCommerce inventory management by scraping supplier data, updating existing products, and intelligently creating new ones with AI-formatted descriptions. This workflow is essential for e-commerce operators, dropshippers, and inventory managers who need to ensure their product pricing and stock levels are synchronized with multiple third-party suppliers, minimizing overselli

Free

Post new Wix Answers tickets on Discord

Every time a new ticket is submitted to Wix Answers, Make will automatically post a message on a specified Discord server.

Free

Parse incoming invoices from Outlook using AI Document Understanding

This n8n template monitors an Outlook mailbox for invoices, automatically parses/extracts data from them and then uploads the output to an Excel Workbook. One of my top workflow requests, this template can save many hours of manual labour for you or your finance/accounts team. How it works A scheduled trigger is set to fetch recent Outlook messages to the Accounts receivable mailbox. Each message is analysed to determine whether or not it from a supplier and is issuing/contains an

Free

Extract university term dates from Excel using CloudFlare markdown conversion

This n8n template imports an XLSX containing terms dates for a university, extracts the relevant events using AI and converts the events to an ICS file which can be imported into iCal, Google Calendar or Outlook. Manually adding important term dates to your calendar by hand? Stop! Automate it with this simple AI/LLM-powered document understanding and extraction template. This cool use-case can be applied to many scenarios where Excel files are predominantly used. How it works The term dates exc

Free

Create playlists and control your Spotify player with GPT-4

This n8n template provides a powerful AI-powered chatbot that acts as your personal Spotify DJ. Simply tell the chatbot what kind of music you're in the mood for, and it will intelligently create a custom playlist, give it a fitting name, and populate it with relevant tracks directly in your Spotify account. The workflow is built to be flexible, allowing you to easily change the underlying AI model to your preferred provider, making it a versatile starting point for any AI-driven project. W

Free

Monitor GitHub releases with Gemini AI Chinese translation & Slack notifications

Overview This n8n template monitors specified GitHub repositories. When a new release is published, it automatically fetches the information, uses AI (Google Gemini by default) to summarize and translate it into Chinese, and sends a formatted notification to a designated Slack channel. Core Features: Automated Monitoring: Checks for updates on a predefined schedule. Intelligent Processing: Uses AI to extract key information and translate. Error Handling: Sends an error notification if fetchin

Free

AI-powered Scrum Master assistant with OpenAI, Slack and Asana integration

What is This? This automation simulates Scrum Master role on daily meetings. Essentially it is an AI Scrum Master using different sources of data. As intelligent support system for Scrum Masters that leverages data from Asana, Slack, and direct developer responses for comprehensive sprint status analysis and identification of areas requiring intervention. As such it is usable for Scrum Masters (of course) but Scrum Team aswell, Product Owner and possibly Business Owner. Who is it For?

Free

Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1

Overview This workflow automatically converts PDF files stored in Google Drive into structured, SEO-optimized blog articles in HTML format. It eliminates repetitive manual rewriting and formatting by transforming raw PDF content into publish-ready blog files. What This Workflow Does - Retrieves all PDFs from a specified Google Drive folder - Processes each file sequentially using Split In Batches - Downloads and extracts text from each PDF - Generates a long-form SEO blog article using OpenAI

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free