Automate YouTube Transcript Summaries with n8n & AI

Struggling to summarize YouTube videos efficiently? This n8n workflow automates transcribing, summarizing, and posting transcripts with advanced AI, saving hours of manual work and boosting content accessibility.
webhook
youtube-transcription.youtubeTranscripter
chainLlm
+7
Workflow Identifier: 1545
NODES in Use: Webhook, Set, Code, YouTube, YouTube Transcript, Split Out, Summarize, Chain LLM, Respond to Webhook, Telegram

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow takes YouTube video links sent through a webhook and creates a quick summary of each video’s transcript.

It solves the problem of copying URLs, getting transcripts, and writing summaries by hand.

The result is a neat JSON summary sent back instantly and a message posted to Telegram for fast updates.


Who Should Use This Workflow

Users who review and share YouTube videos daily and want to save time on manual transcript work.

It suits bloggers, content creators, and social media managers needing quick video summaries without errors.


Tools and Services Used

  • n8n platform: To automate and connect nodes.
  • YouTube API: To get video details like title and description.
  • YouTube Transcript node: To download video subtitles text.
  • OpenAI with Langchain: To make AI create readable transcript summaries.
  • Telegram Bot API: To send messages about new summaries.

Inputs, Processing, and Outputs

Inputs

A webhook receives a POST request containing a JSON with the field youtubeUrl.

Processing Steps

  • Extract the YouTube video ID from the URL using a JavaScript regular expression.
  • Use YouTube API node to get video title and description by video ID.
  • Fetch the transcript through the YouTube Transcript node, returning an array of transcript segments.
  • Split transcript segments into single items for easier processing.
  • Concatenate all transcript text together into a single block.
  • Send full transcript text to the Langchain node with GPT-4o Mini using a prompt to create a detailed summary and topics list.
  • Format a clear JSON object that includes summary, topics, video metadata, and URL.
  • Return the JSON response to the webhook requester.
  • Send a message to Telegram chat with video title and link.

Outputs

Outputs include a JSON summary object sent via webhook and a Telegram message notification sent in real time.


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import Workflow

  1. Download the workflow file provided on this page.
  2. Open the n8n editor and use the Import from File option to load the workflow.

Step 2: Add API Credentials

  1. Set up YouTube API credentials in the YouTube node.
  2. Add OpenAI API Key in the Langchain node to use GPT-4o Mini.
  3. Enter Telegram Bot API token and target chat ID in the Telegram node.

Step 3: Check Workflow Settings

  1. Make sure the Webhook node method is set to POST with path ‘ytube’ (or another custom path).
  2. Verify code in the Code node is unchanged, especially the YouTube video ID regex.

Step 4: Test and Activate

  1. Send a POST request with JSON body containing a youtubeUrl field to the webhook URL.
  2. Check the response JSON for the summarized transcript.
  3. Look at Telegram for the notification message.
  4. When everything works, toggle the workflow switch to activate it for production.

Common Edge Cases and Failures

  • If the transcript is missing, the YouTube Transcript node shows “No transcript available” because the video does not have captions.
  • Wrong video ID means the code node regex did not match; check the URL format and adjust the code if needed.
  • Telegram messages may fail if API token or chat ID is invalid; re-check credentials.

Ideas for Customization

  • Change the AI prompt in the Langchain node for shorter or more detailed summaries.
  • Post updates to Slack or Discord by replacing the Telegram node.
  • Add a node to ignore videos longer than a set limit after fetching metadata.
  • Store all summaries into a database before sending response for later review.

Summary of Benefits

✓ Saves hours by automating transcript fetching and summarization.

✓ Reduces manual errors from copying URLs and text.

✓ Sends fast notifications to Telegram with video summaries.

✓ Provides clear JSON output for integration or further processing.


Helpful Notes

Make sure the webhook URL is public and accessible.

Check YouTube API quota and OpenAI usage to avoid limits.

Test each step carefully in the n8n UI before activation.

If running self-host n8n, confirm all external nodes and APIs are reachable.


Frequently Asked Questions

The workflow uses a JavaScript code node with a regular expression to extract the video ID from different YouTube URL formats.
The workflow will show “No transcript available” because the YouTube Transcript node cannot find captions for that video.
Yes, users can replace the Telegram node with Slack or Discord nodes to send notifications elsewhere.
Yes, testing ensures all nodes work correctly, credentials are set properly, and the summary output meets expectations before production use.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free