Automate YouTube Transcript Summarization with n8n Workflow

This n8n workflow automates extracting, summarizing, and sharing YouTube video transcripts. It saves content creators and marketers hours by turning video content into clear summaries and Telegram notifications with no manual effort.
webhook
set
code
+7
Workflow Identifier: 1996
NODES in Use: Webhook, Set, Code, YouTube, YouTube Transcript, Split Out, Summarize, Langchain 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 Automation Does

This workflow gets a YouTube video URL and makes a full summary for easy reading.
It solves the problem of spending too much time watching and writing notes.
The outcome is a clear summary sent to Telegram and a quick reply to the request.

The workflow takes a video link.
It finds the video ID.
Then it gets the title and description.

Next, it gets the video transcript.
It breaks it into parts so the AI can read it well.
After that, it joins the parts to make one long text.

This full transcript text goes to the AI node which writes a proper summary.
The summary uses headers, bullets, bold words, even tables for clear facts.

The workflow then builds a nice object with the summary, video info, and an empty topic list.
Finally, it sends a quick reply and also messages the summary to Telegram.


Tools and Services Used

  • YouTube API: Gets video details by video ID.
  • YouTube Transcript Node: Fetches automatic video transcript.
  • Langchain OpenAI LLM Node: Writes a structured and detailed summary.
  • Telegram Bot API: Sends summary notifications.
  • Webhook: Receives incoming video URLs to start the workflow.

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

1. Import the Workflow

  1. Download the ready workflow file by clicking the Download button on this page.
  2. Inside your n8n editor, click the menu and select “Import from File.”
  3. Choose the downloaded file to add it.

2. Configure Credentials and Settings

  1. Add your YouTube API Key in the YouTube node credentials.
  2. Enter the Telegram Bot API Token and set the chat/channel ID in the Telegram node.
  3. Check the Webhook node URL is publicly accessible.
  4. If there are any IDs, emails, folders, or tables in the workflow, update them to your own.
  5. Look at the Code node for the video ID extraction regex. Copy it if needed.
  6. Review the AI prompt inside the Langchain Chain LLM node. Copy the prompt text easily with this code snippet:
const extractYoutubeId = (url) => {
  const pattern = /(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/;
  const match = url.match(pattern);
  return match ? match[1] : null;
};

const youtubeUrl = items[0].json.youtubeUrl;

return [{ json: { videoId: extractYoutubeId(youtubeUrl) } }];

3. Test and Activate

  1. Send a POST request with JSON body like { "youtubeUrl": "https://youtube.com/watch?v=..." } to the webhook URL.
  2. Check the output for the summary and Telegram message arrival.
  3. If all works, toggle the workflow to active mode to run in production.

This lets beginners quickly add the workflow without building from the start.
Activate and let it run flows automatically.
For self hosting n8n, this resource helps set up the server.


Inputs, Processing Steps, and Outputs

Inputs

  • A YouTube URL sent via POST to the Webhook node.

Processing Steps

  • The Set node organizes the received URL.
  • The Code node extracts the video ID from the URL.
  • The YouTube node fetches video metadata.
  • The YouTube Transcript node obtains the video transcript.
  • The Split Out node breaks the transcript into parts.
  • The Summarize node concatenates all parts.
  • The Langchain Chain LLM node generates a structured markdown summary.
  • The Set node assembles the final response object.
  • The Respond to Webhook node replies with the summary JSON.
  • The Telegram node sends the summary message to a Telegram channel.

Outputs

  • A JSON object containing the video title, description, URL, and detailed AI-generated summary.
  • A message sent to Telegram with video title and URL for team updates.

Edge Cases and Troubleshooting

Sometimes, transcripts are missing or empty.
This will cause summary failure.
Check if YouTube autogenerated transcripts exist first.

The Code node may fail extracting video ID if URL is malformed.
Test and fix regex if you get null IDs.

Telegram messages won’t send if bot API keys or chat IDs are wrong.
Double check Telegram bot setup and permissions.


Customization Ideas

  • Change the text message in the Telegram node to include more video information.
  • Add language filters in the YouTube Transcript node to pick transcript languages.
  • Swap the Telegram node with Slack node to send to Slack channels instead.
  • Add more AI nodes after the summary for keyword or sentiment analysis.

Deployment Guide

Turn on the workflow inside n8n by activating the Webhook node.
Run n8n on cloud or self hosting.
Here is a useful link for self-host n8n.

Use n8n’s execution logs to watch workflow runs for errors.
Test often to keep integration with YouTube and Telegram working well.


Summary

✓ Workflow makes video content understanding quicker.
✓ Saves many hours by automating transcript reading and summary writing.
✓ Sends key video info to team over Telegram instantly.
✓ Simple steps to configure and use in n8n.
✓ Works with standard YouTube URLs and OpenAI summarization.


Frequently Asked Questions

Send a POST request with a JSON body containing the key youtubeUrl and the YouTube video link to the webhook URL.
Check if the video has an autogenerated transcript on YouTube or use manual transcription services as fallback.
Verify Telegram Bot API token and chat/channel ID setup, and ensure the bot has permission to post messages.
No, the workflow handles one YouTube video URL at a time. To process playlists, add looping or batch processing logic.

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