{
  "openruna_format": "flow-graph-v1",
  "title": "0503_Splitout_Code_Create_Scheduled",
  "slug": "0503-splitout-code-create-scheduled",
  "source_filename": "0503_Splitout_Code_Create_Scheduled.json",
  "nodes": [
    {
      "id": "If no playlist",
      "name": "If no playlist",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Create Downloads Playlist",
      "name": "Create Downloads Playlist",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Get Liked Tracks",
      "name": "Get Liked Tracks",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Split Out",
      "name": "Split Out",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Add tracks to Downloads",
      "name": "Add tracks to Downloads",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Get Downloads Playlist",
      "name": "Get Downloads Playlist",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Filter out new tracks",
      "name": "Filter out new tracks",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Get tracks to remove",
      "name": "Get tracks to remove",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Remove oldest tracks from Downloads",
      "name": "Remove oldest tracks from Downloads",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Filter out Downloads Playlist",
      "name": "Filter out Downloads Playlist",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Get Updated Downloads Playlist",
      "name": "Get Updated Downloads Playlist",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Get all Playlists",
      "name": "Get all Playlists",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Schedule Trigger",
      "name": "Schedule Trigger",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "If no Downloads Playlist found",
      "name": "If no Downloads Playlist found",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Globals",
      "name": "Globals",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Globals",
      "to": "Get all Playlists"
    },
    {
      "from": "Aggregate",
      "to": "If no Downloads Playlist found"
    },
    {
      "from": "Split Out",
      "to": "Filter out Downloads Playlist"
    },
    {
      "from": "If no playlist",
      "to": "Create Downloads Playlist"
    },
    {
      "from": "If no playlist",
      "to": "Aggregate"
    },
    {
      "from": "Loop Over Items",
      "to": "Get Updated Downloads Playlist"
    },
    {
      "from": "Loop Over Items",
      "to": "Add tracks to Downloads"
    },
    {
      "from": "Get Liked Tracks",
      "to": "Filter out new tracks"
    },
    {
      "from": "Schedule Trigger",
      "to": "Globals"
    },
    {
      "from": "Get all Playlists",
      "to": "If no playlist"
    },
    {
      "from": "Get tracks to remove",
      "to": "Remove oldest tracks from Downloads"
    },
    {
      "from": "Filter out new tracks",
      "to": "Loop Over Items"
    },
    {
      "from": "Get Downloads Playlist",
      "to": "Get Liked Tracks"
    },
    {
      "from": "Add tracks to Downloads",
      "to": "Loop Over Items"
    },
    {
      "from": "Create Downloads Playlist",
      "to": "Get all Playlists"
    },
    {
      "from": "Filter out Downloads Playlist",
      "to": "Get Downloads Playlist"
    },
    {
      "from": "Get Updated Downloads Playlist",
      "to": "Get tracks to remove"
    },
    {
      "from": "If no Downloads Playlist found",
      "to": "Create Downloads Playlist"
    },
    {
      "from": "If no Downloads Playlist found",
      "to": "Split Out"
    }
  ]
}