Skip to content

YouTube Transcripts

YouTube Transcripts gets the transcript of a YouTube video from its link: the text of what is said in the video, taken from its subtitles. You can get it as a single text or split into time segments, each with a link that opens the video at that moment. No credential is needed.

You can use it as a step in a flow, with the link in Video URL, or as a tool for an agent: connect its Tool output to the agent’s Tools input and the agent uses it when it is given a YouTube link.

When to use it

  • You want to summarise training videos, talks or webinars without watching them in full.
  • You need to pull out the main ideas from competitors’ videos.
  • An agent has to answer questions about a video’s content.
  • You want to turn a video into an article or a social media post.

Configuration

FieldWhat it does
Video URLThe YouTube video link, for example https://www.youtube.com/watch?v=... or https://youtu.be/....
Transcript FormatHow the transcript is delivered: text (a single text) or chunks (time segments). Default: text.
LanguageThe subtitle languages you want, in order of preference and separated by commas, for example en,es. When empty, English subtitles are used.

Processing a list

FieldWhat it does
Batch InputA list of items, for example video links. One transcript is fetched for each.
Batch ModeWhen on and there is a list in Batch Input, each item is processed and all results come out together in one list. On by default.
Parallel ExecutionsHow many items from the list are processed at the same time, from 1 to 5. Default: 3.
Skip if Empty Batch InputWhen on and the list arrives empty, the component doesn’t run and neither do the following steps. On by default.
Skip Branch if Empty OutputWhen on and nothing is returned, the following steps don’t run. On by default.

Advanced options

FieldWhat it does
Chunk Size (seconds)Only with chunks. The length of each segment in seconds. Default: 60.
Tool NameThe name the agent sees for the tool.
Tool DescriptionWhat the agent reads to know when to use it.
Tool response modeHow the result is handed to the agent. Leave Standard.

Output

  • Data: with text, one item with the whole transcript. With chunks, one item per segment, with its text, the second it starts and ends, and a link to the video at that moment. If the link isn’t valid or the video has no subtitles in the requested languages, the result says so.
  • Tool: the transcript ready for an agent. Connect it to the agent’s Tools input.

Example

A marketing team wants a summary of every webinar it publishes on YouTube.

  1. Add YouTube Transcripts and paste the webinar link in Video URL.
  2. Type en in Language and leave Transcript Format at text.
  3. Connect the Data output to an agent instructed to summarise the transcript in five key points.
  4. If you want to quote specific moments, switch to chunks: each idea in the summary can link to the exact minute of the video.

Good practices

  • Always set the video’s language in Language: if you leave it empty and the video has no English subtitles, no transcript is returned.
  • It only works with videos that have subtitles, whether added by the owner or generated automatically by YouTube.
  • Video: details of a YouTube video.