{
  "nodes": [
    {
      "id": "05bd643c-6dd0-4f36-a586-3a06cc26893c",
      "name": "Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        780
      ],
      "parameters": {
        "width": 476.4578377639565,
        "height": 299.6468819708682,
        "content": "## Excel \ud30c\uc77c \uc791\uc5c5  \n1. \uc2a4\ud504\ub808\ub4dc\uc2dc\ud2b8 \ud30c\uc77c\uc744 \uc6cc\ud06c\ud50c\ub85c\uc5d0 \ub85c\ub4dc\ud569\ub2c8\ub2e4 (.xls, .xlsx, .csv).  \n2. **Spreadsheet File** \ub178\ub4dc\ub85c \ud30c\uc77c\uc744 \ubcc0\ud658\ud569\ub2c8\ub2e4. \uc774\ub294 \ub2e4\ub978 \ub178\ub4dc\ub4e4\uc774 \ub370\uc774\ud130\ub97c \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4.  \n3. \ud544\uc694\uc5d0 \ub530\ub77c \uc2a4\ud504\ub808\ub4dc\uc2dc\ud2b8 \ub370\uc774\ud130\ub97c \ubcc0\ud658\ud558\uace0 \uc870\uc791\ud569\ub2c8\ub2e4.  \n4. [\uc120\ud0dd\uc0ac\ud56d] \uc2a4\ud504\ub808\ub4dc\uc2dc\ud2b8 \ud30c\uc77c\ub85c \ub2e4\uc2dc \ubcc0\ud658\ud569\ub2c8\ub2e4.  \n5. [\uc120\ud0dd\uc0ac\ud56d] \ud30c\uc77c\uc744 \ub85c\uceec\uc5d0 \uc800\uc7a5\ud558\uac70\ub098 \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud569\ub2c8\ub2e4.  \n\n\u2139\ufe0f \uc774 \ud15c\ud50c\ub9bf\uc740 \uc2a4\ud504\ub808\ub4dc\uc2dc\ud2b8 \ud30c\uc77c \uc790\uccb4\ub97c \uc791\uc5c5\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. Microsoft Office 365 \ud074\ub77c\uc6b0\ub4dc \ud50c\ub7ab\ud3fc\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uae30 \uc704\ud574 **Microsoft Excel 365** \ub178\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc138\uc694."
      },
      "typeVersion": 1
    },
    {
      "id": "84db705b-b45f-447f-b3e6-ac9650816e3b",
      "name": "Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        800
      ],
      "parameters": {
        "width": 261.5285597588645,
        "height": 244.71805702217537,
        "content": "### 1A. \uacf5\uac1c URL\uc5d0\uc11c"
      },
      "typeVersion": 1
    },
    {
      "id": "92b8375b-92a3-41ca-874e-d9c4567e21d4",
      "name": "Read Binary File",
      "type": "n8n-nodes-base.readBinaryFile",
      "notes": "Fetches a local file",
      "disabled": true,
      "position": [
        920,
        1140
      ],
      "parameters": {
        "filePath": "/files/customer-datastore.xlsx"
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "e595db63-8556-4e5e-89df-9895691ed4bb",
      "name": "Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        680
      ],
      "parameters": {
        "width": 332.13093980992585,
        "height": 80,
        "content": "## 1. \ud30c\uc77c\uc744 \uc6cc\ud06c\ud50c\ub85c\uc5d0 \ub85c\ub4dc"
      },
      "typeVersion": 1
    },
    {
      "id": "66ae38b6-01e6-486b-aae1-d696d22fb2cf",
      "name": "Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        1380
      ],
      "parameters": {
        "width": 263.20908130939836,
        "height": 475.9602777402797,
        "content": "1C. \ud074\ub77c\uc6b0\ub4dc \ud50c\ub7ab\ud3fc\uc73c\ub85c\ubd80\ud130"
      },
      "typeVersion": 1
    },
    {
      "id": "c2e2cc7e-01a2-4138-ba6f-344be3dd91f3",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        500,
        1140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "050bdd2e-6fe5-4145-8a0b-c1b4b8870c53",
      "name": "Note2",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        2060,
        680
      ],
      "parameters": {
        "width": 326.8935002375224,
        "height": 302.0190073917633,
        "content": "4. [\uc120\ud0dd] \ub178\ub4dc \ub370\uc774\ud130\ub97c .xls \ud30c\uc77c\ub85c \ubcc0\ud658\ud558\uae30"
      },
      "typeVersion": 1
    },
    {
      "id": "3822a521-c1f4-40a9-bbb6-540a2bb4651b",
      "name": "Note4",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        1640,
        680
      ],
      "parameters": {
        "width": 359.63512407276517,
        "height": 304.93769799366413,
        "content": "3. \uc2a4\ud504\ub808\ub4dc\uc2dc\ud2b8 \ub370\uc774\ud130\ub97c \uc870\uc791\ud558\uac70\ub098 \ubcc0\ud658\ud558\uc138\uc694"
      },
      "typeVersion": 1
    },
    {
      "id": "a90ef806-62a7-492d-b493-337d796c677a",
      "name": "Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2460,
        1080
      ],
      "parameters": {
        "width": 253.5004831258875,
        "height": 243.48423158332457,
        "content": "4B. \uc6f9 \uc11c\ubc84\ub85c (S)FTP\ub97c \ud1b5\ud574"
      },
      "typeVersion": 1
    },
    {
      "id": "a5419c12-4be4-4fdf-8b9f-f6c73104477a",
      "name": "Write Binary File",
      "type": "n8n-nodes-base.writeBinaryFile",
      "position": [
        2520,
        860
      ],
      "parameters": {
        "options": {},
        "fileName": "=/tmp/{{$binary.data.fileName}}"
      },
      "typeVersion": 1
    },
    {
      "id": "3d3474ee-298f-48ee-b7b4-2dd64729c747",
      "name": "Note6",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        1280,
        680
      ],
      "parameters": {
        "width": 279.5841955487948,
        "height": 309.4318901795142,
        "content": "## 2. \ud30c\uc77c\uc744 JSON \ud615\uc2dd\uc73c\ub85c \ubcc0\ud658  \nJSON \ub370\uc774\ud130\ub294 \ub178\ub4dc\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4"
      },
      "typeVersion": 1
    },
    {
      "id": "93cd3132-460b-4a67-b627-b417bbd74012",
      "name": "Note9",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        2460,
        680
      ],
      "parameters": {
        "width": 332.13093980992585,
        "height": 86.72208620213638,
        "content": "## 5. \uc0c8 \ud30c\uc77c \uc800\uc7a5 \ub610\ub294 \uc5c5\ub85c\ub4dc  \n### [\uc120\ud0dd\uc0ac\ud56d]"
      },
      "typeVersion": 1
    },
    {
      "id": "4ca7e58c-2d8f-463f-86f9-f87f47a7364b",
      "name": "Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2460,
        800
      ],
      "parameters": {
        "width": 253.5004831258875,
        "height": 245.22344655940856,
        "content": "4A. \ub85c\uceec \ud30c\uc77c \uc2dc\uc2a4\ud15c\uc73c\ub85c"
      },
      "typeVersion": 1
    },
    {
      "id": "db8f95b3-db71-4111-b5a4-a53cdfeea896",
      "name": "Note11",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        2460,
        1380
      ],
      "parameters": {
        "width": 253.5004831258875,
        "height": 480.2511652360096,
        "content": "4C. \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\ub85c"
      },
      "typeVersion": 1
    },
    {
      "id": "ae1a1cdf-4670-41da-8bc5-aa6817ce08bc",
      "name": "Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        1080
      ],
      "parameters": {
        "width": 263.20908130939836,
        "height": 244.71805702217537,
        "content": "1B. \ub85c\uceec \ud30c\uc77c \uc2dc\uc2a4\ud15c\uc5d0\uc11c"
      },
      "typeVersion": 1
    },
    {
      "id": "529b03fb-b81d-40f3-bade-684cc9776cba",
      "name": "Download from Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "disabled": true,
      "position": [
        920,
        1440
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": "1ffuj8v-s0h8LeEmrA2hBk-b7qKF_c9uT",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1ffuj8v-s0h8LeEmrA2hBk-b7qKF_c9uT/edit?usp=drivesdk&ouid=112909978107527312058&rtpof=true&sd=true",
          "cachedResultName": "customer-datastore.xlsx"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "b63c9748-0c7d-4d2a-aa5b-db76d31af957",
      "name": "Download from Microsoft OneDrive",
      "type": "n8n-nodes-base.microsoftOneDrive",
      "disabled": true,
      "position": [
        920,
        1640
      ],
      "parameters": {
        "fileId": "549D14658E697C62!2087",
        "operation": "download"
      },
      "credentials": {
        "microsoftOneDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6333d0b5-d58b-4a19-af9a-0e5ea4fa15e8",
      "name": "Download Excel File",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "Fetches file from server",
      "position": [
        920,
        860
      ],
      "parameters": {
        "url": "https://internal.users.n8n.cloud/webhook/709a234d-add7-41d2-9326-8d981f58120b",
        "options": {}
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "88b24dbb-dc9f-4f03-a5b3-71ba89295346",
      "name": "Work out Age",
      "type": "n8n-nodes-base.set",
      "position": [
        1760,
        820
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "age",
              "value": "={{ Math.trunc($today.diff(DateTime.fromFormat($json[\"created\"], 'yyyy-MM-dd'), 'years').toObject().years) }}"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "2f1f2fa9-4995-46c9-a415-3768a0895e88",
      "name": "Upload to SFTP",
      "type": "n8n-nodes-base.ftp",
      "disabled": true,
      "position": [
        2520,
        1140
      ],
      "parameters": {
        "path": "=/home/n8n/{{$binary.data.fileName}}",
        "protocol": "sftp",
        "operation": "upload"
      },
      "credentials": {
        "sftp": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "81c06f12-83f1-4973-a1ec-6d58e26eb8c9",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "disabled": true,
      "position": [
        2520,
        1440
      ],
      "parameters": {
        "name": "={{$binary.data.fileName}}",
        "options": {},
        "binaryData": true
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a0ef4740-8716-4fab-8498-c13ee32842cb",
      "name": "Upload to Microsoft OneDrive",
      "type": "n8n-nodes-base.microsoftOneDrive",
      "disabled": true,
      "position": [
        2520,
        1640
      ],
      "parameters": {
        "fileName": "={{$binary.data.fileName}}",
        "parentId": "root",
        "binaryData": true
      },
      "credentials": {
        "microsoftOneDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "01e6575d-bb92-4f32-82b4-acfe7448a364",
      "name": "Read Spreadsheet File",
      "type": "n8n-nodes-base.spreadsheetFile",
      "position": [
        1360,
        820
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "ed09f502-109f-42dc-a62c-6b6f54aad46e",
      "name": "Write Spreadsheet File",
      "type": "n8n-nodes-base.spreadsheetFile",
      "position": [
        2160,
        820
      ],
      "parameters": {
        "options": {
          "fileName": "=customer-datastore_{{$today.toFormat('yyyyMMdd')}}.xlsx"
        },
        "operation": "toFile",
        "fileFormat": "xlsx"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Work out Age": {
      "main": [
        [
          {
            "node": "Write Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Binary File": {
      "main": [
        [
          {
            "node": "Read Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Excel File": {
      "main": [
        [
          {
            "node": "Read Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Read Binary File",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download Excel File",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download from Google Drive",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download from Microsoft OneDrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Spreadsheet File": {
      "main": [
        [
          {
            "node": "Work out Age",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Spreadsheet File": {
      "main": [
        [
          {
            "node": "Upload to SFTP",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          },
          {
            "node": "Write Binary File",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload to Microsoft OneDrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Google Drive": {
      "main": [
        [
          {
            "node": "Read Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Microsoft OneDrive": {
      "main": [
        [
          {
            "node": "Read Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}