UiPath Documentation
coding-agents
latest
false
UiPath for Coding Agents 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

有效工作

How to prompt, plan, and review when you work with a coding agent on UiPath projects.

Set the goal, watch the work, and approve anything that changes state.

Set up the session​

  • Give the agent the task's files, goals, and standards.
  • Name the UiPath skill, such as uipath-rpa, and confirm it loaded.
  • Start a fresh session per task.
  • Put repeated conventions in a context file.

Habits​

  • Review output before you rely on it.
  • Validate with the Workflow Analyzer (Analyze Project) and a local run.

提示​

  • The exact file or project, and its location.
  • Named inputs and outputs, with types.
  • The expected behavior.
  • Activities or packages to use and to avoid.
  • Existing dependencies.

Example: "create UploadInvoice.xaml that reads in_FilePath (String), uploads it to SharePoint, and returns out_Url (String)".

从 PDD 或 SDD 开始​

For a substantial automation, give the agent a Process Definition Document (PDD) or Solution Design Document (SDD). It can turn a PDD into an SDD and a build plan, then build piece by piece.

Remove real customer data from the document first.

Plan first​

Use your agent's plan mode, if it has one. Correct the approach, file layout, or order of work, then approve.

Iterate​

Check after each meaningful step.

The agent delivers once validation and the build report no errors. To also resolve warnings and confirm a local run, ask or add the rule to your context file.

迭代条件当以下情况时重新开始
You can name the fixThe agent loops on the same broken output
结构正确The structure is wrong
您只需一两次修复即可You are on your third or fourth fix

Stay in control​

  • Explicitly approve changes to shared systems, such as publishing or deploying to Orchestrator.
  • Keep secrets out of prompts. Store them as UiPath assets or in a credential store, referenced by name.
  • Keep real customer data out of prompts. Give the agent only the data structure.
  • Review every package change, and pin versions in project.json.

The agent acts under the UiPath identity of the uip session, with its permissions and audit trail. See Governance and trust.

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新