Skip to content

聊天中心(Chat Hub)#

概述(Overview)#

Chat Hub 是一个集中式的 AI 聊天界面,你可以在这里访问多种 AI 模型,与 n8n 代理交互,并创建你自己的代理。Chat Hub 还引入了聊天用户(Chat user)这一角色,允许用户在不访问 n8n 工作流的情况下与聊天界面互动。

🌐 Chat Hub is a centralized AI chat interface where you can access multiple AI models, interact with n8n agents, and create your own agents. Chat Hub also introduces Chat user, a role that lets users interact with the chat interface without accessing n8n workflows.

如何使用(How to use)#

要使用 Chat Hub,请在导航栏中找到 聊天 选项,选择一个模型,然后开始对话。

🌐 To use Chat Hub, find the Chat option in the navigation bar, select a model, and start a conversation.

创建简单的个人代理(Creating simple personal agents)#

为了让人工智能在简单、重复的任务中更加可靠,你可以创建带有自定义指令的自定义代理。要创建一个简单的个人代理:

🌐 To make AI more reliable for simple, repetitive tasks, you can create Custom Agents with custom instructions. To create a simple personal agent:

  1. 点击 个人代理 然后点击 +新建代理
  2. 定义名称、描述、系统提示、首选模型以及工具访问权限。
  3. 选择 保存

创建完成后,你可以从模型选择器中选择个人代理。

🌐 Once created, you can select the personal agent from the model selector.

使用 n8n 工作流代理(Using n8n workflows agents)#

对于更复杂的场景,可以使用 n8n 工作流代理(由你或你的同事构建)将你的工作流在 Chat Hub 中提供。目前,你只能使用在 Agent 节点中启用了流式传输的 聊天触发器 的工作流。要使你的工作流可用,请执行以下操作:

🌐 For more complex scenarios, use n8n workflow agents (built by you or your colleagues) to make your workflows available in Chat Hub. Right now, you can only use workflows that have a Chat Trigger with streaming enabled in the Agent node. To make your workflow available:

  1. 打开你选择的工作流程。
  2. 打开 聊天触发器

    /// 注意 仅最新版本的聊天触发器有效。要获取最新的聊天触发器版本,请删除现有的聊天触发器并插入一个新的。 ///

  3. 启用 在 n8n 聊天中可用 选项,并设置个人代理的名称和描述。

  4. 确保你的 AI 代理节点已启用 启用流式传输 选项。
  5. 激活你的工作流程。

定义后,你可以在 Chat Hub 的模型选择器中选择你的工作流程。你的同事需要通过共享工作流程或将其包含在他们至少拥有查看权限的项目中来访问该工作流程。

🌐 Once defined, you can select your workflow from the model selector in Chat Hub. Your colleagues need access to the workflow by sharing it or having it in a project where they have at least viewer access.

管理权限(Managing permissions)#

你可以通过 n8n 的角色系统定义哪些用户可以执行哪些操作。Chat Hub 还为你提供了更多控制谁使用什么的方式。

🌐 You can define which users can perform which actions through n8n's role system. Chat Hub also gives you more ways to control who uses what.

聊天用户角色(Chat user role)#

聊天用户是你组织中希望使用工作流程而不创建工作流程的人的一个角色。聊天用户默认只看到聊天界面,无法添加凭据或工作流程。

🌐 The Chat user is a role for people in your organization who want to use workflows without building them. Chat users only see the chat interface and can't add credentials or workflows by default.

聊天用户仅在入门、专业、商务和企业计划中可用。

🌐 Chat users are only available on Starter, Pro, Business and Enterprise plans.

提供商设置(Provider settings)#

管理员可以控制用户在聊天中心可以访问的模型和提供商。这包括:

🌐 Admins can control which models and providers users can access in Chat Hub. This includes:

  • 启用或禁用特定模型和提供商
  • 防止用户添加自己的模型
  • 为每个提供商设置默认凭据
  • 通过 n8n 的权限系统限制用户添加自己的凭据

要管理这些设置,请前往 设置 > 聊天 并编辑提供商。

🌐 To manage these settings, go to Settings > Chat and edit the providers.

考虑因素和限制(Considerations and limitations)#

  1. 在创建简单的个人代理时,你无法添加文件知识。
  2. 工具选择仅限于少数几种选项。
  3. 只有包含 聊天触发节点 和支持流式的 AI 代理节点 的工作流才能作为工作流代理使用。你的工作流必须符合特定要求。