8
n8n 中文网amn8n.com

在n8n聊天机器人中导入Flowise多智能体聊天流并进行品牌定制

中级

这是一个Engineering, AI领域的自动化工作流,包含 7 个节点。主要使用 Set, HttpRequest, ChatTrigger 等节点,结合人工智能技术实现智能自动化。 使用Flowise多智能体聊天流为网站创建品牌化AI聊天机器人

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "IlTvU5j9eLTYb06I",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
    "templateCredsSetupCompleted": true
  },
  "name": "在 n8n Chatbot 中导入 Flowise 多智能体聊天流并进行品牌定制",
  "tags": [],
  "nodes": [
    {
      "id": "4eebb2dd-0879-4ee3-aa07-f5bc180f3afd",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -720,
        0
      ],
      "webhookId": "8465c3be-42ca-4489-8dde-815812206e61",
      "parameters": {
        "mode": "webhook",
        "public": true,
        "options": {
          "allowedOrigins": "*"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "cdd4781a-fb3a-492d-80a4-d75841dd458c",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -280,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "6a50a699-9598-452a-bc38-a87e2be9084c",
              "name": "output",
              "type": "string",
              "value": "={{ $json.text }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f63fd39c-014b-428d-81a5-f7a675dbfeac",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -960
      ],
      "parameters": {
        "color": 6,
        "width": 800,
        "height": 220,
        "content": "### 在您的网站上启用 n8n CDN"
      },
      "typeVersion": 1
    },
    {
      "id": "209a551f-cb0e-42ae-a53d-78a1e2d96640",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -960
      ],
      "parameters": {
        "color": 3,
        "width": 720,
        "height": 780,
        "content": "## Flowise"
      },
      "typeVersion": 1
    },
    {
      "id": "214da305-e6d2-4a1b-9ebf-572f122ba219",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -720
      ],
      "parameters": {
        "color": 6,
        "width": 800,
        "height": 540,
        "content": "### 自定义 n8n Chatbot"
      },
      "typeVersion": 1
    },
    {
      "id": "a31c4b87-43e4-4aa4-a5c3-8b84f7aab84f",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -60
      ],
      "parameters": {
        "height": 220,
        "content": "设置 FLOWISE_URL 和 FLOW_ID"
      },
      "typeVersion": 1
    },
    {
      "id": "14e6f14f-c7a8-4969-bc08-152c8f2f4b63",
      "name": "Flowise",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -500,
        0
      ],
      "parameters": {
        "url": "https://FLOWISEURL/api/v1/prediction/FLOWISE_ID",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"question\": \"{{ $json.chatInput }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "OzvOPMztvvv1Duex",
          "name": "FLowise API"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "054d4347-07c9-4c18-87e6-83fc08adeee9",
  "connections": {
    "Flowise": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Flowise",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 工程, 人工智能

需要付费吗?

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

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

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

作者

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza

外部链接
在 n8n.io 查看

分享此工作流