Prerequisites
- A Google Cloud project with the YouTube Data API v3 enabled
- An API key for your Google Cloud project
- The playlist ID you want to import
Getting Your Google API Key
- Go to the Google Cloud Console
- Create or select a project
- Navigate to APIs & Services > Library
- Search for YouTube Data API v3 and enable it
- Go to APIs & Services > Credentials
- Click Create Credentials > API key
- Copy the generated key
Finding Your Playlist ID
The playlist ID is the value oflist in a YouTube playlist URL:
PL is your playlist ID.
Setup Steps
- Go to Knowledge > Sources and click Create New Source
- Enter a name and select
youtube_playlistas the Source Type - Paste your Google API key under Authentication
- Enter the Playlist ID
- 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
Troubleshooting
No videos imported
No videos imported
- 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
API key error
API key error
- 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
Related
- Knowledge Connectors: all connectors
- Knowledge Source Management: managing sources
