Action Control

The Action Control is used in Conversational Screens and enables powerful, on-the-spot task execution, allowing the screen to dynamically call various process design assets within the conversation flow. With this control, designers can seamlessly integrate actions such as calling decision tables, FlowGenie automations, scripts, and data connectors directly into the conversational form experience.

Key Features:

  • Decision Tables: Implement rule-based logic to drive automated decisions based on user input.

  • FlowGenie: Trigger a Genie to use AI magic in the conversation.

  • Scripts: Execute custom scripts to handle unique business logic or data processing.

  • Data Connectors: Access and retrieve data from external sources or databases for real-time information display.

In-Line Action Controls bring advanced functionality directly into the Conversational Screen, enabling responsive interactions, enhancing user engagement, and supporting sophisticated conversational flows without leaving the form. This feature helps create a rich, interactive experience that responds instantly to user actions, making Conversational Screens more dynamic and efficient.

This control is only available for Conversational Screens. See Screen Types.

Watch the following product tour to learn how to use the In-line Action control.

Add an In-Line Action Control

Permissions

Your user account or group membership must have the following permissions to design a Screen unless your user account has the Make this user a Super Admin setting selected:

  • Screens: Edit Screens

  • Screens: View Screens

See the Screens permissions or ask your Administrator for assistance.

Follow these steps to add this control to the Screen:

  1. Create a new Conversational-type Screen or edit an existing one.

  2. From the Controls Menu on the left, expand the Advanced category, and then locate the Action icon .

  3. Drag and drop the control onto the Screen Builder.

  4. Configure the control. See Settings.

  5. Validate that the control is configured correctly. See Validate Your Screen.

Settings

The Action control has the following configurable settings in the Properties Panel:

Configuration Panel Settings

Expand the Configuration panel from the Properties Panel on the right to configure the following properties:

Asset

From the Asset setting, select the ProcessMaker asset you would like to call from the Action control. Following assets are available for selection:

For example, select Script, and then select an available Script.

Inbound Configuration

The inbound configuration defines how data gets transferred from the screen to the select asset.

Follow these steps to specify inbound configuration:

  1. Expand the Configuration panel.

  2. Click the icon. The Add Option screen displays.

  3. In the Property setting, enter the property of the asset.

  4. In the Request Variable setting, enter the Request variable (in mustache syntax) to use to send data to the selected asset.

  5. Click Save.

  6. Repeat steps 2-5 to add additional properties.

  7. Click Delete to remove a property, and click Edit to make changes.

Response Mapping

The Response Mapping setting defines how data is passed from the asset back to the Conversational Screen.

Response mapping is the process of integrating data from a data source into the Request's JSON data model by specifying which Request variable will store the data. If the variable already exists, its value will be overwritten. If the variable doesn’t exist, a new variable will be created and assigned the value returned by the data source.

Follow these steps to specify the request variable for saving the response returned from UiPath:

  1. Expand the Configuration panel.

  2. Click the icon to add a variable for saving data from the asset. The Source and Set to Request Variable settings display to add the JSON source name and its variable, respectively.

  3. The Source setting determines how data returned by the selected asset is incorporated into the screen. By carefully selecting the appropriate Source option, you can tailor the request to include exactly the data you need. Use the following guidelines to configure this setting:

    Use a Request Variable: Enter a request variable to store specific data.

    • Use this option when you need to include only certain parts of the response in the screen.

    • The selected data will be embedded within the JSON request body.

    Leave Blank: Leave empty to include the entire response in the specified request variable.

    • Use this option when you need to pass all data to the screen.

  4. In the Set to Request Variable setting, enter the Request variable in which the response should be saved.

  5. Click Save.

  6. Repeat Steps 2 through 6 to add additional variables.

  7. Click Delete to remove a variable, and click Edit to make changes.