YouTube
The YouTube integration allows you to automatically match uploaded conference recordings to talks, update video metadata (titles and descriptions) from conference data, and organize videos into playlists.
Overview
The typical workflow is:
- Record talks at the conference (optionally using the OBS integration)
- Upload recordings to a YouTube channel
- Connect the YouTube channel to your event in Confo
- Confo matches videos to talks using pretalx codes
- Sync video titles, descriptions, and playlist membership
Google Cloud Setup
Before using the YouTube integration, you need to create OAuth 2.0 credentials in the Google Cloud Console.
1. Create a Google Cloud Project
- Go to the Google Cloud Console
- Create a new project (or use an existing one)
- Enable the YouTube Data API v3 under APIs & Services > Library
2. Configure the OAuth Consent Screen
- Go to APIs & Services > OAuth consent screen
- Choose External user type
- Fill in the required fields (app name, support email)
- Add the scope:
https://www.googleapis.com/auth/youtube.force-ssl - Add your Google account as a test user (required while the app is in testing mode)
3. Create OAuth Credentials
- Go to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Choose Web application
- Add your Confo instance URL to Authorized redirect URIs:
https://your-confo-domain.com/api/admin/youtube/callback
- Note the Client ID and Client Secret
4. Configure Environment Variables
Set these on the Confo backend container:
YOUTUBE_CLIENT_ID=your-client-id.apps.googleusercontent.com
YOUTUBE_CLIENT_SECRET=your-client-secret
Connecting a YouTube Channel
- Log in to Confo as a superadmin or event admin
- Navigate to Admin > Events > select your event
- In the YouTube section, click Connect YouTube
- You will be redirected to Google to authorize access
- After authorizing, you are redirected back to Confo with the channel connected
Confo stores a refresh token so the connection persists across sessions.
Video-to-Talk Matching
Confo matches YouTube videos to talks using pretalx codes. The matching logic extracts the first token (word before any space) from each video title and compares it (case-insensitive) against the pretalx codes of talks in the event.
For example, if a video is titled:
ABC123 - My Talk Title
Confo extracts ABC123 and matches it to the talk with pretalx code ABC123.
Running the Match
- In the YouTube section of your event, click Match Videos
- Confo fetches all videos from the connected channel and attempts to match them to talks
- Review the match results before proceeding to sync
Make sure your video titles start with the pretalx code for automatic matching to work. For example, when uploading recordings, name them like TALKCODE - Speaker Name - Talk Title.
Manual Matching
Videos that can't be auto-matched (for example, recordings whose titles don't start with a pretalx code) can be linked by hand.
- Open the event, pick the room, and click the talk's name in the talks table
- In the YouTube card, paste the video ID (the part after
?v=oryoutu.be/) and click Match - Confo fetches the video's current title and description from YouTube and stores them as the last-synced values, so the next sync won't overwrite them unnecessarily
Use Unmatch to remove an incorrect link.
Metadata Sync
After matching videos to talks, you can sync video metadata using customizable templates.
Template Variables
The following variables are available in title and description templates:
| Variable | Description | Example |
|---|---|---|
{{name}} | Talk title | Building Scalable Systems |
{{speakers}} | Speaker name(s) | Jane Doe |
{{abstract}} | Talk abstract/description | In this talk we explore... |
{{pretalx_id}} | Pretalx code | ABC123 |
Example Templates
Title template:
{{name}} - {{speakers}}
Description template:
{{name}}
Speaker: {{speakers}}
{{abstract}}
Running the Sync
- Configure your title and description templates in the YouTube section
- Optionally set a playlist ID to add matched videos to a playlist
- Click Sync to update video metadata and add videos to the playlist
Confo will:
- Update each matched video's title and description using the templates
- Add each matched video to the configured playlist (if set)
- Track which videos have been synced to avoid duplicate updates
Playlist Management
You can configure a YouTube playlist ID in the event's YouTube settings. When syncing, Confo automatically adds all matched videos to this playlist. Videos that are already in the playlist are skipped.
Live Chat in the Room Manager
Confo can show the live chat of a room's YouTube broadcast inside the room manager page, so the room manager can read audience questions and relay them to the speaker. The chat is read-only — nothing is posted to YouTube.
Setup
- Connect the event's YouTube channel (see Connecting a YouTube Channel). The live chat uses the same connection — no extra credentials are needed.
- Open Admin → Events → event → room and paste the broadcast's URL
(or bare video ID) into YouTube live video, then Save. Accepted
forms include
youtube.com/watch?v=…,youtube.com/live/…,youtu.be/…and YouTube Studio links. - Open the room manager page. The Chat panel shows the connection state and incoming messages.
Chat status
| Status | Meaning |
|---|---|
| live | Connected; messages appear within a few seconds. |
| waiting for broadcast | The video exists but is not live yet; Confo re-checks every minute. |
| connecting… | (Re)connecting after a network hiccup. |
| ended | The broadcast has ended. Messages still posted to its chat keep appearing. |
| error: YouTube is not connected for this event | Connect the channel in the event settings. |
| error: YouTube video not found or not accessible | Check the video ID and that the connected channel can see it. |
| error: YouTube authorization failed | The YouTube connection was revoked or expired. Reconnect the channel in the event settings. |
| error: YouTube quota exhausted | The Google Cloud project hit its daily API quota; Confo retries every 10 minutes. |
If no live video is set for the room, the panel shows "No chat sources configured for this room".
Connecting or disconnecting the event's YouTube channel restarts the chat of every open room manager page of that event, so after fixing a "not connected" or "authorization failed" error the chat recovers on its own. For the other errors (except quota, which retries by itself), reload the room manager page to try again.
Notes
- Chat is only fetched while at least one room manager has the page open, which keeps YouTube API quota usage low. After the last manager closes or leaves the page (or logs out), Confo keeps the chat running for about 30 seconds, so a page reload does not lose anything.
- Every chat message is stored in the database with the room, so reloading the page or restarting the server keeps the chat. The panel shows the latest 200 messages.
- Changing the live video in the admin reconnects the chat to the new video and keeps the messages already shown.
- Click ✓ on a message once you have relayed it. After you confirm, it is marked answered for every room manager of the room. The Unanswered | All switch next to the "Chat" heading hides answered messages (the default) or shows them dimmed; click their ✓ again to mark them unanswered.