8
n8n 中文网amn8n.com

Nicereply反馈路由器直接到MS Teams您的团队

高级

这是一个Ticket Management, AI Summarization领域的自动化工作流,包含 21 个节点。主要使用 If, Set, Code, Filter, Switch 等节点。 自动化Nicereply反馈路由到MS Teams,按团队和情感分类

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "sdscHTBWVasg6N7Q",
  "meta": {
    "instanceId": "aab1c22def123456abcdef123456abcdef",
    "templateCredsSetupCompleted": true
  },
  "name": "Nicereply 反馈路由器直接到 MS Teams 您的团队",
  "tags": [],
  "nodes": [
    {
      "id": "23e23c40-e27e-49ac-b585-45d3b4ba3186",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2176,
        -112
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtMinute": 1
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "d3798055-beaa-444c-8604-f3475507234d",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1216,
        -112
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "2048c105-4569-4041-bbcd-50d7a5765b61",
              "operator": {
                "type": "dateTime",
                "operation": "after"
              },
              "leftValue": "={{ $json['Survey Date'] }}",
              "rightValue": "={{$now.minus({hours: 24})}}"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "c02fbd26-2d0c-455c-8fe2-caa1f37f9b05",
      "name": "发送至支持",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        1056,
        -624
      ],
      "webhookId": "abcd123-a1b2-3456-abcd-ab12cd34e",
      "parameters": {
        "teamId": {
          "__rl": true,
          "mode": "list",
          "value": "YOUR_TEAM_ID",
          "cachedResultName": "Your Team"
        },
        "message": "=We’ve received feedback for <b>Support</b>!</br>\n{{ $json.Respondent }} thinks our service was <b>{{ $json.Happiness }}</b>",
        "options": {},
        "resource": "channelMessage",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "YOUR_CHANNEL_ID",
          "cachedResultUrl": "https://teams.microsoft.com/l/channel/YOUR_CHANNEL_ADDRESS",
          "cachedResultName": "Client Feedback"
        },
        "contentType": "html"
      },
      "typeVersion": 2
    },
    {
      "id": "66371a7a-15cc-4107-95d8-0661056dc3bf",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1792,
        -112
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "data"
      },
      "typeVersion": 1
    },
    {
      "id": "9afc1693-b9f0-4784-bc67-7f87d7ed1127",
      "name": "发送至支持1",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        1072,
        -112
      ],
      "webhookId": "abcd123-a1b2-3456-abcd-ab12cd34e",
      "parameters": {
        "teamId": {
          "__rl": true,
          "mode": "list",
          "value": "YOUR_CHANNEL_ID",
          "cachedResultName": "Your Team"
        },
        "message": "=We’ve received feedback for <b>Support</b>!</br>\n{{ $json.Respondent }} thinks our service was <b>{{ $json.Happiness }}</b> and says \"{{ $json['Long Answer'] }}\" ",
        "options": {},
        "resource": "channelMessage",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "YOUR_CHANNEL_ID",
          "cachedResultUrl": "https://teams.microsoft.com/l/channel/YOUR_CHANNEL_ADDRESS",
          "cachedResultName": "Client Feedback"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "859383d7-7458-43cb-854b-116348239c2c",
      "name": "获取反馈",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2000,
        -112
      ],
      "parameters": {
        "url": "https://api.nicereply.com/responses",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "d4b25cb3-ac4f-49be-8540-f7150d9f00fc",
      "name": "编辑反馈",
      "type": "n8n-nodes-base.set",
      "position": [
        -1600,
        -112
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "81f496f5-04c4-479d-a336-2cb0e2fe96c7",
              "name": "Respondent",
              "type": "string",
              "value": "={{ $json.from }}"
            },
            {
              "id": "c9816a04-14a9-4ea5-bae2-9db002943df3",
              "name": "Ticket Number",
              "type": "string",
              "value": "={{ $json.ticket_id }}"
            },
            {
              "id": "0b22d469-1114-445e-8131-6f0ec5eb59e0",
              "name": "Survey Date",
              "type": "string",
              "value": "={{ $json.created_at }}"
            },
            {
              "id": "1a6d8be1-d3a1-40da-b159-83087e2742ca",
              "name": "Happiness",
              "type": "number",
              "value": "={{ $json.answers[0].scale.value }}"
            },
            {
              "id": "2c1db29d-971a-4d78-a6d8-50146b6818ae",
              "name": "Long Answer",
              "type": "string",
              "value": "={{ $json.answers[1].open_ended.value }}"
            },
            {
              "id": "c39b0590-5694-46b3-a091-b287c2ff603a",
              "name": "SurveyID",
              "type": "string",
              "value": "={{ $json.survey_id }}"
            },
            {
              "id": "6af43297-76b0-403e-a9c0-872e6d98425b",
              "name": "AgentID",
              "type": "string",
              "value": "={{ $json.feedback_object_id }}"
            },
            {
              "id": "78234859-3d8e-4aeb-aeb1-d2b76c074bde",
              "name": "Agent Name",
              "type": "string",
              "value": ""
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "5d965b3b-56d0-4ede-a9d3-92f46eb1e4a8",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -160
      ],
      "parameters": {
        "width": 1380,
        "height": 440,
        "content": "## 发送带评论的反馈"
      },
      "typeVersion": 1
    },
    {
      "id": "ca7f03ba-d4dc-4e85-be0b-307a193d9435",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -736
      ],
      "parameters": {
        "width": 1380,
        "height": 548,
        "content": "## 发送无评论的反馈"
      },
      "typeVersion": 1
    },
    {
      "id": "5d3aa8b4-1738-407d-ac6b-90960a58602b",
      "name": "无评论",
      "type": "n8n-nodes-base.if",
      "position": [
        -560,
        -112
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "c74f8d6b-5c7f-4068-89a9-91095619448f",
              "operator": {
                "type": "string",
                "operation": "empty",
                "singleValue": true
              },
              "leftValue": "={{ $('Change survey ID according Nicereply').item.json['Long Answer'] }}",
              "rightValue": ""
            },
            {
              "id": "f3d8e054-fcea-4df5-bcf4-420c16706b44",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "126b4388-cda4-477c-8d79-3434cec3abcc",
      "name": "满意度值",
      "type": "n8n-nodes-base.switch",
      "position": [
        448,
        -416
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Great!",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4e31a572-8a68-4138-8e4a-a679e95f0128",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Happiness }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "OK",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "9ad6714e-f826-4179-9107-235e2c10bb84",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Happiness }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Bad",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "10bb8ec7-15b9-415e-9814-4b7d9e65d113",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Happiness }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "2621467d-ddc6-4cb6-8c1b-724fc47239cc",
      "name": "切换 - 团队类型",
      "type": "n8n-nodes-base.switch",
      "position": [
        176,
        -384
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Team A",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "afd403f7-326f-4b3e-99c0-0d20c23ccae0",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.SurveyID }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Team B",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "f1db99e8-c9ab-4918-b7b7-fd8339ead484",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.SurveyID }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Team C",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "61774ada-3d49-466b-8368-0fe3fc925fc0",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.SurveyID }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "3f2daf3b-48b5-48e5-b030-9b84182bd66f",
      "name": "切换 - 团队类型1",
      "type": "n8n-nodes-base.switch",
      "position": [
        192,
        16
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Team A",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "afd403f7-326f-4b3e-99c0-0d20c23ccae0",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.SurveyID }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Team B",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "f1db99e8-c9ab-4918-b7b7-fd8339ead484",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.SurveyID }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Team C",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "61774ada-3d49-466b-8368-0fe3fc925fc0",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.SurveyID }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "aaaaec91-21cf-423e-b929-d89bea4a8c80",
      "name": "满意度值2",
      "type": "n8n-nodes-base.switch",
      "position": [
        432,
        -16
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Great!",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4e31a572-8a68-4138-8e4a-a679e95f0128",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Happiness }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "OK",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "9ad6714e-f826-4179-9107-235e2c10bb84",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Happiness }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Bad",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "10bb8ec7-15b9-415e-9814-4b7d9e65d113",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Happiness }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "ba021d5d-cc8a-4ae2-8dd1-12a41786286c",
      "name": "发送至团队负责人",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        1072,
        112
      ],
      "webhookId": "abcd123-a1b2-3456-abcd-ab12cd34e",
      "parameters": {
        "chatId": {
          "__rl": true,
          "mode": "id",
          "value": "19:5e361485-4200-4d4b-9b35-015bfc82fa91_e2fbc338-609e-43bc-a98a-6db1b2086a27@unq.gbl.spaces"
        },
        "message": "=We’ve received feedback for <b>Support</b>!</br>\n{{ $json.Respondent }} thinks our service was <b>{{ $json.Happiness }}</b> and says \"{{ $json['Long Answer'] }}\" ",
        "options": {},
        "resource": "chatMessage"
      },
      "typeVersion": 2
    },
    {
      "id": "e921ba32-6a36-46e6-b4ee-943d6bf3e278",
      "name": "发送至团队负责人1",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        1072,
        -400
      ],
      "webhookId": "abcd123-a1b2-3456-abcd-ab12cd34e",
      "parameters": {
        "chatId": {
          "__rl": true,
          "mode": "id",
          "value": "19:5e361485-4200-4d4b-9b35-015bfc82fa91_e2fbc338-609e-43bc-a98a-6db1b2086a27@unq.gbl.spaces"
        },
        "message": "=We’ve got some feedback!\n{{ $json.Respondent }} thinks we are <b>{{ $json.Happiness }}</b> ",
        "options": {},
        "resource": "chatMessage"
      },
      "typeVersion": 2
    },
    {
      "id": "79831865-3c1b-4791-bc9f-c243797a6fbd",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3008,
        -752
      ],
      "parameters": {
        "width": 720,
        "height": 1392,
        "content": "## Nicereply 反馈路由器直接到 MS Teams 您的团队"
      },
      "typeVersion": 1
    },
    {
      "id": "ae4fa0af-348e-401d-a928-2e6a50ad92eb",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2256,
        -752
      ],
      "parameters": {
        "color": 7,
        "width": 2336,
        "height": 1040,
        "content": "## 每日反馈处理工作流"
      },
      "typeVersion": 1
    },
    {
      "id": "2cb55117-1c45-4377-ac8b-98607d2e0485",
      "name": "根据 Nicereply 更改调查 ID",
      "type": "n8n-nodes-base.aiTransform",
      "position": [
        -1408,
        -112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cfa2795b-9744-4326-9d16-5e5b01d2645d",
      "name": "更改满意度值",
      "type": "n8n-nodes-base.aiTransform",
      "position": [
        -800,
        -112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "543260e1-f905-4714-bfb7-0e42af4f1d58",
      "name": "将空受访者设置为\"未知客户\"",
      "type": "n8n-nodes-base.code",
      "position": [
        -1008,
        -112
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\nconst updatedItems = items.map((item) => {\n  if (item?.json?.Respondent === null) {\n    item.json.Respondent = \"Unknown Client\";\n  }\n  return item;\n});\nreturn updatedItems;"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5032f855-653f-4cf0-98d3-dd25647fb843",
  "connections": {
    "Filter": {
      "main": [
        [
          {
            "node": "Set Empty Respondent to \"Unknown Client\"",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Edit Feedbacks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Feedback": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Feedbacks": {
      "main": [
        [
          {
            "node": "Change survey ID according Nicereply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Happiness Value": {
      "main": [
        [
          {
            "node": "Send to Support",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to Team Lead1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to Team Lead1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Without Comment": {
      "main": [
        [
          {
            "node": "Switch - Type of Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Switch - Type of Team1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Happiness Value2": {
      "main": [
        [
          {
            "node": "Send to Support1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to Team Lead",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to Team Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch - Type of Team": {
      "main": [
        [
          {
            "node": "Happiness Value",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Change happiness value": {
      "main": [
        [
          {
            "node": "Without Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch - Type of Team1": {
      "main": [
        [
          {
            "node": "Happiness Value2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Change survey ID according Nicereply": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Empty Respondent to \"Unknown Client\"": {
      "main": [
        [
          {
            "node": "Change happiness value",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Easy8.ai

Easy8.ai

@easy8ai

We guide B2B companies to use AI agents & automations with ease. Powered by Easy Software & n8n.

外部链接
在 n8n.io 查看

分享此工作流