Quick Overview
This workflow loads a tag vocabulary from Google Sheets, scans your YouTube channel’s recent videos, normalizes each video’s tags to match alias/banned/required rules, and updates only the videos whose tag set changes.
How it works
- Runs manually to start the tag normalization process.
- Reads controlled-vocabulary rules from Google Sheets, including alias mappings, banned tags, and required baseline tags.
- Lists up to 50 videos from the specified YouTube channel and fetches each video’s snippet details, including tags, title, and category.
- Normalizes tags by lowercasing and cleaning them, converting aliases to canonical tags, removing banned tags, deduplicating, adding required tags, and truncating to YouTube’s tag character limit.
- Compares the normalized tag set to the current tags and keeps only videos where the tags changed.
- Updates the tags on the changed videos in YouTube while preserving the existing title and category.
Setup
- Add a YouTube (Google) OAuth2 credential for the YouTube nodes and ensure it has permission to update videos on your channel.
- Add a Google Sheets credential, set the spreadsheet ID and sheet/tab to the vocabulary document, and ensure it is accessible to that account.
- Replace YOUR_CHANNEL_ID in the YouTube channel filter and adjust the video limit or ordering if needed.
- Create a vocabulary sheet with columns such as rule_type, tag, and canonical, using rule_type values alias, banned, and required.