{
  "name": "Automated Google Drive to FTP transfer with JSON logging & reports",
  "nodes": [
    {
      "id": "52861d1c-200e-46dc-84cc-964db24965df",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        400
      ],
      "parameters": {
        "width": 444,
        "height": 180,
        "content": "🔗 **WEBHOOK TRIGGER**\n\nManual trigger endpoint:\nPOST to: `/webhook-transfer-status`\n\nUse for on-demand transfers or external integrations."
      }
    },
    {
      "id": "81c1ff80-5b17-46a2-9b48-d25894340817",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        304,
        32
      ]
    },
    {
      "id": "fb27fb5b-5ff4-4bb4-82e3-44ad39b72022",
      "name": "Get Drive Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        496,
        32
      ]
    },
    {
      "id": "112f4226-ff78-4da8-9d97-b729d2ae54cb",
      "name": "Filter & Validate Files",
      "type": "n8n-nodes-base.code",
      "position": [
        704,
        32
      ]
    },
    {
      "id": "d9f3620c-c532-43fa-9b8b-0b6e47737fd0",
      "name": "Process One by One",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        896,
        32
      ]
    },
    {
      "id": "7622280e-523d-40ed-84a6-6467c46470e8",
      "name": "Download from Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1104,
        32
      ]
    },
    {
      "id": "90b25c0a-0719-4b24-ac62-e61781e27533",
      "name": "Upload to FTP",
      "type": "n8n-nodes-base.ftp",
      "position": [
        1296,
        32
      ]
    },
    {
      "id": "9cf1b93b-5584-48d9-bb96-91c2665719cf",
      "name": "Update Notes - Success",
      "type": "n8n-nodes-base.code",
      "position": [
        1504,
        -64
      ]
    },
    {
      "id": "5ea1483c-1b95-443e-b57f-08a192bc76f9",
      "name": "Update Notes - Error",
      "type": "n8n-nodes-base.code",
      "position": [
        1504,
        144
      ]
    },
    {
      "id": "ea8a7f9c-b7a8-4a15-8584-7fe59a7d18bd",
      "name": "Check if More Files",
      "type": "n8n-nodes-base.if",
      "position": [
        1696,
        32
      ]
    },
    {
      "id": "25732bf1-2c41-44b3-bcbf-a492f30be6e9",
      "name": "Save Notes JSON",
      "type": "n8n-nodes-base.writeBinaryFile",
      "position": [
        1904,
        32
      ]
    },
    {
      "id": "b400936c-4f5d-4b7e-b414-38accc14bd7a",
      "name": "Upload Notes to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2096,
        32
      ]
    },
    {
      "id": "9a4bffa9-6d4b-495e-af69-68884eeadaab",
      "name": "Send Report Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2304,
        32
      ]
    },
    {
      "id": "234ca9a5-6ce6-470d-b1f4-31671cf782c3",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        304,
        240
      ]
    },
    {
      "id": "e5ebea62-bc9c-4a56-a52d-0a657df83e2c",
      "name": "Create Final Report",
      "type": "n8n-nodes-base.code",
      "position": [
        1904,
        240
      ]
    }
  ],
  "connections": {
    "Upload to FTP": {
      "main": [
        [
          {
            "node": "Update Notes - Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Drive Files": {
      "main": [
        [
          {
            "node": "Filter & Validate Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Notes JSON": {
      "main": [
        [
          {
            "node": "Upload Notes to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Get Drive Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Drive Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process One by One": {
      "main": [
        [
          {
            "node": "Download from Drive",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Final Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if More Files": {
      "main": [
        [
          {
            "node": "Process One by One",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Save Notes JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Final Report": {
      "main": [
        [
          {
            "node": "Save Notes JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Drive": {
      "main": [
        [
          {
            "node": "Upload to FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Notes - Error": {
      "main": [
        [
          {
            "node": "Check if More Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Notes to Drive": {
      "main": [
        [
          {
            "node": "Send Report Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Notes - Success": {
      "main": [
        [
          {
            "node": "Check if More Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter & Validate Files": {
      "main": [
        [
          {
            "node": "Process One by One",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}