8
n8n 中文网amn8n.com

项目启动机器人

高级

这是一个File Management, AI Chatbot领域的自动化工作流,包含 23 个节点。主要使用 GmailTool, SlackTool, DropboxTool, Agent, McpTrigger 等节点。 标题优秀,清晰解释了模板目的并提及所有关键服务

前置要求
  • Google 账号和 Gmail API 凭证
  • Slack Bot Token 或 Webhook URL
  • OpenAI API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "kRuw3XB0Dx3j1JC2",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "name": "项目启动机器人",
  "tags": [],
  "nodes": [
    {
      "id": "48e1822f-e9c8-4207-82a7-6eba06c0d0b0",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -304,
        240
      ],
      "webhookId": "03c8c0aa-aee6-410c-96ef-f1adb31b3670",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "bd2d2299-0c58-4fd3-acaa-f9c4b4b99b30",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -48,
        240
      ],
      "parameters": {
        "options": {
          "systemMessage": "=You are an expert project coordinator that operates in a two-stage process.\n\n**Stage 1: Folder Creation**\n\nYour first job is to create project folders. When a user asks you to create a new project or client named 'X', you must:\n\n1.  **Execute Immediately:** Use the create foldertool to create the main project folder at/Projects/X/ and all of the following sub-folders inside it:\n* '01_Briefs_and_Contracts'\n* '02_Source_Assets'\n* '03_Work_In_Progress'\n* '04_Internal_Review'\n* '05_Final_Deliverables'\n\n2.  **Handle Failure:** If any folder fails to be created, STOP the process and report the specific error to the user. Do not retry.\n\n3.  **Report Success and Ask:** If all folders are created successfully, report this success to the user. Then, you MUST ask them if they want to proceed with sending notifications. For example: \"All folders for project 'X' have been created. Shall I notify the team on Slack and Gmail now?\"\n\n**Wait for the user's confirmation before proceeding.**\n\n---\n\n**Stage 2: Notification**\n\nYour second job is to send notifications, but ONLY if the user has confirmed after a successful folder creation.\n\n1.  **On Confirmation:** If the user says \"yes\" or confirms they want to notify the team, you will use the notification tools.\n\n2.  **Use Notification Tools:**\n* Use the Send a message in Slack tool to post a message to the #projects channel.* Use theSend a message in Gmail tool. The subject should be \"Project Created: X\" and the message should confirm the project setup.\n\n3.  **Confirm Completion:** After sending the notifications, inform the user that the notifications have been sent."
        },
        "needsFallback": true
      },
      "typeVersion": 2.1
    },
    {
      "id": "d9f4accf-98b4-491c-843a-a94242dddb4b",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        48,
        464
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "4ecd829e-e2ad-4ff5-bccc-fc26a8f5c2f6",
      "name": "MCP 服务器触发器",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        112,
        -192
      ],
      "webhookId": "57602556-3e32-4991-8215-dc8dcae6b1c3",
      "parameters": {
        "path": "57602556-3e32-4991-8215-dc8dcae6b1c3"
      },
      "typeVersion": 2
    },
    {
      "id": "0a7cd459-2550-4405-88ab-f9d063db738e",
      "name": "创建文件夹",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        -432,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "resource": "folder",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Create a folder in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c9e7d852-1c17-499c-b35e-7df4302e0345",
      "name": "复制文件夹",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        -304,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "toPath": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To_Path', ``, 'string') }}",
        "resource": "folder",
        "operation": "copy",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Copy a folder in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6b939eaf-7b46-4592-8348-0f7cffa99b9a",
      "name": "删除文件夹",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        -176,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "resource": "folder",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Create a folder in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "dbbae531-91a2-4f36-aaf5-530131fda353",
      "name": "移动文件夹",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        -48,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "toPath": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To_Path', ``, 'string') }}",
        "resource": "folder",
        "operation": "copy",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Copy a folder in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6dbeb97b-40be-48c7-af17-9ff9f876e514",
      "name": "列出文件夹",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        80,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "filters": {},
        "resource": "folder",
        "operation": "list",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "List a folder in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e8afef12-ac99-461c-9496-6bb71521fa0e",
      "name": "下载文件",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        208,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "operation": "download",
        "authentication": "oAuth2"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "768f6334-360d-4c6b-bb86-6ef429d1352b",
      "name": "删除",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        336,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Delete_Path', ``, 'string') }}",
        "operation": "delete",
        "authentication": "oAuth2"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a147f6f0-4f64-4073-a843-05b18d9f2ab1",
      "name": "移动文件",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        464,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('From_Path', ``, 'string') }}",
        "toPath": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To_Path', ``, 'string') }}",
        "operation": "move",
        "authentication": "oAuth2"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f78d7b44-2827-44f5-9ab1-a66304b8597b",
      "name": "上传文件",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        592,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('File_Path', ``, 'string') }}",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Upload a file in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "9655b0b0-0bf5-4e93-a797-7124f807ef89",
      "name": "复制文件",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        720,
        32
      ],
      "parameters": {
        "path": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('From_Path', ``, 'string') }}",
        "toPath": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To_Path', ``, 'string') }}",
        "operation": "copy",
        "authentication": "oAuth2"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e32900d0-b051-4740-890a-73e0d687cae3",
      "name": "搜索文件",
      "type": "n8n-nodes-base.dropboxTool",
      "position": [
        848,
        32
      ],
      "parameters": {
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "filters": {},
        "resource": "search",
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Query in Dropbox"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "O12GAnkEAUbGEZgq",
          "name": "OAuth Dropbox aiformotu"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3e6abfde-5f30-4e45-a022-8580ca4d50ea",
      "name": "在 Gmail 中发送消息",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        560,
        480
      ],
      "webhookId": "6a698101-c922-48e6-8d8f-953572b85a71",
      "parameters": {
        "sendTo": "={{ $fromAI('email') }}",
        "message": "={ $fromAI('message') }}",
        "options": {},
        "subject": "={{ $fromAI('subject') }}",
        "descriptionType": "manual",
        "toolDescription": "Send an email to tell user about the project"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "8p11S7abjY8KddB9",
          "name": "contactmuhtadin"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "50b33844-0efe-46de-9114-22c5c6628e6e",
      "name": "通知节点",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        464,
        256
      ],
      "webhookId": "57272f41-7139-467e-b7d3-9e60e60909be",
      "parameters": {
        "path": "57272f41-7139-467e-b7d3-9e60e60909be"
      },
      "typeVersion": 2
    },
    {
      "id": "55b21c6d-ffdb-430f-b609-093da5685256",
      "name": "通知",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        176,
        464
      ],
      "parameters": {
        "sseEndpoint": "https://n8n.khmuhtadin.com/mcp/57272f41-7139-467e-b7d3-9e60e60909be"
      },
      "typeVersion": 1
    },
    {
      "id": "437fb642-e3a2-41e3-a49c-47ef1cca2e46",
      "name": "Dropbox MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        304,
        464
      ],
      "parameters": {
        "sseEndpoint": "https://n8n.khmuhtadin.com/mcp/57602556-3e32-4991-8215-dc8dcae6b1c3"
      },
      "typeVersion": 1
    },
    {
      "id": "278536e6-1e71-4d6e-b337-b71513681034",
      "name": "在 Slack 中发送消息",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        720,
        480
      ],
      "webhookId": "e8e32b30-6715-4e73-9c4d-823552c83496",
      "parameters": {
        "text": "=",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "url",
          "value": "https://app.slack.com/client/T094N0AGDCL/C095BLWJDAR"
        },
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "Jm040BiWj3dCFP6j",
          "name": "Khaisa Slack"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "f63661f9-a77e-479e-912e-62d1b5800eb7",
      "name": "GPT",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        -208,
        464
      ],
      "parameters": {
        "model": "motului",
        "options": {}
      },
      "credentials": {
        "azureOpenAiApi": {
          "id": "IJKdD72VLSmWGj9g",
          "name": "GPT-4.1"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1600c718-256c-430d-a91e-0a9fe7073259",
      "name": "Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -80,
        464
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.5-pro"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "7ZkDDnjsiPRXf6eh",
          "name": "project gcp: n8n-khmuhtadin"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b4357b38-1e9a-4758-b10c-2c914655f556",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -288
      ],
      "parameters": {
        "width": 544,
        "height": 1168,
        "content": "# 🔑 凭据设置指南"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "540f590c-83be-4e5e-ab21-63cab8350db3",
  "connections": {
    "GPT": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Delete": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Notify": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        []
      ]
    },
    "Copy file": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Move file": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Dropbox MCP": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Search file": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "copy folder": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "list folder": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "move folder": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "create folder": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "delete folder": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download a file": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a message in Gmail": {
      "ai_tool": [
        [
          {
            "node": "Notify node",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a message in Slack": {
      "ai_tool": [
        [
          {
            "node": "Notify node",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 文件管理, AI 聊天机器人

需要付费吗?

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

工作流信息
难度等级
高级
节点数量23
分类2
节点类型11
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流