8
n8n 中文网amn8n.com

将AI连接至Kommo

高级

这是一个Support, AI领域的自动化工作流,包含 25 个节点。主要使用 If, Set, Switch, Webhook, HttpRequest 等节点,结合人工智能技术实现智能自动化。 连接AI至Kommo中的任意聊天

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "V2Kh7IOk04hNteH9",
  "meta": {
    "instanceId": "17f738ee24605f0c427d79d36620a2177b9dffa96b085bf0d20a0125bb5d66b4",
    "templateCredsSetupCompleted": true
  },
  "name": "将 AI 连接至 Kommo",
  "tags": [],
  "nodes": [
    {
      "id": "510e43ca-7ae7-4212-94d7-0ea880fe8366",
      "name": "是否为语音",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        -140
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f9b107c0-b283-4b1a-9e71-996fa331d2c2",
      "name": "获取语音",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1960,
        -180
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "99ac5b7d-a31b-49fa-afe4-ace35dcad7c5",
      "name": "获取实体",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        -140
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "73d03fdd-82ce-4f56-abe6-4f5479ae25e7",
      "name": "ai",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2500,
        -120
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "4c4244da-fa83-4fef-8f06-8f6856786eca",
      "name": "模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2480,
        60
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "dcd9b4da-ff5c-42bf-9cc4-08fc2fdf19df",
      "name": "记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2580,
        60
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "662eab99-9341-43fb-9a41-cf2cf2c5f4fd",
      "name": "包含停止标签",
      "type": "n8n-nodes-base.switch",
      "position": [
        1520,
        -140
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "9c896b8b-d259-4747-8fff-27168f56ed4f",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7ba5c636-26c6-4b19-8e06-64063612b43c",
      "name": "语音转文字",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2140,
        -180
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "7e7a189c-571a-4e58-8150-a1dfeec3d1d0",
      "name": "设置文本",
      "type": "n8n-nodes-base.set",
      "position": [
        2340,
        -120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d8e951a6-1b69-4355-9f80-1445984869ba",
      "name": "获取令牌",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2840,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6a678a0b-f54f-4f48-bf2b-f5b5d557a402",
      "name": "接收消息",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3000,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9cd9b3f6-f6a1-4ada-bf75-708e41422f0a",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2800,
        -180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0808dbf6-dec5-46cb-93b2-6fe32997543b",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ae5267e9-1b79-4fc4-8ed6-2bfef0ab5208",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "00ee756a-e524-4643-9e3d-4f631937927c",
      "name": "新消息",
      "type": "n8n-nodes-base.webhook",
      "position": [
        920,
        -140
      ],
      "webhookId": "e923532a-db92-481a-8a89-486bc7d853d2",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e2529238-9812-4bdc-9830-683d11205abd",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1500,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9af6afc0-30e5-48c3-9ecd-78fd816fb102",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "faf33241-b218-4d2d-aabd-2e3156df85ed",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1b818418-71d3-4609-a4be-e9b5c31a27fd",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2500,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d692adb2-bb7b-4d73-9358-363e3a67bbc6",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2880,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c7a456fc-5265-48bd-9897-2c84b74a60f6",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c43e082a-d94b-458d-a508-7a567d00ad5c",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2500,
        -219
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "03c4a010-cafe-47b9-a24e-3434b11d6326",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2680,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "04e3f9b4-1202-4aa1-8ebc-0a39f74d1ac5",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        -460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2c7d15da-0b64-43a0-812f-7d3118f5fdc9",
  "connections": {
    "ai": {
      "main": [
        [
          {
            "node": "Get token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "model": {
      "ai_languageModel": [
        [
          {
            "node": "ai",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "memory": {
      "ai_memory": [
        [
          {
            "node": "ai",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "isVoice": {
      "main": [
        [
          {
            "node": "get voice",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "setText",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "setText": {
      "main": [
        [
          {
            "node": "ai",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get token": {
      "main": [
        [
          {
            "node": "Recieve message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get voice": {
      "main": [
        [
          {
            "node": "transcribe voice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_entity": {
      "main": [
        [
          {
            "node": "hasStopTag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "hasStopTag": {
      "main": [
        [
          {
            "node": "isVoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "new_message": {
      "main": [
        [
          {
            "node": "get_entity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recieve message": {
      "main": [
        []
      ]
    },
    "transcribe voice": {
      "main": [
        [
          {
            "node": "setText",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
yatolstoy

yatolstoy

@yatolstoy

Backend typescript developer. I specialize in integrations of amoCRM, Common, Telegram, AI

外部链接
在 n8n.io 查看

分享此工作流