{
  "openruna_format": "flow-graph-v1",
  "title": "0034_Code_Filter_Create_Scheduled",
  "slug": "0034-code-filter-create-scheduled",
  "source_filename": "0034_Code_Filter_Create_Scheduled.json",
  "nodes": [
    {
      "id": "Get current date",
      "name": "Get current date",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Get last 10 liked tracks",
      "name": "Get last 10 liked tracks",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Check if track is saved",
      "name": "Check if track is saved",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Is not saved",
      "name": "Is not saved",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Create song entry",
      "name": "Create song entry",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Get all user playlist",
      "name": "Get all user playlist",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Get monthly playlist",
      "name": "Get monthly playlist",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Get playlist in DB",
      "name": "Get playlist in DB",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Monthly playlist exist in Spotify ?",
      "name": "Monthly playlist exist in Spotify ?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Playlist exist  in DB ?",
      "name": "Playlist exist  in DB ?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Create playlist in Spotify",
      "name": "Create playlist in Spotify",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Create playlist in DB1",
      "name": "Create playlist in DB1",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Create playlist in DB",
      "name": "Create playlist in DB",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Clean op",
      "name": "Clean op",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Clean op2",
      "name": "Clean op2",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Get this month playlist in DB",
      "name": "Get this month playlist in DB",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Get this month tracks in DB",
      "name": "Get this month tracks in DB",
      "integration": "nocoDb",
      "kind": "action"
    },
    {
      "id": "Add song to the playlist",
      "name": "Add song to the playlist",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "For each tracks in liked song",
      "name": "For each tracks in liked song",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "For each monthly tracks in DB",
      "name": "For each monthly tracks in DB",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Get this month tracks in Spotify",
      "name": "Get this month tracks in Spotify",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Filter1",
      "name": "Filter1",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Song is not present in the playlist ?",
      "name": "Song is not present in the playlist ?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Clean op1",
      "name": "Clean op1",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Schedule Trigger",
      "name": "Schedule Trigger",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "End",
      "name": "End",
      "integration": "noOp",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Get this month playlist in DB"
    },
    {
      "from": "Filter1",
      "to": "Song is not present in the playlist ?"
    },
    {
      "from": "Clean op",
      "to": "Merge"
    },
    {
      "from": "Clean op1",
      "to": "For each monthly tracks in DB"
    },
    {
      "from": "Clean op2",
      "to": "For each tracks in liked song"
    },
    {
      "from": "Is not saved",
      "to": "Create song entry"
    },
    {
      "from": "Is not saved",
      "to": "Clean op2"
    },
    {
      "from": "Get current date",
      "to": "Get all user playlist"
    },
    {
      "from": "Get current date",
      "to": "Get last 10 liked tracks"
    },
    {
      "from": "Schedule Trigger",
      "to": "Get current date"
    },
    {
      "from": "Create song entry",
      "to": "Clean op2"
    },
    {
      "from": "Get playlist in DB",
      "to": "Playlist exist  in DB ?"
    },
    {
      "from": "Get monthly playlist",
      "to": "Monthly playlist exist in Spotify ?"
    },
    {
      "from": "Create playlist in DB",
      "to": "Clean op"
    },
    {
      "from": "Get all user playlist",
      "to": "Get monthly playlist"
    },
    {
      "from": "Create playlist in DB1",
      "to": "Clean op"
    },
    {
      "from": "Check if track is saved",
      "to": "Is not saved"
    },
    {
      "from": "Playlist exist  in DB ?",
      "to": "Clean op"
    },
    {
      "from": "Playlist exist  in DB ?",
      "to": "Create playlist in DB"
    },
    {
      "from": "Add song to the playlist",
      "to": "Clean op1"
    },
    {
      "from": "Get last 10 liked tracks",
      "to": "For each tracks in liked song"
    },
    {
      "from": "Create playlist in Spotify",
      "to": "Create playlist in DB1"
    },
    {
      "from": "Get this month tracks in DB",
      "to": "For each monthly tracks in DB"
    },
    {
      "from": "For each monthly tracks in DB",
      "to": "End"
    },
    {
      "from": "For each monthly tracks in DB",
      "to": "Get this month tracks in Spotify"
    },
    {
      "from": "For each tracks in liked song",
      "to": "Merge"
    },
    {
      "from": "For each tracks in liked song",
      "to": "Check if track is saved"
    },
    {
      "from": "Get this month playlist in DB",
      "to": "Get this month tracks in DB"
    },
    {
      "from": "Get this month tracks in Spotify",
      "to": "Filter1"
    },
    {
      "from": "Monthly playlist exist in Spotify ?",
      "to": "Get playlist in DB"
    },
    {
      "from": "Monthly playlist exist in Spotify ?",
      "to": "Create playlist in Spotify"
    },
    {
      "from": "Song is not present in the playlist ?",
      "to": "Add song to the playlist"
    },
    {
      "from": "Song is not present in the playlist ?",
      "to": "Clean op1"
    }
  ]
}