What This Workflow Does
This workflow copies all Spotify Liked Songs to a chosen playlist.
It finds songs you like but are missing in your playlist and adds them.
Also, it removes songs from the playlist if you no longer like them.
The workflow keeps songs sorted by when you first liked them.
After running, it sends a notification about how many songs were added or removed and how long it took.
Who Should Use This Workflow
This workflow helps anyone who listens to Spotify and wants a playlist always matching their Liked Songs.
It is best for people who find manual playlist syncing slow or error-prone.
The workflow saves time especially when having hundreds of liked tracks.
Tools and Services Used
- n8n automation platform: Runs and links all steps.
- Spotify API with OAuth credentials: To read and write playlist and liked songs data.
- Gotify: Sends push notifications with sync results (optional).
Beginner Step-by-Step: How to Use This Workflow in n8n
Step 1: Import the Workflow
- Download the workflow JSON using the Download button on this page.
- Open the n8n editor where you want to run the workflow.
- Click Workflows > Import from file and select the downloaded JSON file.
Step 2: Configure Playlist Variable
- Find the Edit set Vars node.
- Change
varplaylisttovalue to the exact name of your target Spotify playlist.
Step 3: Add Spotify Credentials
- Click each Spotify node, such as Spotify get Liked Songs or Spotify add Missing to x.
- Go to the Credentials tab.
- Select or add your Spotify OAuth credentials with correct scopes.
Step 4: Configure Gotify Credentials (Optional)
- If using notifications, find Gotify nodes.
- Enter your Gotify URL and token under credentials.
Step 5: Test the Workflow
- Run the workflow manually using the Start manualTrigger node.
- Check that songs to add and delete appear in the output.
- Verify your target playlist updates accordingly in Spotify.
Step 6: Activate Auto Schedule
- Enable the Schedule Trigger node.
- Turn the workflow status to active.
- Ensure n8n keeps running daily to sync automatically.
This quick process sets the workflow running in production with your Spotify account synced.
Visit self-host n8n if hosting on a private server is preferred.
Inputs, Process, and Outputs
Input Data
- Spotify Liked Songs list
- All user playlists
- Target playlist name
Processing
- Filter Spotify playlists to find the exact target playlist
- Retrieve songs inside the target playlist
- Sort liked songs and playlist songs by date added
- Compare liked songs and playlist songs to find missing or extra tracks
- Add missing liked songs to the playlist
- Remove songs no longer liked from the playlist
- Count how many songs added or removed
Output
- An updated Spotify playlist that exactly matches the Liked Songs.
- A Gotify notification with summary details of the sync.
Edge Cases and Troubleshooting
If the playlist name in the Edit set Vars node is wrong, the workflow won’t find the playlist.
If Spotify credentials lack permissions or have expired, API calls will fail with 401 errors.
If no new songs are added or deleted, the playlist and liked songs might already be synced or no changes detected.
Check Gotify setup if notifications do not send.
Customization Ideas
- Change the target playlist by updating the playlist name in Edit set Vars.
- Adjust the sync schedule in Schedule Trigger to run at different times.
- Add Slack or email notification nodes after Gotify for extra alerts.
- Sort songs by artist or album by changing sorter nodes.
- Log sync history to Google Sheets or a database for tracking.
Summary and Benefits
✓ Saves time compared to manual playlist syncing.
✓ Prevents missing liked songs or leftover unwanted tracks.
✓ Keeps playlist matched and sorted by date liked.
✓ Sends clear status notifications via Gotify.
→ You get an automatically updated Spotify playlist that reflects your current liked music taste.

