Skip to content
FlowHubFluxonLab
Discord
Discordfree

Spotify to YouTube Playlist Synchronization

by Lugniccaadapted from n8n official workflow galleryUpdated Aug 2026
RequiresDiscordDiscordSpotifySpotifySupabaseSupabaseYouTubeYouTube
Share Post Share
Get playlist snapshotGet playlist sn…Get playlist snapshot1Get playlist sn…IfIf different snapshotIf different sn…Get all musicsUpdate to_delete to trueUpdate to_delet…Add musicCDCompare DatasetsSpotifyNONo Operation, do nothingNo Operation, d…Get all musics not in youtube playlistGet all musics …ScEvery day at noonEvery day at no…ScEvery day at noon + 1mnEvery day at no…ScEvery hourWaWait 1 hourSevariablesSearch videoGet video durationGet video durat…SILoop Over ItemsIfIf video duration ~= music durationIf video durati…Add music to playlistAdd music to pl…Add youtube id to rowAdd youtube id …DiscordDiscord1Set youtube id to NOTFOUND if no matchingSet youtube id …AgAggregateIfIf no resultSedataSevariables2Sevariables1SILoop Over Items1Sedata1Get playlist itemsGet playlist it…CDPlaylist items to be deletedPlaylist items …Get all musics that should be in playlistGet all musics …RDRemove DuplicatesRemove Duplicat…Remove video from playlistRemove video fr…CDCheck for deleted videosCheck for delet…Set youtube_video_id to nullSet youtube_vid…Get all musics to be deletedGet all musics …Delete musicScEvery day at midnightEvery day at mi…Sevariables3Reset NOTFOUND id to NULLReset NOTFOUND …Sevariables4ScEvery month123456789101112131415161718192021222324252627282930313233343536
1/5
FLOWS
STEPS · 36
Runs on a schedule

Spotify to YouTube Playlist Synchronization A workflow that maintains a YouTube playlist in sync with a Spotify playlist, featuring smart video matching and persistent synchronization. Key Features One-way Sync**: Spotify playlist → YouTube playlist (additions and deletions) Continuous Monitoring**: Automatic synchronization (every hour by default, but you can put any time you want) Smart Video Matching**: Considers video length and content relevance Auto-Recovery**: Automatically handles deleted YouTube videos Database Backup**: Persistent storage using Supabase Prerequisites Supabase project with the following table structure: CREATE TABLE IF NOT EXISTS musics ( id TEXT PRIMARY KEY, title TEXT NOT NULL, artist TEXT NOT NULL, duration INT8 NOT NULL, youtube_video_id TEXT, to_delete BOOLEAN DEFAULT FALSE ); Empty YouTube playlist (recommended as duplicates are not handled) Configured credentials for YouTube, Spotify, and Supabase APIs Properly set variables in all "variables" nodes (variables, variables1, variables2, variables3, variables4 (all the same)) Activate the workflow !

Tags

n8nreference-onlydiscordspotifysupabaseyou-tube
Connects
discordDiscordspotifySpotifysupabaseSupabaseyoutubeYouTube
CategoryDiscord
Triggermanual
Complexityadvanced
Nodes45
AddedFeb 5, 2025

Related workflows

See all Discord
Cdiscordgmailgoogledrive
free

Automated Workflow Backup System with Google Drive, Gmail and Discord Alerts'

How it works This workflow automates the backup of all your n8n workflows to a specified Google Drive folder. It operates in two main phases: Orchestration (Scheduled Task): The workflow is initiated by a Schedule Trigger (e.g., daily at 1:30 AM by default). It then uses an n8n API Node to fetch a list of all existing workflows in your n8n instance. A Loop Over Items node processes each fetched workflow individually. For every workflow in the list, an Execute Workflow node calls the "worker" part of this same workflow, passing the individual workflow's data. Individual Workflow Backup (Worker Task): This part is triggered by the When Executed by Another Workflow node (called by the orchestrator part). It first retrieves the passed workflow data. A Parameters node defines the target Google Drive directory. The Get Google Drive File Data node searches the specified Google Drive folder to see if a backup file for the current workflow (named as WorkflowName_WorkflowID.json) already exists. An IF Node (ifDriveEmpty) checks the result: If a backup file exists, the workflow data is converted to a binary JSON file using a Code Node, and then the existing file on Google Drive is updated (Ba

by HoChien Chang
discord
free

Send a message with a Discord Bot

Explore this workflow on its official n8n template page.

by eem2188
discordW
free

Set alert on the website changes

I used this to check for a page that had Out Of Stock not found when an item came back in stock. Set the URL for the HTTP Request node and your Webhook URL and Messages for the discord nodes.

by darkesthour111