UiPath Documentation
coding-agents
2026.10
false
UiPath for Coding Agents user guide

RPA workflows

RPA workflows with a coding agent: briefing, UI Automation, and human review.

Describe repetitive, rule-based work, and your coding agent produces a runnable Robotic Process Automation (RPA) workflow.

What RPA is good for​

Well-defined, deterministic work, especially without a usable API:

  • Files and spreadsheets
  • Data moves between systems
  • API calls
  • Desktop, web, or virtual application interfaces

For judgment work, use an agent. For a step in a longer process, use a flow in Maestro. Worked examples: RPA recipes.

What you can ask for​

  • Build from a description, a process document, or a template such as the Robotic Enterprise Framework (REFramework).
  • Refactor or extend an existing workflow.
  • Work in legacy projects, within their constraints.
  • Generate and run test cases with assertions.
  • Review an automation without changing anything.
  • Debug a failing workflow and propose a fix.
  • Publish to Orchestrator, or extract a reusable library.

What to include in a request​

The steps in order, the systems involved, typed inputs and outputs, and the screens or data touched.

Remove real customer data from process documents first. See Working effectively.

Choosing low-code or coded​

TypeFilesUse for
Low-code.xamlThe default. Reviewable, auditable, widest activity coverage.
Coded.cs (C#)Logic-heavy components: data transforms, parsing, custom types.
  • You can mix both in one project. Choose up front. Without direction, the agent defaults to low-code.
  • A Portable project whose workflows are all .xaml with VB expressions can be edited in Studio Web, delivered as part of a solution.

Driving applications with UI Automation​

For systems with no API, the agent drives the interface with UiPath UI Automation. Use an API where one exists.

How it captures the interface​

At design time, the agent captures the screen and builds the steps. For desktop applications it uses screenshots and the element tree. Elements are stored as reusable targets in an Object Repository.

Staying resilient​

  • Selector healing: adapts a target when the interface shifts.
  • Diagnosis: explains a failure from logs, recordings, and screenshots.
  • Screenplay: AI-powered computer vision. Runtime fallback for unpredictable screens.

When there is no live application​

The agent marks each interaction for a developer to capture in Studio. Either way, treat generated selectors as drafts and confirm them against the real application.

Conventions for your context file​

State RPA house rules once in a context file. Examples:

  • Modern design activities over the classic set.
  • UI activities inside a Use Application/Browser scope.
  • Native activities before Invoke Code.
  • Existing configuration files and recorded workflows left intact.

Strengths and limits​

Review these more closely, where a generic fallback can creep in:

  • Fragile selectors
  • Bespoke enterprise connectors
  • Unusual activity choices

Prompts for RPA work​

  • Create a new RPA project from the REFramework template called BankStatementReconciliation.
  • Create an RPA workflow that saves attachments from the latest Outlook email with subject "Invoice" to ./inbox/.
  • Add a Try Catch around the Submit Order step that logs business exceptions and sets the transaction to Failed.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated