- Getting Started
- Demo apps
- How To
- Notifications
- Using VB Expressions
- Designing your App
- Designing your app with Autopilot
- Using a text prompt to generate an app
- Using a PDF or image to generate an app
- Using an entity to generate an app
- Adding a page to your app
- Generating VB expressions using a text prompt
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Log Message
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Rule: Submit Action
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Leveraging Media in your app
- Leveraging Actions in your app
- Leveraging Connections in your apps
- Apps in Studio Web
- Application Lifecycle Management (ALM)
- UiPath First-Party Apps
- Basic Troubleshooting Guide

Apps User Guide
Generating VB expressions using a text prompt
linkPrerequisites
linkTo generate VB expressions using text prompts, your tenant must have sufficient Autopilot actions available.
To generate VB expressions using a text prompt in Autopilot, follow these steps:
- Go to the app where you want to add a VB expression.Note:
-
Referring to all controls within a container by the name of the container is not supported. If an expression depends on multiple controls, the prompt must include every control name.
Note:-
Autopilot cannot currently generate expressions of the return type ListSource. You should use Query Builder for complex entity-based expressions.
-
- Add a new control or select an existing control.
- In the Properties panel, select a condition where you wish to add the VB expression. Select the configuration button, then select Open expression editor. The expression editor opens.
- Select the Autopilot icon in the right-hand corner of the text box. The Autopilot window opens immediately. Write a text prompt describing the VB expression you wish to add.
When you write a text prompt describing the VB expression you want to add, Autopilot writes the generated VB expression and makes it available for use in the Expression editor text field.
Examples of Autopilot text prompts for VB expressions
linkHere are a few examples of useful prompts and their use cases.
Apps controls |
Intended functionality | Text prompt examples |
---|---|---|
Input controls |
Disables a Submit button if a field is empty. |
"If username and password are empty set to true" |
App variables |
Enables a button if an app variable called "item list" has a length greater than 10. | "If item list length is greater than 10" |
Rule outputs |
Retrieves a record ID from a process if the ID exists, or will print an error message if it does not. | "If process.recordId is present use that. Else process error message. Append to existing text"
|
Custom objects |
Prints a personalized welcome message. | "Concatenate "Welcome" with current user displayname and email id"
|
Media |
Renders a media file you have added to the app. |
Simply write the file name: "image_01" |
Process |
Completes a message with a value from a process. |
"Concatenate user billing total amount" |
Process and app variables (sorting and filtering) |
Assigns a value from a process data table to an app variable data table. |
"Sort
process users.datatable by rating in descending order and filter where name contains john"
|
Custom function (string addition) |
Adds a string to a list called "itemlist". |
"Add
firstname to itemlist" |
Query parameters |
Fetches runtime parameters given to the app in the form of a string. In this case, the time zone and region of a user. |
"Concatenate apps timezone and region query parameters" |