# Summarize YouTube video transcripts in Discord with Gemini: n8n workflow

> Started by an event in a connected app, and works across Discord and Supabase. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/summarize-youtube-video-transcripts-in-discord-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Summarize YouTube video transcripts in Discord with Gemini

Started by an event in a connected app, and works across Discord and Supabase. It hands the judgement calls to Gemini. 19 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsummarize-youtube-video-transcripts-in-discord-with-gemini)

**19 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 1 Logic 8 Service 8

The steps in the order they run, from what starts it.

- 1 **Discord Trigger** Discord trigger *Starts it*
- 2 **Error Trigger** Error trigger *Starts it*
- 3 **Extract YouTube URL** Code *Logic*
- 4 **Prepare Error Data** Code *Logic*
- 5 **Is YouTube URL?** If *Logic*
- 6 **Log Run Error** Supabase *Service*
- 7 **yt-dlp Get Metadata** Execute Command *Service*
- 8 **Discord Not YouTube Reply** Discord *Service*
- 9 **Discord Error Reply** Discord *Service*
- 10 **Parse Metadata** Code *Logic*
- 11 **Read Subtitle File** Execute Command *Service*
- 12 **Parse Transcript** Code *Logic*
- 13 **Message a model** Google Gemini *Model*
- 14 **Prepare Insert Data** Code *Logic*
- 15 **Save to Supabase** Supabase *Service*
- 16 **Prepare Success Log** Code *Logic*
- 17 **Log Run** Supabase *Service*
- 18 **Prepare Messages for Discord** Code *Logic*
- 19 **Discord Reply** Discord *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 19, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Discord, Supabase
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Discord and Supabase accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 19 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsummarize-youtube-video-transcripts-in-discord-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Discord](https://millionrounds.com/workflows?service=Discord#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Promote your YouTube video on X with OpenAI and Discord** 20 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/promote-your-youtube-video-on-x-with-openai-and-discord)
- [**Scrape and ingest web content into Supabase pgvector** 18 steps · calls a model · Supabase, Supabase vectors](https://millionrounds.com/workflow/scrape-and-ingest-web-content-into-supabase-pgvector)
- [**Send article digests from Discord to Gmail with OpenAI** 20 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/send-article-digests-from-discord-to-gmail-with-openai)
- [**Workflow function to summarize Reddit posts with Gemini** 20 steps · calls a model · Reddit, Supabase](https://millionrounds.com/workflow/workflow-function-to-summarize-reddit-posts-with-gemini)
- [**Ingest LinkedIn posts from Google Drive into Pinecone** 21 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/ingest-linkedin-posts-from-google-drive-into-pinecone)
- [**Viral social media trends with Gemini and Apify** 17 steps · calls a model · Apify, Discord](https://millionrounds.com/workflow/viral-social-media-trends-with-gemini-and-apify)
