UiPath Documentation
agents
latest
false
智能体用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

部署对话智能体

将对话智能体发布并部署到 Orchestrator,以便在设计和测试完成后供用户使用。

设计和测试对话智能体后,您需要将其发布和部署,以供用户使用。发布和部署是两个独立的步骤:

  • 发布:将您的智能体封装为解决方案,然后上传到 Orchestrator。
  • 部署:提供所需的 Runtime 资源,确保已发布的解决方案可以执行。

Orchestrator 文件夹要求

在发布之前,确保您的目标 Orchestrator 文件夹已配置所需的资源。

资源用途必填
Serverless Robot 计算机模板执行对话智能体和特定工具调用(跨平台 RPA 自动化)始终
Unattended Robot 帐户匿名使用智能体时提供执行身份如果通过使用匿名访问权限的通道访问智能体
虚拟机执行基于 Windows 的 RPA 自动化如果使用 Windows 自动化
共享连接在没有可用的用户配置的个人连接时,提供对 Integration Service 连接器的访问权限如果工具使用连接器
重要提示:

如果您的智能体无法在实例管理中启动,请验证以下情况:

  • 您位于智能体解决方案所在的正确租户中。
  • 已将 Serverless Robot 计算机模板分配给解决方案文件夹。
  • 如果使用匿名访问频道,则会将一个 Unattended Robot 帐户分配给解决方案文件夹。

执行身份

  • 当通过使用用户 UiPath 帐户进行身份验证的部署通道访问对话智能体时,对话智能体将以用户的身份运行。当智能体调用属于 Orchestrator 流程的工具时,这些工具也会以用户的身份运行。
  • 当使用具有匿名访问权限的部署通道时,对话智能体会以文件夹中的无人值守机器人帐户的身份运行。

发布

发布可以将您的对话智能体封装为解决方案,然后上传到 Orchestrator。

发布步骤

  1. 在 Studio Web 中,打开您的对话智能体。
  2. 在顶部工具栏中选择“发布”。
  3. 选择目标 Orchestrator 订阅源(我们建议选择 Orchestrator 租户订阅源)。
  4. (可选)输入更改日志说明,描述您所做的更改。
  5. 选择“发布”

有关详细的发布选项,请参阅“发布项目”。

部署

发布后,您需要部署解决方案,确保其可以执行。部署可以将发布的解决方案与您的 Orchestrator 文件夹中的 Runtime 资源关联。

部署步骤

  1. 导航到您的 Orchestrator。
  2. 找到已发布的解决方案。
  3. 部署(或升级)解决方案,确保其有权访问所需的机器人帐户和连接。

部署后,智能体将显示在实例管理中,并可通过已配置的渠道使用。

有关详细的部署选项,请参阅“发布项目”。

连接管理

The agent needs access to the same connections used at design time. Conversational agents support two types of connections: shared connections configured by admins, and personal connections configured by individual users.

共享连接

Shared connections are configured by admins in an Orchestrator folder and are available to all users of the agent. To set up shared connections:

  1. 在共享 Orchestrator 文件夹中创建 Integration Service 连接。
  2. 在设计和调试期间使用这些共享连接。
  3. 在同一共享文件夹中将解决方案作为子文件夹进行发布。

此设置确保解决方案自动继承父文件夹的连接。

个人连接

Personal connections allow individual users to select which Integration Service connections the agent uses on their behalf. This is useful when users need the agent to act with their own credentials — for example, sending emails from their own account or accessing their personal calendar.

Enabling personal connections

For personal connections to work, two settings must be configured on each tool process in Orchestrator. For general information about execution settings, see Linking execution settings.

  1. In Orchestrator, navigate to the folder where the agent solution is deployed and open the Processes tab.
  2. Select Edit on the tool process that uses a connector (for example, an API workflow that sends emails).
  3. In the process configuration, set the Account to Inherit parent job identity. This allows the tool to run under the user's identity, which is required for the tool to access the user's personal connections.
  4. Set the connector's connection to Configurable by users. This allows users to select their own connections for the connector at runtime.

