8
n8n 中文网amn8n.com

Google Drive文件夹结构克隆器 - 可视化

中级

这是一个IT Ops领域的自动化工作流,包含 11 个节点。主要使用 If, Code, HttpRequest, ManualTrigger 等节点。 使用自定义命名克隆Google Drive中的嵌套文件夹结构

前置要求
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Google Drive 文件夹结构克隆器 - 可视化",
  "tags": [
    "google-drive",
    "folder-management",
    "automation"
  ],
  "nodes": [
    {
      "id": "trigger-node",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        80,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "config-node",
      "name": "⚙️ 配置 - 编辑上方3个变量",
      "type": "n8n-nodes-base.code",
      "position": [
        280,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "get-folders",
      "name": "📁 获取所有文件夹",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        300
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "iterative-processor",
      "name": "🔄 处理文件夹",
      "type": "n8n-nodes-base.code",
      "position": [
        680,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "should-create",
      "name": "🔀 是否创建?",
      "type": "n8n-nodes-base.if",
      "position": [
        880,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "create-folder",
      "name": "✨ 创建文件夹",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1080,
        200
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "final-report",
      "name": "📊 最终报告",
      "type": "n8n-nodes-base.code",
      "position": [
        1280,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "readme-note",
      "name": "README",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "config-section",
      "name": "配置帮助",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "processing-section",
      "name": "处理信息",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "troubleshooting-note",
      "name": "故障排除",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "updatedAt": "2025-05-23T12:00:00.000Z",
  "versionId": "12",
  "staticData": null,
  "connections": {
    "create-folder": {
      "main": [
        [
          {
            "node": "final-report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "should-create": {
      "main": [
        [
          {
            "node": "create-folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-folders": {
      "main": [
        [
          {
            "node": "iterative-processor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "iterative-processor": {
      "main": [
        [
          {
            "node": "should-create",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "trigger-node": {
      "main": [
        [
          {
            "node": "config-node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "config-node": {
      "main": [
        [
          {
            "node": "get-folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 0
}
常见问题

如何使用这个工作流?

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

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

中级 - IT 运维

需要付费吗?

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

工作流信息
难度等级
中级
节点数量11
分类1
节点类型5
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34