- 入门指南
- Studio Web 中的 UiPath 智能体
- UiPath 编码智能体
- 使用编码智能体构建
在智能体中配置升级设置,以便在发生业务异常时将决策转交给人工进行验证、审批或手动协助。
关于升级
作为开发者,您可能希望为您的智能体提供一种方法,使其能够在运行工具之前与人员一起验证业务用例详细信息,或者在遇到问题时请求人工帮助。流程中可能也有其他业务例外情况,例如您希望智能体让人员进行批准或做出其他类型的决策。
此时就需要进行升级。升级由 Action Center 中的 Action 应用程序提供支持,为开发者提供了在智能体执行中设计和配置人机回圈事件的工具。请参阅“使用 Action 应用程序创建智能体升级”快速入门指南。
配置升级
您可以针对智能体可能需要人工协助的不同情况创建多个升级。
使用属性面板添加和配置升级。
-
从您的可用资源中选择一个 Action 应用。您必须先将应用部署到您的租户。
-
添加提示词,帮助智能体了解何时使用升级。 此提示起触发条件的作用,为智能体指示适合进行升级的时间。
-
In the Assignments section, select the Assignment criteria to specify how the escalation is routed to a recipient:
- User: Assigns the escalation to a specific user in your organization. Every escalation from this agent goes to that one person.
- Workload: Assigns to the group member with the fewest pending tasks. Select a group, and each escalation is routed to whichever member has the lightest workload.
- All users in group: Assigns the task to all members of a selected group. Any group member can claim it.
- Round Robin: Distributes tasks across group members in rotation, spreading assignments evenly over time.
- LLM inferred: Lets the agent determine the recipient(s) at runtime. Write a prompt describing who should receive the escalation — the agent validates the inferred assignee(s) against your directory. Use this option when the right recipient depends on the context of each case. If no valid recipient can be determined, the task is created unassigned rather than sent to the wrong person. For guaranteed routing, use a fixed recipient or an input binding.
- Email or group name: Assigns to a specific email address or group name. Provide the recipient directly — typed in, pulled from an asset, or read from an input argument.
-
在“ 输入 ”部分中,定义智能体将传递给 Action 应用的字段和值。这与“操作架构”对应,即所选应用程序中的必填字段。 为每个字段添加描述,以帮助智能体了解应传递的值的类型。这些描述提高了智能体在提出升级时根据上下文推断和预填充值的能力。
-
在“ 结果行为 ”部分中,指定升级问题解决后智能体应如何处理每个结果。对于 Action 应用中定义的每个结果:
- 如果智能体应使用升级被分配者提供的输入继续流程,请选择“ 继续”。
- 如果智能体应在选择结果后立即终止,请选择“ 结束”。 通过此设置,您可以控制人为干预后智能体的自主性。
创建升级后,您可以在系统提示中对其进行引用。使用明确的说明,例如:“在使用 X 工具之前,务必提出人工确认升级,并包含您建议操作的详细信息”。
智能体不支持动作/模式属性的输入/输出参数类型。