AI-Powered YouTube Transcript Summarization with n8n

This n8n workflow automates YouTube video transcript retrieval and detailed summarization using AI, solving time-consuming manual content analysis for creators and researchers. It leverages YouTube Data API, transcript fetching, and OpenAI GPT integration for precise, interactive video insights.
code
httpRequest
agent
+11
Workflow Identifier: 1265
NODES in Use: executeWorkflowTrigger, set, code, httpRequest, splitOut, summarize, merge, aggregate, chatTrigger, lmChatOpenAi, agent, memoryBufferWindow, toolWorkflow, stickyNote
Automate YouTube transcript summarization with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow gets information about a YouTube video using its video ID. Then it finds the video’s transcript and breaks it into smaller parts. It combines these parts and makes a short summary. It also puts the video information and summary together in one JSON. Finally, an AI chatbot can answer questions about the video using this combined data.

The main problem solved is saving time and effort by turning long videos into short summaries with key points. This helps people understand video content faster without watching the whole video or taking notes manually.


Who Should Use This Workflow

This workflow fits users who need to quickly extract main ideas from long YouTube videos. For example, content strategists, marketers, researchers, or anyone who reviews many videos often. It helps to avoid missing important detail and cuts down manual note-taking.


Tools and Services Used

  • YouTube Data API: To get video title, description, date, and stats.
  • youtube-transcript package: To extract full video transcripts inside code steps.
  • n8n Summarize node: To combine and shorten transcript text.
  • OpenAI GPT-4 (or equivalent model): For chatbot AI to answer questions and summarize.
  • LangChain integration: To connect chatbot with YouTube video processing.


Inputs, Processing Steps, and Outputs

Inputs

The workflow starts by receiving a YouTube video ID in JSON format through the When Executed by Another Workflow node.

Processing Steps

  • It sets variables for the video ID and the Google API Key.
  • It builds the YouTube API URL to get video details.
  • It calls the YouTube Data API to fetch video metadata such as title and views.
  • It fetches the video transcript using the youtube-transcript package within a code node.
  • It splits the transcript into smaller pieces for easier processing.
  • It uses the Summarize node to combine the transcript pieces into a short summary.
  • It merges the video details and the transcript summary into one JSON object.
  • It formats a final response JSON for use in AI chatbot or other tools.

Outputs

The workflow outputs a clean JSON object that includes video metadata and a summarized transcript. This enables chatbots powered by AI models to answer questions and provide insights from the video content quickly and clearly.


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

1. Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor.
  3. Use the “Import from File” option to upload the workflow.

2. Configure Credentials and Variables

  1. Fill in your Google API Key in the Workflow Variables node under GOOGLE_API_KEY.
  2. Provide the YouTube video IDs as inputs to the When Executed by Another Workflow node or update default values.
  3. If the workflow has OpenAI nodes, enter your OpenAI API key in the credential settings.

3. Test the Workflow

  1. Run the workflow manually to confirm it fetches video details and transcripts.
  2. Check that the summary outputs appear as expected in the final response node.

4. Activate for Production

  1. Toggle the workflow status to ON to enable live triggers.
  2. Monitor the workflow runs through the n8n dashboard.

For users hosting their own instance, see self-host n8n for setup options.


Common Edge Cases and Failures

  • Empty video ID input: The workflow stops and shows an error if the video ID is missing.
  • Google API call fails: Usually caused by a wrong or missing API key.
  • No transcript found: The video might lack captions or the youtube-transcript package might not be installed.
  • AI chatbot gives wrong answers: May need prompt adjustment or improved chat history in Window Buffer Memory.


Customization Ideas

  • Change how long or short the transcript summary is by adjusting the Summarize node settings.
  • Switch to another AI model in the OpenAI node for different accuracy or cost.
  • Add more YouTube API data parts, like comments or captions, by changing the API URL in the code node.
  • Add support for different languages in the transcript fetch code if video captions are multilingual.
  • Add extra AI steps for sentiment analysis or keyword extraction after the summary.


Summary of Results

✓ Saves many hours of watching and note-taking by making short summaries from long YouTube videos.

✓ Provides clear video metadata and summarized content in one structured JSON.

✓ Enables an AI-powered chatbot to talk about video contents with accurate answers.

→ Helps users understand video points faster and reduce errors from manual review.


Automate YouTube transcript summarization with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The youtube-transcript package returns an error or empty result. The workflow shows this error and does not produce a summary.
No. The Google API Key is required to call the YouTube Data API and fetch video details.
It splits the transcript into smaller segments and summarizes them before merging into a short summary.
Yes. Users can run this workflow on a self-hosted n8n instance. See the self-host n8n link for hosting options.

Promoted by BULDRR AI

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.