Quick Overview
This workflow collects a YouTube URL via an n8n form, retrieves the video transcript and metadata using Supadata, then uses OpenAI to generate a summary, key points, and optional translation, and returns a downloadable text file.
How it works
- Receives a YouTube URL plus language and translation preferences through an n8n form.
- Uses Supadata to fetch the video transcript and the video details in parallel.
- Combines transcript and video metadata, detects the transcript language, and builds an OpenAI prompt based on the selected translation scope.
- Sends the transcript to OpenAI to produce a summary, key points, and optionally a full translated transcript.
- Formats the AI output together with the video info and original transcript into a single text document.
- Converts the formatted text into a downloadable file and returns it as the form response.
Setup
- Create and add Supadata API credentials, and ensure the Supadata account can access YouTube transcript and video info for your target videos.
- Create and add OpenAI API credentials for the chat completion used to summarize and translate.
- Share the generated n8n form URL with users (or embed it) so they can submit YouTube links and receive the output file.