8
n8n 中文网amn8n.com

N8N 可定制品牌聊天框

中级

这是一个Support Chatbot, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 Webhook, Agent, RespondToWebhook, LmChatDeepSeek, MemoryBufferWindow 等节点。 部署基于 DeepSeek 的 AI 网站聊天机器人,支持自定义品牌

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "xvm6EO9Wn6VnNpEi",
  "meta": {
    "instanceId": "50631c03cbd88440965b74e5a58aada5437cbc43e90372b516e36154908ad374",
    "templateCredsSetupCompleted": true
  },
  "name": "N8N 可定制品牌聊天框",
  "tags": [],
  "nodes": [
    {
      "id": "e9dd1163-099f-4939-996d-b4c711f6b3fd",
      "name": "Webhook (POST)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -576,
        32
      ],
      "webhookId": "1a05e652-773a-40f2-ae60-92a875111c68",
      "parameters": {
        "path": "brand-bot",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    },
    {
      "id": "9ae0e1e1-536c-42e8-aff2-e2e5e7d03772",
      "name": "响应 Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        48,
        32
      ],
      "parameters": {
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Content-Type",
                "value": "application/json"
              },
              {
                "name": "Access-Control-Allow-Origin",
                "value": "*"
              },
              {
                "name": "Access-Control-Allow-Headers",
                "value": "Content-Type, x-api-key"
              },
              {
                "name": "Access-Control-Allow-Methods",
                "value": "POST, OPTIONS"
              }
            ]
          }
        }
      },
      "typeVersion": 1
    },
    {
      "id": "38c02528-87b3-43fd-b30b-e83c4b745df4",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -352,
        32
      ],
      "parameters": {
        "text": "={{ $json.body.message }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.1
    },
    {
      "id": "f41c4f4f-f24b-4625-8499-bd087a51e404",
      "name": "DeepSeek 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        -320,
        256
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "deepSeekApi": {
          "id": "Cbb13Z94ucK9d2bf",
          "name": "DeepSeek account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b0894788-2696-47d4-9305-5b44ff83b2f8",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -192,
        256
      ],
      "parameters": {
        "sessionKey": "={{ $('Webhook (POST)').item.json.body.sessionId }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "94fe64e1-fc32-4005-931b-b452f81252c7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -496
      ],
      "parameters": {
        "color": 5,
        "width": 864,
        "height": 480,
        "content": "[![N8N 可定制品牌聊天框](https://omerfayyaz.com/n8n-brandable-chatbox/n8n-brandable-chatbox-copy.jpg)](https://omerfayyaz.com/n8n-brandable-chatbox/index.html)"
      },
      "typeVersion": 1
    },
    {
      "id": "638705ab-22a1-419a-b450-b8d5609bcfa1",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        -496
      ],
      "parameters": {
        "width": 608,
        "height": 480,
        "content": "## N8N 可定制品牌聊天框"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b257a55e-a8ea-416a-90e2-a89782e63590",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Webhook (POST)": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客服机器人, 多模态 AI

需要付费吗?

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

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

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

作者
外部链接
在 n8n.io 查看

分享此工作流