Skip to main content

Add liked songs to a Spotify monthly playlist

Workflow preview

Workflow preview
100%
Add liked songs to a Spotify monthly playlist preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Add liked songs to a monthly playlist This Workflow is a port of Add saved songs to a monthly playlist from IFTTT. When you like a song, the workflow will save this...

Best for

  • Personal Productivity automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.spotify, n8n-nodes-base.nocodb, n8n-nodes-base.if, n8n-nodes-base.filter, n8n-nodes-base.merge, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Lucas.

Original n8n.io source

1.1 Workflow description

Title
Add liked songs to a Spotify monthly playlist
Workflow name
Add liked songs to a Spotify monthly playlist

๐ŸŽถ Add liked songs to a monthly playlist

> This Workflow is a port of Add saved songs to a monthly playlist from IFTTT.

When you like a song, the workflow will save this song in a monthly playlist.

E.g.: It's June 2024, I liked a song. The workflow will save this song in a playlist called June '24. If this playlist does not exist, the workflow will create it for me.

โš™ How it works

Each 5 minutes, the workflow will start automatically. He will do 3 things :

  1. Get the last 10 songs you saved in the "Liked song" playlist (by clicking on the heart in the app) and save them in a NocoDB table (of course, the workflow avoid to create duplicates).
  2. Check if the monthly playlist is already created. Otherwise, the playlist is created. The created playlist is also saved in NocoDB to avoid any problems.
  3. Check if the monthly playlist contains all the song liked this month by getting them from NocoDB. If they are not present, add them one by one in the playlist.

You may have a question regarding the need of NocoDB. Over the last few weeks/months, I've had duplication problems in my playlists and some playlists have been created twice because Spotify wasn't returning all the information but only partial information. Having the database means I don't have to rely on Spotify's data but on my own, which is accurate and represents reality.

๐Ÿ“ Prerequisites

You need to have :

๐Ÿ“š Instructions

  1. Follow the instructions below
  2. Create your Spotify API credential
  3. Create your NocoDB credential
  4. Populate all Spotify nodes with your credentials
  5. Populate all Spotify nodes with your credentials
  6. Enjoy !

If you need help, feel free to ping me on the N8N Discord server or send me a DM at "LucasAlt"

Show your support

  • Share your workflow on X and mention @LucasCtrlAlt
  • Consider buying me a coffee ๐Ÿ˜‰

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get current date

Type / Role
n8n-nodes-base.code - code
Config choices
Version 1

Block 2 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Get last 10 liked tracks

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 4 - Check if track is saved

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 5 - Is not saved

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 6 - Create song entry

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 7 - Get all user playlist

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 8 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Get monthly playlist

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 10 - Get playlist in DB

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 11 - Monthly playlist exist in Spotify ?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 12 - Playlist exist in DB ?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 13 - Create playlist in Spotify

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 14 - Create playlist in DB1

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 15 - Create playlist in DB

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 16 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 17 - Clean op

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 18 - Clean op2

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 19 - Get this month playlist in DB

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 20 - Get this month tracks in DB

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 21 - Add song to the playlist

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 22 - For each tracks in liked song

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 23 - For each monthly tracks in DB

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 24 - Get this month tracks in Spotify

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Add liked songs to a Spotify monthly playlist
Complexity advanced
Nodes 30
Categories Personal Productivity
Author Lucas
Published 07 May 2021

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/1074/1074.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Add liked songs to a Spotify monthly playlist do?

Add liked songs to a monthly playlist This Workflow is a port of Add saved songs to a monthly playlist from IFTTT. When you like a song, the workflow will save this...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.