{
  "openruna_format": "flow-graph-v1",
  "title": "Line Save File to Google Drive and Log File's URL",
  "slug": "line-save-file-to-google-drive-and-log-files-url",
  "source_filename": "1924_Code_Webhook_Export_Webhook.json",
  "nodes": [
    {
      "id": "Get Config",
      "name": "Get Config",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Create Date Folder",
      "name": "Create Date Folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Set Date Folder ID",
      "name": "Set Date Folder ID",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Create File Type Folder",
      "name": "Create File Type Folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Upload File to Google Drive",
      "name": "Upload File to Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Determine Folder Info",
      "name": "Determine Folder Info",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Search Date Folder",
      "name": "Search Date Folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Merge Event and Config Data",
      "name": "Merge Event and Config Data",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Check Existing Date Folder",
      "name": "Check Existing Date Folder",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Check Existing File Type Folder",
      "name": "Check Existing File Type Folder",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Merge Final Parent Folder Data",
      "name": "Merge Final Parent Folder Data",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Search File Type Folder",
      "name": "Search File Type Folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Set File Type Folder ID",
      "name": "Set File Type Folder ID",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Configure Final Parent Folder ID",
      "name": "Configure Final Parent Folder ID",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Process Event and Config Data",
      "name": "Process Event and Config Data",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Get File Binary Content",
      "name": "Get File Binary Content",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Log File Details to Google Sheet",
      "name": "Log File Details to Google Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Check Reply Enabled Flag",
      "name": "Check Reply Enabled Flag",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Check if Store by Date is Enabled",
      "name": "Check if Store by Date is Enabled",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Check if Store by File Type is Enabled",
      "name": "Check if Store by File Type is Enabled",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "LINE Webhook Listener",
      "name": "LINE Webhook Listener",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Send LINE Reply Message",
      "name": "Send LINE Reply Message",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Validate File Type",
      "name": "Validate File Type",
      "integration": "code",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Get Config",
      "to": "Merge Event and Config Data"
    },
    {
      "from": "Create Date Folder",
      "to": "Set Date Folder ID"
    },
    {
      "from": "Search Date Folder",
      "to": "Check Existing Date Folder"
    },
    {
      "from": "Set Date Folder ID",
      "to": "Search File Type Folder"
    },
    {
      "from": "Set Date Folder ID",
      "to": "Merge Final Parent Folder Data"
    },
    {
      "from": "Validate File Type",
      "to": "Upload File to Google Drive"
    },
    {
      "from": "Determine Folder Info",
      "to": "Search Date Folder"
    },
    {
      "from": "LINE Webhook Listener",
      "to": "Merge Event and Config Data"
    },
    {
      "from": "LINE Webhook Listener",
      "to": "Get Config"
    },
    {
      "from": "Create File Type Folder",
      "to": "Set File Type Folder ID"
    },
    {
      "from": "Get File Binary Content",
      "to": "Validate File Type"
    },
    {
      "from": "Search File Type Folder",
      "to": "Check Existing File Type Folder"
    },
    {
      "from": "Set File Type Folder ID",
      "to": "Merge Final Parent Folder Data"
    },
    {
      "from": "Check Reply Enabled Flag",
      "to": "Send LINE Reply Message"
    },
    {
      "from": "Check Existing Date Folder",
      "to": "Set Date Folder ID"
    },
    {
      "from": "Check Existing Date Folder",
      "to": "Check if Store by Date is Enabled"
    },
    {
      "from": "Merge Event and Config Data",
      "to": "Process Event and Config Data"
    },
    {
      "from": "Upload File to Google Drive",
      "to": "Log File Details to Google Sheet"
    },
    {
      "from": "Process Event and Config Data",
      "to": "Determine Folder Info"
    },
    {
      "from": "Merge Final Parent Folder Data",
      "to": "Configure Final Parent Folder ID"
    },
    {
      "from": "Check Existing File Type Folder",
      "to": "Set File Type Folder ID"
    },
    {
      "from": "Check Existing File Type Folder",
      "to": "Check if Store by File Type is Enabled"
    },
    {
      "from": "Configure Final Parent Folder ID",
      "to": "Get File Binary Content"
    },
    {
      "from": "Log File Details to Google Sheet",
      "to": "Check Reply Enabled Flag"
    },
    {
      "from": "Check if Store by Date is Enabled",
      "to": "Create Date Folder"
    },
    {
      "from": "Check if Store by Date is Enabled",
      "to": "Set Date Folder ID"
    },
    {
      "from": "Check if Store by File Type is Enabled",
      "to": "Create File Type Folder"
    },
    {
      "from": "Check if Store by File Type is Enabled",
      "to": "Set File Type Folder ID"
    }
  ]
}