Back to Templates

Summarize and translate YouTube videos with SupaData and OpenAI

Created by

Created by: Václav Čikl || venca
Václav Čikl

Last update

Last update 2 days ago

Categories

Share


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

  1. Receives a YouTube URL plus language and translation preferences through an n8n form.
  2. Uses Supadata to fetch the video transcript and the video details in parallel.
  3. Combines transcript and video metadata, detects the transcript language, and builds an OpenAI prompt based on the selected translation scope.
  4. Sends the transcript to OpenAI to produce a summary, key points, and optionally a full translated transcript.
  5. Formats the AI output together with the video info and original transcript into a single text document.
  6. Converts the formatted text into a downloadable file and returns it as the form response.

Setup

  1. Create and add Supadata API credentials, and ensure the Supadata account can access YouTube transcript and video info for your target videos.
  2. Create and add OpenAI API credentials for the chat completion used to summarize and translate.
  3. Share the generated n8n form URL with users (or embed it) so they can submit YouTube links and receive the output file.