8
n8n 中文网amn8n.com

Gmail MCP 服务器

高级

这是一个Building Blocks, AI领域的自动化工作流,包含 27 个节点。主要使用 GmailTool, McpTrigger 等节点,结合人工智能技术实现智能自动化。 您的全能AI邮件工具包

前置要求
  • Google 账号和 Gmail API 凭证

使用的节点 (27)

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "jPDa0roHExjcWt80",
  "meta": {
    "instanceId": "8029058e18ae4ed6081000c1270d96039ad05959052aa2034dd96a215849bcf7",
    "templateCredsSetupCompleted": true
  },
  "name": "Gmail MCP 服务器",
  "tags": [
    {
      "id": "mce0brNtJ0q1uqig",
      "name": "Agent Tool",
      "createdAt": "2025-02-25T18:11:08.555Z",
      "updatedAt": "2025-02-25T18:11:08.555Z"
    },
    {
      "id": "Yt5ECnELP8JYcw9w",
      "name": "Gmail",
      "createdAt": "2025-04-18T01:59:21.577Z",
      "updatedAt": "2025-04-18T01:59:21.577Z"
    }
  ],
  "nodes": [
    {
      "id": "6651d9cd-c406-4f63-a7f6-08d3c46b20e2",
      "name": "添加标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -460,
        520
      ],
      "webhookId": "81d61988-8213-4175-b75d-76cb67ce4a3b",
      "parameters": {
        "labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "addLabels"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "c2515350-55bf-4786-a2db-9a62cc8696bd",
      "name": "删除",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -740,
        320
      ],
      "webhookId": "03319c28-ef88-40f4-897c-f44c21dbdf1f",
      "parameters": {
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "delete"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "4c1ca410-5a3d-468f-b826-3f77e1f039c9",
      "name": "获取",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -620,
        320
      ],
      "webhookId": "cf5acbf3-a08f-4da6-9f14-9751eed6e5b8",
      "parameters": {
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "get"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "d5ce608d-e19d-4675-a608-de67a1e87a2e",
      "name": "搜索",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -500,
        320
      ],
      "webhookId": "cb3d028a-6cab-4946-b368-aa56bf271af9",
      "parameters": {
        "filters": {
          "q": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Search', ``, 'string') }}",
          "sender": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Sender', ``, 'string') }}",
          "receivedAfter": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_After', ``, 'string') }}",
          "receivedBefore": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_Before', ``, 'string') }}"
        },
        "operation": "getAll",
        "returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "1b01df01-5a66-47a1-ada2-20210bd4f49e",
      "name": "标记为已读",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -900,
        520
      ],
      "webhookId": "e769b7cf-9622-434d-b98d-4bde7653238d",
      "parameters": {
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "markAsRead"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "575c9610-2ff6-4124-a086-17ecb345e25f",
      "name": "标记为未读",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -740,
        520
      ],
      "webhookId": "c26a8635-4329-498e-b293-4350baed493d",
      "parameters": {
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "markAsUnread"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "0ac2eeb0-d40b-45f5-86aa-430ef2af0278",
      "name": "回复",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -880,
        320
      ],
      "webhookId": "fbd30b84-25ac-4bab-8a66-5366b9b7a0be",
      "parameters": {
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {
          "ccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('CC', ``, 'string') }}",
          "bccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('BCC', ``, 'string') }}",
          "attachmentsUi": {
            "attachmentsBinary": [
              {
                "property": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Attachment_Field_Name', ``, 'string') }}"
              }
            ]
          },
          "appendAttribution": false
        },
        "emailType": "text",
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "reply"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "d40c7206-7774-48f8-be3f-44c4a37a2167",
      "name": "移除标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -600,
        520
      ],
      "webhookId": "e83fb7ee-2716-444b-9a4e-208eea215728",
      "parameters": {
        "labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "removeLabels"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "b48b6aff-f59d-433f-944d-6955c3016576",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        240
      ],
      "parameters": {
        "width": 660,
        "height": 460,
        "content": "## 消息工具"
      },
      "typeVersion": 1
    },
    {
      "id": "f6340c64-cfd4-4d4a-8a30-e1dc99ede346",
      "name": "获取标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -180,
        340
      ],
      "webhookId": "1f107973-fe4a-440c-aaef-f35e1e8a555a",
      "parameters": {
        "resource": "label",
        "returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "54c4c576-cb86-424e-a14a-6fd68369288d",
      "name": "获取标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -40,
        340
      ],
      "webhookId": "e9d3b2c0-50ea-4b3b-8509-f89dc4f20fb5",
      "parameters": {
        "labelId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_ID', ``, 'string') }}",
        "resource": "label",
        "operation": "get"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "5265a05f-0f9f-461f-8f77-fa57017f06a7",
      "name": "删除标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -180,
        540
      ],
      "webhookId": "80a61a7c-f7a0-4fc9-a0a8-edd5846b4e11",
      "parameters": {
        "labelId": "={{ $fromAI('Label_ID', ``, 'string') }}",
        "resource": "label",
        "operation": "delete"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "81c7b026-a427-43c1-ae4e-86b7a1e76565",
      "name": "创建标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -20,
        540
      ],
      "webhookId": "d24d1672-4f76-4f58-912b-9345d23ba922",
      "parameters": {
        "name": "={{ $fromAI('Label_ID', ``, 'string') }}",
        "options": {},
        "resource": "label",
        "operation": "create"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "711ebb2e-737c-43c8-a6d4-919fbf069a72",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        240
      ],
      "parameters": {
        "color": 4,
        "width": 380,
        "height": 440,
        "content": "## 标签工具"
      },
      "typeVersion": 1
    },
    {
      "id": "6429d682-8c1b-4940-a92c-a0295bb7cea9",
      "name": "删除草稿",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        280,
        0
      ],
      "webhookId": "8eb35ae4-6517-421b-b54f-ba0610cf58f4",
      "parameters": {
        "resource": "draft",
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Draft_ID', ``, 'string') }}",
        "operation": "delete"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "a0dcb744-c69f-4409-9fff-cc2937ca040f",
      "name": "创建草稿",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        280,
        -180
      ],
      "webhookId": "1cca6c42-ccd9-4144-a2b1-6266d848f6ab",
      "parameters": {
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {
          "ccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('CC', ``, 'string') }}",
          "bccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('BCC', ``, 'string') }}",
          "attachmentsUi": {
            "attachmentsBinary": [
              {
                "property": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Attachment_Field_Name__in_Input_', ``, 'string') }}"
              }
            ]
          }
        },
        "subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
        "resource": "draft"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "42f08525-d583-4e49-882d-c805095f68a3",
      "name": "获取草稿",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        460,
        -180
      ],
      "webhookId": "80eadc8e-9d6b-42e7-9ac4-5b26d21fb3c5",
      "parameters": {
        "options": {},
        "resource": "draft",
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Draft_ID', ``, 'string') }}",
        "operation": "get"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "a4e5e542-496d-4822-a180-725f4fb2078a",
      "name": "获取多个草稿",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        460,
        0
      ],
      "webhookId": "6aaf2777-d1c1-490b-a82f-eaab6caefe85",
      "parameters": {
        "options": {
          "includeSpamTrash": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Include_Spam_and_Trash', ``, 'boolean') }}"
        },
        "resource": "draft",
        "operation": "getAll",
        "returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "0b973c0b-25d5-4bdf-aaf9-c69b236b4222",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -280
      ],
      "parameters": {
        "color": 5,
        "width": 380,
        "height": 440,
        "content": "## 草稿工具"
      },
      "typeVersion": 1
    },
    {
      "id": "52adc637-9e9e-404f-86bd-f81306fd9f88",
      "name": "获取多个会话",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        240,
        340
      ],
      "webhookId": "233fb55f-2575-4cbd-a327-e27858e98cd9",
      "parameters": {
        "filters": {
          "q": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Search', ``, 'string') }}",
          "receivedAfter": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_After', ``, 'string') }}",
          "receivedBefore": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Received_Before', ``, 'string') }}"
        },
        "resource": "thread",
        "returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "b2334e73-5d2a-44b2-bb7b-3c353f1042af",
      "name": "获取会话",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        400,
        340
      ],
      "webhookId": "9ecfaf0c-8d43-4b46-86bb-de5117b657c1",
      "parameters": {
        "options": {
          "returnOnlyMessages": true
        },
        "resource": "thread",
        "threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
        "operation": "get"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "5729a4ff-5a94-4be8-b95f-748559d2079d",
      "name": "为会话添加标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        560,
        340
      ],
      "webhookId": "c7a99e26-cb22-4675-b5a8-fb7acd302983",
      "parameters": {
        "labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
        "resource": "thread",
        "threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
        "operation": "addLabels"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "c0f5b256-6a59-4b2e-905a-7eae37d0e236",
      "name": "移除会话标签",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        240,
        520
      ],
      "webhookId": "cb63a038-73ba-4488-b70e-e3b8c48ee1b6",
      "parameters": {
        "labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
        "resource": "thread",
        "threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
        "operation": "removeLabels"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "66c0b9f4-6a91-469d-a4b7-4a6a4ff4957c",
      "name": "回复会话",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        400,
        520
      ],
      "webhookId": "b10a9bfd-eca1-40fd-817e-3ab1caf94d97",
      "parameters": {
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {
          "ccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('CC', ``, 'string') }}",
          "bccList": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('BCC', ``, 'string') }}"
        },
        "resource": "thread",
        "threadId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Thread_ID', ``, 'string') }}",
        "operation": "reply"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "67JzzUiB1dTa4vYU",
          "name": "Your Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "f986b766-681a-4ba8-af3d-4e8a43fb2a4a",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        240
      ],
      "parameters": {
        "color": 7,
        "width": 520,
        "height": 440,
        "content": "## 会话工具"
      },
      "typeVersion": 1
    },
    {
      "id": "c2038ec0-a8bf-41c6-b76d-4a349ab09017",
      "name": "Gmail MCP 服务器",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -520,
        -240
      ],
      "webhookId": "a794310b-bca0-4272-99be-a2872c1cadb0",
      "parameters": {
        "path": "gmail"
      },
      "typeVersion": 1
    },
    {
      "id": "4efab0e3-2677-44ea-b9fb-b6b0568ac597",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1020,
        -280
      ],
      "parameters": {
        "color": 6,
        "width": 280,
        "height": 240,
        "content": "## 使用方法"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b7869b45-1079-4ccf-86fd-1cd6d7b5571d",
  "connections": {
    "get": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "reply": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "delete": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "search": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getDraft": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getLabel": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "addLabels": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getLabels": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getThread": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "markAsRead": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "createDraft": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "createLabel": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "deleteDraft": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "deleteLabel": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "replyThread": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "markAsUnread": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "removeLabels": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getManyDrafts": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "addLabelThread": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getManyThreads": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "removeLabelThread": {
      "ai_tool": [
        [
          {
            "node": "Gmail MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 构建模块, 人工智能

需要付费吗?

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

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

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

作者
Brian Money

Brian Money

@aspereo

Experienced Linux administrator, entrepreneur, and automation enthusiast, I specialize in crafting robust, scalable workflows with n8n. I have a passion for business automation, integrating complex systems seamlessly, and sharing practical templates that empower others to automate effectively.

外部链接
在 n8n.io 查看

分享此工作流