8
n8n 中文网amn8n.com

从Easy Redmine自动发送帮助台工单提醒到Microsoft Teams

中级

这是一个Ticket Management, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Set, Webhook, MicrosoftTeams, Agent, LmChatOpenAi 等节点。 从Easy Redmine到Teams的智能帮助台工单提醒,含GPT-4摘要

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "f0my04pVcHmlkRaA",
  "meta": {
    "instanceId": "ccf4e500c5536799e0925f03390f0fd338e2b5a5bc862f6a57b5552acfdf3861",
    "templateCredsSetupCompleted": true
  },
  "name": "从Easy Redmine自动发送帮助台工单提醒到Microsoft Teams",
  "tags": [],
  "nodes": [
    {
      "id": "3fd3ecf0-69fa-497f-8aed-a595de90fa40",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1860,
        980
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "abcd134abcd1234",
          "name": "OpenAI account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ec36d331-a043-44b1-9c21-45f5e8348d55",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        540
      ],
      "parameters": {
        "color": 7,
        "width": 1980,
        "height": 660,
        "content": "## 获取Easy Redmine中的问题并将相关信息发送到MS Teams频道"
      },
      "typeVersion": 1
    },
    {
      "id": "2827963b-7463-42b6-ba1b-e37bb7cd619a",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2760,
        540
      ],
      "parameters": {
        "width": 540,
        "height": 480,
        "content": "## 最终输出:"
      },
      "typeVersion": 1
    },
    {
      "id": "a949a591-36d1-4a7e-8ded-e6b6d1a9dc6b",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        480
      ],
      "parameters": {
        "width": 700,
        "height": 1320,
        "content": "## 帮助台工单通知到MS Teams"
      },
      "typeVersion": 1
    },
    {
      "id": "049a4a70-c6fa-418e-9107-943997791412",
      "name": "MS Teams消息到支持频道",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        2280,
        800
      ],
      "webhookId": "e9c4b874-bc78-431b-b42c-001d3c0c7747",
      "parameters": {
        "teamId": {
          "__rl": true,
          "mode": "list",
          "value": "832f57c2-de38-4c98-8915-c41e0be4a64c",
          "cachedResultName": "Support Team"
        },
        "message": "=<b>❗️New ticket was created:</b>\n\n<br><br><b>Subject: </b>{{ $('Get a new ticket by ID').item.json.issue.subject }}\n<br><b><a href=\"{{ $('Pick Description & Create URL to issue').item.json['url link to issue'] }}\">Ticket ID:</b> {{ $('Get a new ticket by ID').item.json.issue.id }}</a>\n<br><b>Priority:</b> {{ $('Get a new ticket by ID').item.json.issue.priority.name }}\n<br><b>AI summary:</b> {{ $json.output }}\n\n\n\n",
        "options": {},
        "resource": "channelMessage",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "19:HQ7P4c0XwE-ztKDfUGKjE1Tgoiu6DXtmrAhetiIeY9A1@thread.tacv2",
          "cachedResultUrl": "https://teams.cloud.microsoft/l/channel/19%3AHQ7P4c0XwE-ztKDfUGKjE1Tgoiu6DXtmrAhetiIeY9A1%40thread.tacv2/Easy8%20Demo?groupId=832f57c2-de38-4c98-8915-c41e0be4a64c&tenantId=eb70cc06-ad73-44a6-ac58-5550fce11ed1&allowXTenantAccess=True&ngc=True",
          "cachedResultName": "General"
        },
        "contentType": "html"
      },
      "credentials": {
        "microsoftTeamsOAuth2Api": {
          "id": "abcd987654abcd",
          "name": "MS Teams"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a75a5da9-f772-490e-8edb-622c72025c40",
      "name": "按ID获取新工单",
      "type": "@easysoftware/n8n-nodes-easy-redmine.easyRedmine",
      "position": [
        1340,
        800
      ],
      "parameters": {
        "id": "={{ $json.body.issue.id }}",
        "operation": "get-one"
      },
      "credentials": {
        "easyRedmineApi": {
          "id": "abcd456123abcd",
          "name": "EasyRedmine"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5b605790-626c-47ea-aa25-aafcd23f8e47",
      "name": "捕获Easy Webhook - 新问题已创建",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1020,
        800
      ],
      "webhookId": "aabb1122-3344-5cd6-78ef-912345abcd",
      "parameters": {
        "path": "cc5d8044-9921-4b50-8ad4-9a2f1b6718ec",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "ee472d30-6b66-4f3b-a311-8aa285e2bc11",
      "name": "选择描述并创建问题URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1620,
        800
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "943b3727-1d25-4469-adf6-1be031f417eb",
              "name": "description",
              "type": "string",
              "value": "={{ $json.issue.description }}"
            },
            {
              "id": "ed4bba4d-d816-4255-8562-4889c8fcbe1c",
              "name": "url link to issue",
              "type": "string",
              "value": "=https://easyredmine-application.com/issues/{{ $json.issue.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "8f5c9110-7303-4076-9fd6-6eb97d7b8137",
      "name": "AI Agent - 描述摘要",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1860,
        800
      ],
      "parameters": {
        "text": "={{ $json.description }}",
        "options": {
          "systemMessage": "=You are a helpful assistant who summarise read descriptions of the task provided and created summary of the task description in form:\nMain issue: \nPriority of the issue:\nRecommend possible solution:\nWhen answering the \"recommended possible solution\" act as an IT expert.\n\nReturn response in HTML structure."
        },
        "promptType": "define"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "efd2260a-2e27-4e0b-a38a-84c83cb704db",
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent - Description Summary",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get a new ticket by ID": {
      "main": [
        [
          {
            "node": "Pick Description & Create URL to issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent - Description Summary": {
      "main": [
        [
          {
            "node": "MS Teams message to Support channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Catch Easy Webhook - New Issue Created": {
      "main": [
        [
          {
            "node": "Get a new ticket by ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Description & Create URL to issue": {
      "main": [
        [
          {
            "node": "AI Agent - Description Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 工单管理, 多模态 AI

需要付费吗?

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

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

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

作者
Easy8.ai

Easy8.ai

@easy8ai

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

外部链接
在 n8n.io 查看

分享此工作流