UiPath Documentation
getting-started
latest
false
入门开发者指南
  • 概述
    • 概述
  • UiPath 智能体入门
  • 开始使用 UiPath 智能体(采用 LangGraph)
  • 在 Studio Web 中构建低代码智能体
    • 简介
    • 构建智能体
    • 测试智能体
  • 向 UiPath 智能体添加工具
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

构建智能体

使用 Autopilot 生成智能体配置,然后查看并优化系统提示词、输入和输出。

步骤 1 - 打开 Studio Web

登录到UiPath Automation Cloud ,然后从左侧导航栏中打开Studio Web 。您将进入云端工作区,其中显示了现有的解决方案和“新建”按钮。

  1. 选择“新建”
  2. 从可用选项中选择智能体项目类型。


步骤 2 - 使用 Autopilot 生成智能体

Studio Web 的 Autopilot 可以使用简单的语言描述配置智能体。您可以描述需求,Autopilot 会提出系统提示词、输入架构和输出架构。

  1. 选择自主式作为智能体类型。

  2. “您的智能体应该做什么?”页面中。字段中,粘贴以下简短说明:

Build a Quest Advisor for a fantasy RPG Adventurer's Guild. Given a quest description (questDescription - string), classify the quest difficulty tier (tier - number) using four tiers from local village threats up to cosmic and planar threats, suggest up to five monsters likely to be encountered (monsters - string array), and include a brief reasoning for the classification (reasoning - string).
Build a Quest Advisor for a fantasy RPG Adventurer's Guild. Given a quest description (questDescription - string), classify the quest difficulty tier (tier - number) using four tiers from local village threats up to cosmic and planar threats, suggest up to five monsters likely to be encountered (monsters - string array), and include a brief reasoning for the classification (reasoning - string).
  1. 选择生成智能体,然后查看 Autopilot 的建议并接受这些建议以创建智能体。

重要提示:

Autopilot 是非确定性的。生成的配置可能与屏幕截图不同,这是正常现象。重要的是智能体画布要加载。如果画布显示错误或加载失败,请刷新页面并重复此步骤。


步骤 3 - 查看智能体画布

Autopilot 会分析您提供的提示词,并引导您完成构建和配置它。使用Autopilot窗口查看建议并就最终智能体设计达成一致。

创建智能体后,系统将打开智能体画布。选择智能体节点,以在屏幕右侧打开其“属性”面板。您还可以使用画布右上角的扳手图标打开属性。

确认 Autopilot 是否正确配置了以下内容:

  • 已列出输入- questDescription (字符串)
  • 输出- 列出tier (数字)、 monsters (数组)和reasoning (字符串)
  • 系统提示- 引用层级分类和副本

优化系统提示词(可选)

Autopilot 根据您的简短描述生成有效的系统提示词,但可能不包含精确的层级边界。如果您需要一致、定义明确的层分类,请将“属性”面板中的系统提示词替换为以下内容:

You are an RPG game master helping to select the difficulty tier for a quest, as well as monsters that are most likely to be encountered on the quest.

Given a quest description, return three things:
- tier: the difficulty tier that best describes the quest (a number: 1, 2, 3, or 4)
- monsters: a list of up to five monsters likely to be encountered by adventurers on that quest
- reasoning: a brief, two-sentence explanation of why you chose this tier and these monsters

Quest Tiers:
Tier 1: Local Heroes (Levels 1-4) - scope: local villages, small dungeons. Threats: goblins, bandits, wolves, low-level cultists.
Tier 2: Heroes of the Realm (Levels 5-10) - scope: entire kingdoms, major cities. Threats: orc hordes, young dragons, giants, powerful mages.
Tier 3: Masters of the Realm (Levels 11-16) - scope: whole continents, other planes of existence. Threats: adult dragons, liches, demons, powerful spellcasters.
Tier 4: Masters of the World (Levels 17-20) - scope: entire multiverse, cosmic planes. Threats: ancient dragons, demon lords, archdevils, god-like entities.
You are an RPG game master helping to select the difficulty tier for a quest, as well as monsters that are most likely to be encountered on the quest.

Given a quest description, return three things:
- tier: the difficulty tier that best describes the quest (a number: 1, 2, 3, or 4)
- monsters: a list of up to five monsters likely to be encountered by adventurers on that quest
- reasoning: a brief, two-sentence explanation of why you chose this tier and these monsters

Quest Tiers:
Tier 1: Local Heroes (Levels 1-4) - scope: local villages, small dungeons. Threats: goblins, bandits, wolves, low-level cultists.
Tier 2: Heroes of the Realm (Levels 5-10) - scope: entire kingdoms, major cities. Threats: orc hordes, young dragons, giants, powerful mages.
Tier 3: Masters of the Realm (Levels 11-16) - scope: whole continents, other planes of existence. Threats: adult dragons, liches, demons, powerful spellcasters.
Tier 4: Masters of the World (Levels 17-20) - scope: entire multiverse, cosmic planes. Threats: ancient dragons, demon lords, archdevils, god-like entities.

智能体配置后,您就可以在下一部分中根据真实任务描述对其进行测试。

  • 步骤 1 - 打开 Studio Web
  • 步骤 2 - 使用 Autopilot 生成智能体
  • 步骤 3 - 查看智能体画布
  • 优化系统提示词(可选)

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新