Skip to content

This workflow automates summarizing YouTube videos by accepting a YouTube URL via a form, fetching the video transcript using Apify, and then generating a concise summary with OpenAI GPT.

License

Notifications You must be signed in to change notification settings

weblineindia/n8n-Summarize-YouTube-Videos-with-GPT-4o-mini-and-Apify-Transcripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

n8n-Summarize-YouTube-Videos-with-GPT-4o-mini-and-Apify-Transcripts

This n8n workflow summarizes YouTube videos by accepting a YouTube URL via a form, fetching the transcript using Apify, and generating a concise summary with OpenAI GPT.
⚠️ Note: This workflow contains community nodes and is only compatible with the self-hosted version of n8n.


✅ Prerequisites

  • Apify account with access to the YouTube Transcript actor.
  • OpenAI API key (for gpt-4o-mini model).
  • Self-hosted n8n instance with Apify + OpenAI credentials configured.

⚙️ Setup Instructions

🔹 Apify Setup

  • Configure Apify API credentials in the Apify node.
  • Verify YouTube Transcript actor ID:

OpenAI Setup:

  • Add your OpenAI API key in the OpenAI Chat Model node.
  • Confirm model selection is set to gpt-4o-mini.

Customization

  • Modify form field to accept additional inputs if needed.
  • Adjust Apify actor input JSON in the Payload node for extra metadata extraction.
  • Customize the summarization options to tweak summary length or style.
  • Change OpenAI prompt or model parameters in the OpenAI Chat Model node for different output quality or tone.

Steps

1. On Form Submission

  • Node: Form Trigger
  • Purpose: Collect the YouTube video URL from the user via a web form.

2. Prepare Payload

  • Node: Set
  • Purpose: Format the YouTube URL and options into the JSON payload for Apify input.

3. Fetch Transcript

  • Node: Apify
  • Purpose: Run the YouTube Transcript actor to retrieve video captions and metadata.

4. Extract Captions

  • Purpose: Isolate the captions field from the Apify response for processing.

5. Summarize Transcript

  • Purpose: Generate a concise summary of the video captions.

About

This workflow automates summarizing YouTube videos by accepting a YouTube URL via a form, fetching the video transcript using Apify, and then generating a concise summary with OpenAI GPT.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published