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
Automate YouTube transcripts with n8n and AI

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

Learn how to Build this Workflow with AI:

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.


Automate YouTube transcripts with n8n and AI

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.