AI驱动的客户支持:邮件、知识库与人工升级自动化

高级

这是一个Ticket Management、AI RAG领域的自动化工作流,包含 26 个节点。主要使用 Set、Gmail、Slack、GoogleDrive、GmailTrigger 等节点。 AI邮件支持系统:集成Gmail、Gemini、GPT-4、Slack和Google Sheets的工作流程

前置要求
  • Google 账号和 Gmail API 凭证
  • Slack Bot Token 或 Webhook URL
  • Google Drive API 凭证
  • Google Sheets API 凭证
  • OpenAI API Key
  • Google Gemini API Key
  • Pinecone API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "pmEt7zAsJcWZ2lje",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "AI驱动的客户支持:邮件、知识库与人工升级自动化",
  "tags": [],
  "nodes": [
    {
      "id": "fb735100-d9b6-487d-b279-33dd655e490a",
      "name": "OpenAI分类模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -960,
        944
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "11388127-5e8b-4308-8234-8ef285e968ea",
      "name": "技术支持代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -368,
        512
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "386b4b91-61c0-45e4-91df-0098e4e8f653",
      "name": "计费支持代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -368,
        608
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "1558b431-1314-4d14-808a-9101e5a68c5a",
      "name": "紧急升级代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -368,
        720
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "44dac164-a34a-4658-b624-3104ec8589f1",
      "name": "通用支持代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -368,
        816
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "576c4a87-a86b-4889-b931-882b2127f328",
      "name": "发送Gmail回复",
      "type": "n8n-nodes-base.gmail",
      "position": [
        96,
        848
      ],
      "webhookId": "911a8e14-8234-4e89-9b48-516ecf6ff70a",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "ebf0bca8-da8b-4db5-8fbb-14ad380b9c86",
      "name": "记录到支持仪表板",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        96,
        656
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "5f172d3e-afb1-40e5-a92c-74e99181cf24",
      "name": "Slack人工升级",
      "type": "n8n-nodes-base.slack",
      "position": [
        96,
        1088
      ],
      "webhookId": "67331c67-0ab7-481a-8975-8a762fa196a5",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3e04908c-590a-4af8-998a-33a782f1dd1b",
      "name": "文本分类器",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        -1056,
        656
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "10e51dbf-dbb2-4040-8dc1-5b1ac609ee93",
      "name": "Gmail触发器",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -1280,
        656
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7e96f31b-ae39-433d-9812-631a54abbab2",
      "name": "Google Gemini聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -384,
        336
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cec8e724-65e1-463c-ba96-c260c6c7f77d",
      "name": "Pinecone向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -304,
        224
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "31950fbc-b56d-4dc5-8e9c-257ee3ce42be",
      "name": "OpenAI嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -208,
        432
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5bd4a70e-dcce-4d57-bae5-641296921916",
      "name": "Google Drive触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -864,
        1472
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4763b5d6-3575-4613-a151-e12181ac7e19",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -640,
        1472
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "45d351f9-4b82-44f7-a361-d9011ec22183",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        -656,
        1904
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "245e89d4-e60b-48aa-9238-d90169244bbe",
      "name": "递归字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        -864,
        1904
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0585c365-66ab-4f6e-be11-cd24da8d82ab",
      "name": "Pinecone向量存储1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -336,
        1424
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "006cb1c9-5729-44c2-b946-4a3689da5eb2",
      "name": "OpenAI嵌入1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -864,
        1696
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3b7fbe6f-efa3-47ef-ab3b-b1fa780214e4",
      "name": "设置工单元数据",
      "type": "n8n-nodes-base.set",
      "position": [
        -656,
        208
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "52761f6b-2f2a-482a-a0bd-bd5fc61db6e9",
      "name": "设置工单元数据1",
      "type": "n8n-nodes-base.set",
      "position": [
        -656,
        608
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "99063eb3-55ab-43fa-aa9d-653e990abaee",
      "name": "设置工单元数据2",
      "type": "n8n-nodes-base.set",
      "position": [
        -656,
        1184
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7a34e575-654e-4c29-97f2-a2552d322ee5",
      "name": "设置工单元数据3",
      "type": "n8n-nodes-base.set",
      "position": [
        -656,
        944
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "695f8848-a813-44b3-88e2-27f351e52c2b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2048,
        496
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1d20c34c-2ee4-407f-afd5-e3617ed7ea8d",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        64
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f98310ed-0b43-4082-978c-ef97678cd978",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1968,
        1168
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0d57afb8-3317-48d5-b39e-84ea6aa3cf76",
  "connections": {
    "Google Drive": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Text Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Text Classifier": {
      "main": [
        [
          {
            "node": "Set Ticket Metadata",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Ticket Metadata1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Ticket Metadata3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Ticket Metadata2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Set Ticket Metadata": {
      "main": [
        [
          {
            "node": "Technical Support Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Ticket Metadata1": {
      "main": [
        [
          {
            "node": "Billing Support Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Ticket Metadata2": {
      "main": [
        [
          {
            "node": "General Support Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Ticket Metadata3": {
      "main": [
        [
          {
            "node": "Urgent Escalation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Billing Support Agent": {
      "main": [
        [
          {
            "node": "Send Gmail Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Support Dashboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "General Support Agent": {
      "main": [
        [
          {
            "node": "Send Gmail Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Support Dashboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_tool": [
        [
          {
            "node": "Technical Support Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Billing Support Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Urgent Escalation Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "General Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Technical Support Agent": {
      "main": [
        [
          {
            "node": "Send Gmail Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Support Dashboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Urgent Escalation Agent": {
      "main": [
        [
          {
            "node": "Send Gmail Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Support Dashboard",
            "type": "main",
            "index": 0
          },
          {
            "node": "Slack Human Escalation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Technical Support Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Billing Support Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Urgent Escalation Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "General Support Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Classification Model": {
      "ai_languageModel": [
        [
          {
            "node": "Text Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个高级难度的工作流,适用于Ticket Management、AI RAG等场景。适合高级用户,包含 16+ 个节点的复杂工作流

需要付费吗?

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

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

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

作者
David Olusola

David Olusola

@dae221

I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - david@daexai.com

外部链接
在 n8n.io 上查看 →

分享此工作流