Skip to main content
Import content from YouTube playlists as knowledge documents. Each video in the playlist becomes a document with its title, description, and a link to the video.

Prerequisites

  1. A Google Cloud project with the YouTube Data API v3 enabled
  2. An API key for your Google Cloud project
  3. The playlist ID you want to import

Getting Your Google API Key

  1. Go to the Google Cloud Console
  2. Create or select a project
  3. Navigate to APIs & Services > Library
  4. Search for YouTube Data API v3 and enable it
  5. Go to APIs & Services > Credentials
  6. Click Create Credentials > API key
  7. Copy the generated key

Finding Your Playlist ID

The playlist ID is the value of list in a YouTube playlist URL:
The string starting with PL is your playlist ID.

Setup Steps

  1. Go to Knowledge > Sources and click Create New Source
  2. Enter a name and select youtube_playlist as the Source Type
  3. Paste your Google API key under Authentication
  4. Enter the Playlist ID
  5. Click Save, then open the source and click Sync Source

Configuration

What Gets Imported

Each video in the playlist creates one knowledge document containing:
  • Title: The video title
  • Content: The video description with a link to the video
  • External link: Direct YouTube watch URL
All videos in the playlist are imported. Private videos are skipped unless you turn on Include private videos.

Troubleshooting

  • Check the playlist ID and that the playlist is not empty
  • Check that YouTube Data API v3 is enabled for the key’s project
  • Check the playlist is public or unlisted. An API key can’t read private playlists
  • Check the key in the Google Cloud Console
  • Check that YouTube Data API v3 is enabled for your project
  • Remove IP address or website restrictions on the key: AGO calls the API from its own servers