AutomationFlowsGeneral › Archive Spotify S Discover Weekly Playlist

Archive Spotify S Discover Weekly Playlist

Archive Spotify S Discover Weekly Playlist. Uses spotify, scheduleTrigger. Scheduled trigger; 7 nodes.

Cron / scheduled trigger★★☆☆☆ complexity7 nodesSpotify
General Trigger: Cron / scheduled Nodes: 7 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "00e66ecd-8b01-4b94-8479-789713f99adc",
      "name": "Get Playlists",
      "type": "n8n-nodes-base.spotify",
      "position": [
        -240,
        80
      ],
      "parameters": {
        "resource": "playlist",
        "operation": "getUserPlaylists",
        "returnAll": true
      },
      "credentials": {
        "spotifyOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "executeOnce": false,
      "typeVersion": 1
    },
    {
      "id": "5b5f648d-3af4-42b9-ba4d-36806c1f9ef3",
      "name": "Get Tracks",
      "type": "n8n-nodes-base.spotify",
      "position": [
        300,
        80
      ],
      "parameters": {
        "id": "={{$node[\"Find Weekly Playlist\"].json[\"uri\"]}}",
        "resource": "playlist",
        "operation": "getTracks",
        "returnAll": true
      },
      "credentials": {
        "spotifyOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "executeOnce": true,
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "88325eb3-01ae-4cea-b8d0-0e2cc8fc7aba",
      "name": "Save to Archive",
      "type": "n8n-nodes-base.spotify",
      "position": [
        440,
        80
      ],
      "parameters": {
        "id": "={{$item(0).$node[\"Find Archive Playlist\"].json[\"uri\"]}}",
        "trackID": "={{$json[\"track\"][\"uri\"]}}",
        "resource": "playlist",
        "additionalFields": {}
      },
      "credentials": {
        "spotifyOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "executeOnce": false,
      "typeVersion": 1
    },
    {
      "id": "02f221e5-47b9-4e9e-9c68-ca7ddf37564e",
      "name": "Find Archive Playlist",
      "type": "n8n-nodes-base.if",
      "position": [
        -40,
        0
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json[\"name\"]}}",
              "value2": "Discover Weekly Archive"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "603f7161-a141-48ce-97e2-4e5a43bfb4fe",
      "name": "Find Weekly Playlist",
      "type": "n8n-nodes-base.if",
      "position": [
        -40,
        140
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json[\"name\"]}}",
              "value2": "Discover Weekly"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "9d5ec356-4a8c-465b-9f0f-a993fd58ef4d",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        160,
        80
      ],
      "parameters": {
        "mode": "wait"
      },
      "typeVersion": 1
    },
    {
      "id": "3a8e7f8f-e332-4aef-b9f8-83755b356a02",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "8am Mondays",
      "position": [
        -400,
        80
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 0 8 * * 1"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.1
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Get Tracks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Tracks": {
      "main": [
        [
          {
            "node": "Save to Archive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Playlists": {
      "main": [
        [
          {
            "node": "Find Archive Playlist",
            "type": "main",
            "index": 0
          },
          {
            "node": "Find Weekly Playlist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Weekly Playlist": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Find Archive Playlist": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Archive Spotify S Discover Weekly Playlist. Uses spotify, scheduleTrigger. Scheduled trigger; 7 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →