8
n8n 中文网amn8n.com

支持工单优先级自动化

中级

这是一个Ticket Management, AI Summarization领域的自动化工作流,包含 15 个节点。主要使用 If, Gmail, Slack, ClickUp, GoogleSheets 等节点。 使用JotForm、Gemini AI和ClickUp任务自动化支持工单优先级

前置要求
  • Google 账号和 Gmail API 凭证
  • Slack Bot Token 或 Webhook URL
  • Google Sheets API 凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "nodes": [
    {
      "id": "599a57cf-d6a0-41c7-9bdd-920dd2cca88c",
      "name": "Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        -256,
        64
      ],
      "parameters": {
        "text": "=Email: {{ $('JotForm Trigger').item.json.q4_email }}\nName: {{ $('JotForm Trigger').item.json.q3_name.first }} {{ $('JotForm Trigger').item.json.q3_name.last }}\nSeverity: {{ $('JotForm Trigger').item.json.q5_severity }}\n\nProblem:{{ $('JotForm Trigger').item.json.q6_issue }}\n\nDescription: {{ $('JotForm Trigger').item.json.q7_description }}\n",
        "channel": "C083NTTSZ7F",
        "attachments": [],
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "typeVersion": 1
    },
    {
      "id": "3dc5adf0-7417-4d0f-a5b4-db2f5ea9f434",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -256,
        240
      ],
      "webhookId": "3b9b79c7-db0e-4bf7-8e77-680a546a683a",
      "parameters": {
        "sendTo": "={{$node[\"JotForm Trigger\"].data[\"q4_email\"]}} ",
        "message": "=Email: {{ $('JotForm Trigger').item.json.q4_email }}\nName:  {{ $('JotForm Trigger').item.json.q3_name.first }} {{ $('JotForm Trigger').item.json.q3_name.last }}\nSeverity:  {{ $('JotForm Trigger').item.json.q5_severity }}\n\nProblem: {{ $('JotForm Trigger').item.json.q6_issue }}\nDescription: {{ $('JotForm Trigger').item.json.q7_description }}",
        "options": {
          "appendAttribution": false
        },
        "subject": "New Support Ticket ",
        "emailType": "text"
      },
      "typeVersion": 2.1
    },
    {
      "id": "a257919d-2b68-49aa-b4ae-b344d0803f9b",
      "name": "JotForm 触发器",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -896,
        80
      ],
      "webhookId": "8a780d53-f8aa-4fb8-81aa-24beb7386109",
      "parameters": {
        "form": "252875809016060",
        "resolveData": false
      },
      "typeVersion": 1
    },
    {
      "id": "df97876e-0f8f-4b00-98c4-b87cafe114e1",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        -464,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "3b4b190f-7c81-4f40-a2a8-e32f0fa360ce",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              },
              "leftValue": "={{ $json.Severity[0] }}",
              "rightValue": "Low"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "7de690e5-961a-461c-8139-417439c4e922",
      "name": "创建任务",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        288,
        64
      ],
      "parameters": {
        "list": "900901763830",
        "name": "={{ $('JotForm Trigger').item.json.q6_issue }}",
        "team": "36299117",
        "space": "66018999",
        "folder": "90090948711",
        "additionalFields": {
          "content": "={{ $('AI Agent').item.json.output }}"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "97321d5f-0dbd-48e7-b565-2f98d5e627ed",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -80,
        64
      ],
      "parameters": {
        "text": "=You are a project manager. Based on the following support ticket details, create a clear and professional task description that summarizes the issue and highlights key points.\n\nTicket Details:\n\nName: {{ $('JotForm Trigger').item.json.q3_name.first }} {{ $('JotForm Trigger').item.json.q3_name.last }}\n\nSeverity: {{ $('JotForm Trigger').item.json.q5_severity }}\n\nIssue: {{ $('JotForm Trigger').item.json.q6_issue }}\n\nDescription: {{ $('JotForm Trigger').item.json.q7_description }}\n\nOutput Format:\nReturn a concise task description suitable for a ClickUp task.\n\ndon't add this:\nHere's a concise and professional task description for ClickUp:\\\njust need the details for clickup\n\n\n\n",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "e460a1a7-f96c-4339-9232-9c2dbbffa82f",
      "name": "Google Gemini聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        16,
        272
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "2ab1c20b-d509-493f-863e-d95317db278f",
      "name": "在表格中追加行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -672,
        80
      ],
      "parameters": {
        "columns": {
          "value": {
            "Name": "={{ $json.q3_name.first }}",
            "Email": "={{ $json.q4_email }}",
            "Issue": "={{ $json.q6_issue }}",
            "Severity": "={{ $json.q5_severity }}",
            "Description": "={{ $json.q7_description }}"
          },
          "schema": [
            {
              "id": "Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Email",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Severity",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Severity",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Issue",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Issue",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Description",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Description",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1hF3MboFa_BppnGPXNs6cjHpGgoRPlYOlnDSAlofsKyg/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1hF3MboFa_BppnGPXNs6cjHpGgoRPlYOlnDSAlofsKyg"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "3d26b89a-1b6e-493a-bbec-3ee9f2b554b1",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        -16
      ],
      "parameters": {
        "color": 6,
        "width": 208,
        "height": 304,
        "content": "### JotForm 表单提交触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "7b309ae1-7c90-4270-b59c-ae6d381f7cd6",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -16
      ],
      "parameters": {
        "color": 5,
        "width": 192,
        "height": 304,
        "content": "### 在 Google Sheets 中添加详细信息"
      },
      "typeVersion": 1
    },
    {
      "id": "44d3e42a-adf4-466b-9c0b-a366c3c22a86",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -16
      ],
      "parameters": {
        "color": 5,
        "width": 192,
        "height": 304,
        "content": "### 低严重性则发邮件,否则发 Slack"
      },
      "typeVersion": 1
    },
    {
      "id": "26e3ac60-3b94-4fe3-8a20-b1860902d5e7",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -16
      ],
      "parameters": {
        "color": 5,
        "width": 192,
        "height": 432,
        "content": "### 低严重性则发邮件,否则发 Slack"
      },
      "typeVersion": 1
    },
    {
      "id": "409ecc97-68e7-4d00-8c6d-bb7eb0f804c3",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        224
      ],
      "parameters": {
        "color": 5,
        "width": 304,
        "height": 192,
        "content": "### AI 模型"
      },
      "typeVersion": 1
    },
    {
      "id": "6ba99483-09e1-4c54-bdb3-b3fb776d285d",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -16
      ],
      "parameters": {
        "color": 6,
        "width": 208,
        "height": 304,
        "content": "### 在 ClickUp 上创建任务"
      },
      "typeVersion": 1
    },
    {
      "id": "169abab9-dc80-48b9-9cf3-47ab02502319",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -16
      ],
      "parameters": {
        "color": 6,
        "width": 304,
        "height": 224,
        "content": "### AI Agent 总结需添加到 ClickUp 的详细信息"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Slack",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Create a task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 工单管理, AI 摘要总结

需要付费吗?

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

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

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

作者
Zain Khan

Zain Khan

@zain

I partner with businesses to streamline processes and accelerate growth through intelligent AI automation and Web/mobile Development. Leveraging deep expertise in GPT-4, LangChain, and n8n, I develop AI-powered agents and sophisticated LLM pipelines.

外部链接
在 n8n.io 查看

分享此工作流