Skip to main content

Summarize YouTube videos & chat about content with GPT-4o-mini via Telegram

Workflow preview

Workflow preview
100%
Summarize YouTube videos & chat about content with GPT-4o-mini via Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Summarize YouTube Videos & Chat About Content with GPT 4o mini via Telegram Description This n8n workflow automates the process of summarizing YouTube video transcripts and enables users to interac...

Best for

  • Content Creation automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitout, n8n-nodes-base.set, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.summarize, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-youtube-transcription-kasha.youtubetranscripter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Grzegorz Hanus.

Original n8n.io source

1.1 Workflow description

Title
Summarize YouTube videos & chat about content with GPT-4o-mini via Telegram
Workflow name
Summarize YouTube videos & chat about content with GPT-4o-mini via Telegram

Summarize YouTube Videos & Chat About Content with GPT-4o-mini via Telegram

Description

This n8n workflow automates the process of summarizing YouTube video transcripts and enables users to interact with the content through AI-powered question answering via Telegram. It leverages the GPT-4o-mini model to generate summaries and provide insights based on the video’s transcript.

How It Works

  1. Input: The workflow starts by receiving a YouTube video URL. This can be submitted through:

    • A Telegram chat message.
    • A webhook (e.g., triggered by a shortcut on Apple devices).
  2. Transcript Extraction: The URL is processed to extract the video transcript using the custom youtubeTranscripter community node (available here). The transcript is concatenated into a single text and stored in a Google Docs document.

  3. Summarization: The GPT-4o-mini AI model analyzes the transcript and generates a structured summary, including:

    • A general overview.
    • Key moments.
    • Instructions (if applicable).
      The summary is then sent back to the user via Telegram.
  4. Interactive Q&A: Users can ask questions about the video content via Telegram. The AI retrieves the stored transcript from Google Docs and provides accurate, context-based answers, which are sent back through Telegram.

Setup Instructions

To configure this workflow, follow these steps:

  1. Import the Workflow: Download the provided JSON template and import it into your n8n instance.
  2. Install the Community Node: Install the youtubeTranscripter community node via npm:
    npm install n8n-nodes-youtube-transcription-kasha
    
    Important: This node requires a self-hosted n8n instance due to its external dependencies.
  3. Configure Nodes:
    • Webhook: Set up the webhook to receive YouTube URLs. Alternatively, configure the Telegram node if using Telegram as the input method.
    • Google Docs: Provide valid credentials to enable writing the transcript to a Google Docs document.
    • AI Model: Set up the GPT-4o-mini model for summarization and Q&A functionality.
  4. Test the Workflow: Send a YouTube URL via your chosen input method (Telegram or webhook) and confirm that the summary is generated and delivered correctly.

Customization

  • Language: Adjust the AI prompts to generate summaries and answers in any desired language.
  • Output Format: Modify the summary structure by editing the prompt in the summarization node.
  • Input Methods: Replace the Telegram node with another messaging or input node to adapt the workflow to different platforms.

Who Can Benefit?

This template is perfect for:

  • Content Creators: Quickly summarize video content for repurposing or review.
  • Students and Researchers: Extract key insights from educational or informational videos efficiently.
  • General Users: Interact with video content via AI without needing to watch the full video.

Problem Solved

This workflow simplifies video content consumption by:

  • Automating the extraction and summarization of key points.
  • Enabling interactive Q&A to address specific questions without rewatching the video.

Additional Notes

  • Disclaimer: The youtubeTranscripter community node is required and only works on self-hosted n8n instances due to its reliance on external services.
  • Apple Users: Enhance your experience with a custom shortcut to share YouTube videos directly to the workflow. Download the shortcut here.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Split Transcript into Segments

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 2 - Extract YouTube URL from Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Extract Video ID from URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - gpt-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 5 - Generate Summary with GPT-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.4

Block 6 - Concatenate Transcript Segments

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1

Block 7 - Trigger on Telegram Message

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 8 - Extract YouTube Transcript

Type / Role
n8n-nodes-youtube-transcription-kasha.youtubeTranscripter - youtubeTranscripter
Config choices
Version 1

Block 9 - Send Summary via Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Receive YouTube URL via Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 11 - Send Response to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 12 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 13 - Retrieve Transcript from Google Docs

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 14 - Update Transcript in Google Docs

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 15 - Handle User Questions via AI

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 16 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Window Buffer Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 18 - Google Docs2

Type / Role
n8n-nodes-base.googleDocsTool - googleDocsTool
Config choices
Version 2

Block 19 - Send AI Response via Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Summarize YouTube videos & chat about content with GPT-4o-mini via Telegram
Complexity advanced
Nodes 22
Categories Content Creation, AI RAG
Author Grzegorz Hanus
Published 13 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3156/3156.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Summarize YouTube videos & chat about content with GPT-4o-mini via Telegram do?

Summarize YouTube Videos & Chat About Content with GPT 4o mini via Telegram Description This n8n workflow automates the process of summarizing YouTube video transcripts and enables users to interac...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, AI RAG use case.