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.
- Apify account with access to the YouTube Transcript actor.
- OpenAI API key (for
gpt-4o-minimodel). - Self-hosted n8n instance with Apify + OpenAI credentials configured.
- Configure Apify API credentials in the Apify node.
- Verify YouTube Transcript actor ID:
- Add your OpenAI API key in the OpenAI Chat Model node.
- Confirm model selection is set to gpt-4o-mini.
- 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.
- Node: Form Trigger
- Purpose: Collect the YouTube video URL from the user via a web form.
- Node: Set
- Purpose: Format the YouTube URL and options into the JSON payload for Apify input.
- Node: Apify
- Purpose: Run the YouTube Transcript actor to retrieve video captions and metadata.
- Purpose: Isolate the captions field from the Apify response for processing.
- Purpose: Generate a concise summary of the video captions.