8
n8n 中文网amn8n.com

智能客户支持系统(集成GPT-4o、Gmail、Slack和Drive知识库)

高级

这是一个Support, AI领域的自动化工作流,包含 19 个节点。主要使用 If, Code, GmailTool, GoogleDrive, HttpRequest 等节点,结合人工智能技术实现智能自动化。 集成GPT-4o、Gmail、Slack和Drive知识库的智能客户支持系统

前置要求
  • Google 账号和 Gmail API 凭证
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
  • Pinecone API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "cnquzHBto3dmFId0",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "智能客户支持系统(集成 GPT-4o、Gmail、Slack 和 Drive 知识库)",
  "tags": [],
  "nodes": [
    {
      "id": "c48bec89-89b1-4db2-8f15-d9e75b1bb252",
      "name": "Gmail 收件箱监控器",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -100,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "41ca6a1d-7937-45c2-a664-b331eff322d1",
      "name": "邮件内容预处理器",
      "type": "n8n-nodes-base.code",
      "position": [
        120,
        120
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "787e7482-4a23-4447-97e7-7ffb5830816c",
      "name": "智能邮件分类器",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        380,
        80
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7b8c0e50-312b-4da2-9bb6-ab5278ef9cee",
      "name": "GPT-4o 语言模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        428,
        340
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a67a1722-a6ea-47a2-ad0f-f7ddb7a8fc80",
      "name": "紧急邮件过滤器",
      "type": "n8n-nodes-base.if",
      "position": [
        854,
        -80
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0bfae10c-e628-4f1b-b8e8-9d30b4038d27",
      "name": "Slack 通知中心",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1212,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b921b5d3-6379-4574-9c63-ac51101f8884",
      "name": "分析数据记录器",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1432,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "23a92a67-e4e7-4b32-8338-a9ae4274808d",
      "name": "设置说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8b923264-9bbf-4bde-b7f9-c8458b9b62ca",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        920,
        420
      ],
      "webhookId": "a86e1266-9cba-411e-ad6d-a91585e2e9e6",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "e0e52200-16c3-468f-9452-609b7d94314a",
      "name": "Google Drive 触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -100,
        980
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dd50ad61-12d2-494f-b5fa-2bb3815c52c1",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        120,
        980
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "f27a3b15-ee13-4a7d-afc0-dd9819147981",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        356,
        980
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "01ddb988-882b-43a5-a6cc-e1529f73dbb4",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        340,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f57d6db4-c76d-44b0-abdc-c00004ad7668",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        460,
        1202.5
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8a480f83-b9e7-45c5-8fe2-74546561e2e4",
      "name": "递归字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        548,
        1400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "897c3ba4-274e-4d5c-9ddf-4f8b6abbdd76",
      "name": "Pinecone 向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        920,
        540
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b31fbce4-2722-4437-ba2d-e10adb724676",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        960,
        720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d51f4a4a-a5e1-4469-b33e-e8a53bb6733e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        900,
        240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e7f6d1d0-c1f3-4598-8f88-d701feec2272",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        680,
        440
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6d4bbc49-9313-4c1c-921f-ca50294c127d",
  "connections": {
    "Gmail": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Inbox Monitor": {
      "main": [
        [
          {
            "node": "Email Content Preprocessor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Urgent Email Filter": {
      "main": [
        [
          {
            "node": "Slack Notification Hub",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT-4o Language Model": {
      "ai_languageModel": [
        [
          {
            "node": "Intelligent Email Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Slack Notification Hub": {
      "main": [
        [
          {
            "node": "Analytics Data Logger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Content Preprocessor": {
      "main": [
        [
          {
            "node": "Intelligent Email Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intelligent Email Classifier": {
      "main": [
        [
          {
            "node": "Urgent Email Filter",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [],
        [],
        [],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客户支持, 人工智能

需要付费吗?

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

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

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

作者
David Olusola

David Olusola

@dae221

AI automation consultant working with ambitious businesses on their most complex operational challenges. For project inquiries, reach me at david@daexai.com

外部链接
在 n8n.io 查看

分享此工作流