重要提示:

Both settings are required. Without either setting, personal connections are not visible to users and the tool may return an error at runtime.

用户体验

When personal connections are enabled for an agent:

  • Users can open the agent's Settings panel and select the Available Connections tab to view and manage their connections.
  • For each required connector (for example, Slack, Outlook, or Salesforce), users can select one of their available connections or create a new one.
  • By default, the agent auto-selects a matching connection from the user's personal workspace for the connector that the agent and other tools in the folder use.

The agent attempts to auto-configure connections from the user's personal workspace. If the user has a matching connection for a connector in their personal workspace, the agent uses it automatically — making setup seamless and typically a one-time experience. If the auto-configured connection fails or no matching connection is found, the user is prompted to select or create a new one.

If a user has not configured a personal connection for a connector, the agent falls back to the agent's default connection. Selected personal connections take precedence over shared connections and are always used when present. When using external applications, only connections from the user's personal workspace are available — shared folder connections are not displayed.

备注:

Users can select and manage personal connections only in channels that support user-profile settings (see Feature availability by channel). Once configured, personal connections are used by the agent across all channels.

To learn how to design an agent for personal connections, see Connection considerations in the design guide.

部署渠道

发布后,用户可以通过多个渠道访问您的对话智能体。每个渠道都提供不同的功能,适合不同的用例。

渠道概述

频道理想适用于用户身份验证
实例管理管理员测试,内部用户UiPath 帐户
Autopilot for Everyone内部生产力中心UiPath 帐户
Microsoft Teams团队协作Microsoft 帐户和 UiPath 帐户
Slack团队协作Slack 帐户和 UiPath 帐户
iFrame 嵌入第三方应用程序和 UiPath AppsUiPath 帐户或匿名帐户
UiPath TypeScript SDK自定义构建的应用程序取决于您的应用程序

不同渠道的功能可用性

并非所有聊天功能在每个渠道中都可用。实例管理提供完整的功能集;其他渠道可能存在限制。

功能实例管理Autopilot for EveryoneMicrosoft TeamsSlackIframeTypeScript SDK*
发起新聊天
聊天记录
删除聊天会话
用户个人资料设置
个人连接
启动提示词
文件上传
对话输入
工具调用确认
引文
HTML 预览
复制响应
反馈(赞)

*所有 SDK 功能都可以由开发者在其自定义实现中进行配置。

选择渠道

选择部署渠道时,请考虑这些因素:

拥有 UiPath 访问权限的内部用户
  • 对管理员测试和超级用户使用实例管理
  • Autopilot for Everyone 作为所有智能体的中央枢纽。
团队协作
  • 使用 TeamsSlack 将智能体集成到团队已有的工作平台中。
自定义应用程序
  • 对第三方应用程序或 UiPath Apps 使用 iFrame 嵌入
外部或匿名用户
  • iFrame 嵌入与匿名身份验证服务器配合使用。
自定义应用程序
  • 使用 UiPath TypeScript SDK,将对话 Agents 集成到您自己的网页应用程序或门户中。

聊天会话行为

对话智能体可保留持久会话:

  • 每个对话都作为专用 Orchestrator 流程运行(在非活动状态下最多可运行 8 小时)。
  • 会话保持活跃状态,以便即时启动响应。
  • 空闲会话消耗的资源极少。

在外部平台使用 UiPath 工具

您可以使用 MCP(模型上下文协议)工具将 UiPath 功能(自动化、工作流、文档处理)公开给外部聊天平台,例如 ChatGPT 和 Microsoft Copilot Studio。这种方法使用直接工具调用,而非对话智能体。

有关 MCP 集成的详细信息,请参阅“MCP 服务器”。

后续步骤

选择渠道,了解设置和配置:

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新