8
n8n 中文网amn8n.com

使用Gemini总结Gmail支持邮件并发布到Slack

中级

这是一个AI Summarization, Multimodal AI领域的自动化工作流,包含 6 个节点。主要使用 Slack, GmailTrigger, ChainLlm, LmChatGoogleGemini 等节点。 使用Gemini总结Gmail支持邮件并发布到Slack

前置要求
  • Slack Bot Token 或 Webhook URL
  • Google 账号和 Gmail API 凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "rI3h3XeNlHNt713L",
  "meta": {
    "instanceId": "14e4c77104722ab186539dfea5182e419aecc83d85963fe13f6de862c875ebfa",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 Gemini 总结 Gmail 支持邮件并发布到 Slack",
  "tags": [],
  "nodes": [
    {
      "id": "9d09b409-d0ac-4967-8275-70bf243d2980",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -100
      ],
      "parameters": {
        "width": 920,
        "height": 480,
        "content": "## 使用 Gemini 总结 Gmail 支持邮件并发布到 Slack"
      },
      "typeVersion": 1
    },
    {
      "id": "33c3e491-4772-4029-80be-bf67fa80eb15",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        400
      ],
      "parameters": {
        "width": 920,
        "height": 460,
        "content": "# **节点分解与说明:**"
      },
      "typeVersion": 1
    },
    {
      "id": "b2fa6be6-4ff2-4b60-b70a-b6ace8e71834",
      "name": "总结邮件并发送到 Slack",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        220,
        0
      ],
      "parameters": {
        "text": "=\"Summarize the following email: Subject - {{ $json.subject }}, From - {{ $json.from }}, Body - {{ $json.text }}.\"",
        "batching": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "2083511b-05ee-401b-95e3-3d860120e5b1",
      "name": "使用 Google Gemini 总结邮件",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        320,
        180
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-1.5-flash"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "z5bwgGNZFyahaeS7",
          "name": "Google Gemini(PaLM) Api account 4"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "4b12dee3-c9b1-4116-a013-b6ead2da488d",
      "name": "检查支持邮件",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "simple": false,
        "filters": {},
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "zvYmbQlDWxyBtn9A",
          "name": "Gmail account 20"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bf34439a-9d63-47e8-9812-28c3931a76d3",
      "name": "将摘要发布到 Slack 用户",
      "type": "n8n-nodes-base.slack",
      "position": [
        596,
        0
      ],
      "webhookId": "ba52c998-782b-4b90-883e-437532b1e06c",
      "parameters": {
        "text": "={{ $json.text }}",
        "user": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "select": "user",
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "HlObxWRUmnuebuJP",
          "name": "Interview_feedback_Slack"
        }
      },
      "typeVersion": 2.3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2e5586d0-0916-4543-8c4c-ec782649b6a2",
  "connections": {
    "Check Support Emails": {
      "main": [
        [
          {
            "node": "Summarize Email and sent to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini To Summarize Email": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Email and sent to Slack",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Email and sent to Slack": {
      "main": [
        [
          {
            "node": "Post Summary to Slack User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - AI 摘要总结, 多模态 AI

需要付费吗?

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

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

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

作者
WeblineIndia

WeblineIndia

@weblineindia

A Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.

外部链接
在 n8n.io 查看

分享此工作流