{
  "name": "🎵 Sync YouTube and Spotify music playlists",
  "nodes": [
    {
      "id": "ab8e653f-a60c-497c-b732-6dea355aa985",
      "name": "Compare the two Datasets",
      "type": "n8n-nodes-base.compareDatasets",
      "position": [
        900,
        160
      ]
    },
    {
      "id": "606aa397-efd6-4f6b-bfa6-946523ed80f2",
      "name": "Extract the spotify track ID",
      "type": "n8n-nodes-base.set",
      "position": [
        580,
        80
      ]
    },
    {
      "id": "75e48bf0-5003-4904-b8c7-0cca005bacd7",
      "name": "Extract the Spotify Track ID",
      "type": "n8n-nodes-base.set",
      "position": [
        580,
        260
      ]
    },
    {
      "id": "c536f1fb-cfbe-4a22-8f8f-37422629cc2b",
      "name": "Find the returned tracks on Spotify",
      "type": "n8n-nodes-base.spotify",
      "position": [
        580,
        440
      ]
    },
    {
      "id": "6be6eb69-0e90-46d8-9e74-92372c9ed5b8",
      "name": "Get my tracks inside my playlist",
      "type": "n8n-nodes-base.youTube",
      "position": [
        160,
        280
      ]
    },
    {
      "id": "8a2d297f-748c-4e59-a935-fecc944060aa",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        360,
        280
      ]
    },
    {
      "id": "677e635b-8ae6-48b4-8687-0615a044739c",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -80,
        180
      ]
    },
    {
      "id": "d7e52845-2279-40a5-82d3-5a923ead191c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -40
      ],
      "parameters": {
        "width": 517.7419354838706,
        "height": 654.6451612903234,
        "content": "## Workflow Overview\n\nThis workflow automates the process of updating a Spotify playlist with tracks from a YouTube playlist, ensuring no duplicates are added.\n\n## Key Components\n\n1. **Manual Trigger*"
      }
    },
    {
      "id": "cd92585a-6c56-4a35-8714-96d2c73444bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        60,
        0
      ],
      "parameters": {
        "width": 251.65748259981103,
        "height": 468.0906115664312,
        "content": "### Retrieve the playlists you want to synchronise "
      }
    },
    {
      "id": "a0ec1b4c-2422-4daa-92d6-4c84a1cecbf6",
      "name": "Get tracks inside the Spotify Playlist",
      "type": "n8n-nodes-base.spotify",
      "position": [
        160,
        80
      ]
    },
    {
      "id": "accba86b-6786-412e-8e87-17be458f6255",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        620
      ],
      "parameters": {
        "width": 414.86223899716344,
        "height": 80,
        "content": "### Search for the tracks on spotify one-by-one"
      }
    },
    {
      "id": "062e4341-bb5c-4302-85f6-dedb03481e64",
      "name": "Add tracks not already in playlist",
      "type": "n8n-nodes-base.spotify",
      "position": [
        1120,
        300
      ]
    }
  ],
  "connections": {
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Extract the Spotify Track ID",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Find the returned tracks on Spotify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare the two Datasets": {
      "main": [
        null,
        null,
        null,
        [
          {
            "node": "Add tracks not already in playlist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract the Spotify Track ID": {
      "main": [
        [
          {
            "node": "Compare the two Datasets",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Extract the spotify track ID": {
      "main": [
        [
          {
            "node": "Compare the two Datasets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get my tracks inside my playlist": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get my tracks inside my playlist",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get tracks inside the Spotify Playlist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find the returned tracks on Spotify": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get tracks inside the Spotify Playlist": {
      "main": [
        [
          {
            "node": "Extract the spotify track ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}