8
n8n 中文网amn8n.com

AIAutomationPro 从Google Drive恢复所有工作流 v1

中级

这是一个DevOps, IT Ops领域的自动化工作流,包含 10 个节点。主要使用 N8n, Wait, GoogleDrive, ManualTrigger, SplitInBatches 等节点。 从Google Drive备份恢复n8n工作流

前置要求
  • Google Drive API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "4Uwsl8NFCbGfns09",
  "meta": {
    "instanceId": "b3df22d2875c82e3ba1883c50049ed9cee0bcabf99d2b486961d2245a09e3964",
    "templateCredsSetupCompleted": true
  },
  "name": "AIAutomationPro 从Google Drive恢复所有工作流 v1",
  "tags": [],
  "nodes": [
    {
      "id": "4499bb17-7055-47c6-a344-c30d27232c4e",
      "name": "Google Drive 获取所有工作流",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        300,
        0
      ],
      "parameters": {
        "filter": {
          "folderId": {
            "__rl": true,
            "mode": "url",
            "value": "https://drive.google.com/drive/folders/1bfV3QKrchiNp4Ti2Ji6jyoM0b-SlUJwC"
          }
        },
        "options": {},
        "resource": "fileFolder",
        "returnAll": true
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "q8OibtSjVurZl2tb",
          "name": "AI Auto Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "933b1caa-4551-4620-8b90-0453d221c67b",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -80
      ],
      "parameters": {
        "color": 2,
        "width": 307,
        "height": 271,
        "content": "## 设置"
      },
      "typeVersion": 1
    },
    {
      "id": "2555a429-908c-4173-9cd2-13d0fb5ecc21",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -80
      ],
      "parameters": {
        "color": 2,
        "width": 1127,
        "height": 311,
        "content": "## 将所有工作流导入到N8n"
      },
      "typeVersion": 1
    },
    {
      "id": "e4b2c217-01ae-498f-b85c-531b80c2b929",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        720,
        0
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "f444655c-94b0-41eb-9710-962269ef5462",
      "name": "从文件提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1140,
        20
      ],
      "parameters": {
        "options": {},
        "operation": "fromJson"
      },
      "typeVersion": 1
    },
    {
      "id": "3a3e83d8-a490-4fef-bd1c-6974b03af355",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1540,
        20
      ],
      "webhookId": "1d4c12db-215a-42d4-80e0-062bad87b7f6",
      "parameters": {
        "amount": 3
      },
      "typeVersion": 1.1
    },
    {
      "id": "9fd08d3c-a0bd-498a-b8b4-7f7f73c6d517",
      "name": "Google Drive 下载工作流",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        940,
        20
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{  $('Loop Over Items').item.json.id  }}"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "q8OibtSjVurZl2tb",
          "name": "AI Auto Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "0c1e644a-736a-4fcb-9756-cde959264f72",
      "name": "n8n 创建工作流",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1340,
        20
      ],
      "parameters": {
        "operation": "create",
        "requestOptions": {},
        "workflowObject": "={{ $json.data.toJsonString() }}"
      },
      "credentials": {
        "n8nApi": {
          "id": "S63rln42rAvGFfBB",
          "name": "n8n account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d91b1c60-db35-40cd-9923-f4264fe6fca4",
      "name": "点击触发器",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7588d560-33b6-41b1-a76c-eaae74091d6d",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -220
      ],
      "parameters": {
        "width": 660,
        "height": 2280,
        "content": "## 从Google Drive备份恢复所有n8n工作流"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "80dbfa3f-a041-4b59-ac04-ca17221be845",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Google Drive Download Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clicking Trigger": {
      "main": [
        [
          {
            "node": "Google Drive Get All Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "n8n Create Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "n8n Create Workflow": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Download Workflow": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Get All Workflows": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 开发运维, IT 运维

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量10
分类2
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Daniel Ng

Daniel Ng

@danielng

A Growth Hacker, Digital Marketer & AI Automation Builder with 10+ years of experience in Digital Marketing & Workflow Automation. Based in Helsinki, Finland. For questions about my templates and customization, contact me at: daniel@aiautomationpro.org

外部链接
在 n8n.io 查看

分享此工作流