{
  "openruna_format": "flow-graph-v1",
  "title": "Youtube Searcher",
  "slug": "youtube-searcher",
  "source_filename": "1788_Postgres_Code_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "find_video_data1",
      "name": "find_video_data1",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "fetch_last_registered",
      "name": "fetch_last_registered",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "get_videos",
      "name": "get_videos",
      "integration": "youTube",
      "kind": "action"
    },
    {
      "id": "if_is_empty",
      "name": "if_is_empty",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Postgres",
      "name": "Postgres",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "insert_items",
      "name": "insert_items",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "create_table",
      "name": "create_table",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "remove_shorts",
      "name": "remove_shorts",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "create_query",
      "name": "create_query",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "structure_data",
      "name": "structure_data",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "if_empty",
      "name": "if_empty",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "already_populated",
      "name": "already_populated",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "map_data",
      "name": "map_data",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "sanitize_data",
      "name": "sanitize_data",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "see table",
      "name": "see table",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "drop table",
      "name": "drop table",
      "integration": "postgres",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Postgres",
      "to": "sanitize_data"
    },
    {
      "from": "if_empty",
      "to": "map_data"
    },
    {
      "from": "if_empty",
      "to": "Loop Over Items"
    },
    {
      "from": "map_data",
      "to": "structure_data"
    },
    {
      "from": "get_videos",
      "to": "if_is_empty"
    },
    {
      "from": "if_is_empty",
      "to": "find_video_data1"
    },
    {
      "from": "if_is_empty",
      "to": "already_populated"
    },
    {
      "from": "create_query",
      "to": "insert_items"
    },
    {
      "from": "insert_items",
      "to": "Loop Over Items"
    },
    {
      "from": "remove_shorts",
      "to": "if_empty"
    },
    {
      "from": "structure_data",
      "to": "create_query"
    },
    {
      "from": "Loop Over Items",
      "to": "fetch_last_registered"
    },
    {
      "from": "find_video_data1",
      "to": "remove_shorts"
    },
    {
      "from": "already_populated",
      "to": "Loop Over Items"
    },
    {
      "from": "fetch_last_registered",
      "to": "get_videos"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "Postgres"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Loop Over Items"
    }
  ]
}