8
n8n 中文网amn8n.com

MCP_GMAIL

初级

这是一个Building Blocks, AI领域的自动化工作流,包含 5 个节点。主要使用 GmailTool, McpTrigger 等节点,结合人工智能技术实现智能自动化。 基于AI的Gmail MCP服务器

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

使用的节点 (5)

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "lYOQGMEJDxugrfrT",
  "meta": {
    "instanceId": "6d46e25379ef430a7067964d1096b885c773564549240cb3ad4c087f6cf94bd3",
    "templateCredsSetupCompleted": true
  },
  "name": "MCP_GMAIL",
  "tags": [],
  "nodes": [
    {
      "id": "c13105ec-6ac3-4179-a331-da5214ced6e6",
      "name": "发送邮件",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -260,
        540
      ],
      "webhookId": "7ecc72c7-8968-4e5c-ae5a-a3d41823ca73",
      "parameters": {
        "sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {},
        "subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
        "descriptionType": "manual",
        "toolDescription": "envia menssagems via API google"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "qvvveZOGtqMK0yvU",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "0836faf7-59fd-41f5-9a54-3f467ed87db1",
      "name": "回复邮件",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -120,
        540
      ],
      "webhookId": "30c6020e-eceb-4381-9874-be21f34ceea2",
      "parameters": {
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {},
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "reply",
        "descriptionType": "manual"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "qvvveZOGtqMK0yvU",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "892e89a7-8751-4c9f-87f3-a663ec0ca042",
      "name": "获取邮件",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        0,
        540
      ],
      "webhookId": "6b3f4e85-bdfe-4396-8ee7-5a73efc680fb",
      "parameters": {
        "simple": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify', ``, 'boolean') }}",
        "options": {},
        "messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
        "operation": "get"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "qvvveZOGtqMK0yvU",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "c1c2d8cd-6117-4238-b696-22da8f217f59",
      "name": "发送并等待",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        140,
        540
      ],
      "webhookId": "1f8a82c1-cbd1-4f40-9820-2de005c0473f",
      "parameters": {
        "sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {},
        "subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
        "operation": "sendAndWait",
        "responseType": "freeText"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "qvvveZOGtqMK0yvU",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "89c8bc41-cbf9-4099-a3ac-6d5d7cd1a626",
      "name": "MCP_GMAIL",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "82a7a338-618c-44f5-a1c3-f2e32b6b4833",
      "parameters": {
        "path": "/mcp/:tool/gmail"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2022464f-822f-4b3e-9425-4e938a95348c",
  "connections": {
    "GET_EMAIL": {
      "ai_tool": [
        [
          {
            "node": "MCP_GMAIL",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SEND_EMAIL": {
      "ai_tool": [
        [
          {
            "node": "MCP_GMAIL",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "REPLY_EMAIL": {
      "ai_tool": [
        [
          {
            "node": "MCP_GMAIL",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SEND_AND_WAIT": {
      "ai_tool": [
        [
          {
            "node": "MCP_GMAIL",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

工作流信息
难度等级
初级
节点数量5
分类2
节点类型2
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
Luciano Gutierrez

Luciano Gutierrez

@koresoluciones

🇧🇷 Argentino de 30 anos e fundador da KORE Soluções em Belo Horizonte (MG). Há 1 ano, fornecemos automações, cursos, configurações e manutenção de workflows, ajudando empresas a aumentar eficiência e escalar processos com tecnologia. 🇺🇸 I’m a 30‑year‑old Argentine founder of KORE Soluções in Belo Horizonte (MG). For 1 year, we’ve delivered automations, courses, configuration, and workflow maintenance, helping businesses boost efficiency and scale processes with technology.

外部链接
在 n8n.io 查看

分享此工作流