{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [320, -200],
      "id": "67ae2f9a-49a8-4f04-bbf1-57906c32668f",
      "name": "GO"
    },
    {
      "parameters": {
        "url": "https://nnn.zeabur.app/api/v1/workflows",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [540, -140],
      "id": "0b4a57c9-b368-4737-b76f-6b31c0d422de",
      "name": "HTTP Request",
      "notesInFlow": true,
      "credentials": {
        "httpHeaderAuth": {
          "id": "xGV1H6PyBY3FrNOT",
          "name": "Header Auth account"
        }
      },
      "notes": "使用 n8n API"
    },
    {
      "parameters": {
        "fieldToSplitOut": "data",
        "options": {}
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [740, -140],
      "id": "9bf99d59-9fa8-4cf9-ac49-82ee38724f35",
      "name": "Split Out",
      "notesInFlow": true,
      "notes": "拆解 JSON 資料"
    },
    {
      "parameters": {
        "operation": "toJson",
        "mode": "each",
        "options": {
          "fileName": "={{ $json.name }}-{{ $json.id }}.json"
        }
      },
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [940, -140],
      "id": "1435b1fa-83eb-4267-af9b-dbfbbac3f08a",
      "name": "Convert to File",
      "notesInFlow": true,
      "notes": "轉換成 JSON 檔案"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 1,
              "triggerAtMinute": 8
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [320, -40],
      "id": "ea79c803-722e-4c54-9028-6d6e034038eb",
      "name": "Schedule",
      "notesInFlow": true,
      "notes": "定時備份"
    }
  ],
  "connections": {
    "GO": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "ae39b67bfec4ccdfc852d83e07792aa88c33fb1fffa6506bbc36c940aa2db6f8"
  }
}
