Clean duplicate and dead YouTube playlist videos with Slack reports
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs on a schedule (every week at 06:00). Along the way it connects YouTube and Slack.
How it runs
Trigger: On a schedule (every week at 06:00).
- Set Playlist and Options (Edit Fields (Set)): sets 3 fields: playlistId, dryRun, slackChannelId
- List Playlist Items (YouTube): get many (playlist item)
- Check Video Status (YouTube): get (video)
- Mark Live Videos (Edit Fields (Set)): sets 6 fields: playlistItemId, videoId, title…
- Mark Dead Videos (Edit Fields (Set)): sets 6 fields: playlistItemId, videoId, title…
- Combine Checked Items (Merge): merges the data from its input branches
- Flag Duplicates and Dead (Code): runs custom JavaScript code
- Select Items to Delete (Filter): keeps only the items that match a condition
- Build Cleanup Summary (Code): runs custom JavaScript code
- Loop Items to Remove (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 2 more steps. See the full node list below.
Services it uses
Other YouTube + Slack templates (13)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - YouTube
n8n-nodes-base.youTube - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs weekly to scan a YouTube playlist, flagging deleted/unavailable/private videos and duplicate entries, optionally removing them from the playlist, and posting a cleanup report to a Slack channel. How it works 1. Runs every…