Create and use an activity in RPA Desktop Design Studio

  • Release version: Australia
  • Updated March 12, 2026
  • 6 minutes to read
  • Create and use an activity to provide modularity to an automation project in RPA Desktop Design Studio.

    Before you begin

    Set up the RPA Desktop Design Studio application and add the ServiceNow instance details. For more information, see Set up RPA Desktop Design Studio.

    Role required: none

    About this task

    Activities are a reusable set of instructions that are designed for an automation on the Design surface of RPA Desktop Design Studio.

    You can design automation workflows in an activity on the Design surface by using various components.

    Each activity contains two components by default: Start and End. These components can't be deleted because they are the starting and ending points of the activity.

    You can reuse each activity multiple times within the same automation project by dragging the activity to the Design surface. You can also import activities in different automation projects.

    To create an activity using Now Assist, see Create an activity with Now Assist.

    Procedure

    1. In the Project Explorer pane, navigate to Activities.

      The Activities section lists all the activities that are created under each project. By default, a Main activity is created when a new project is initiated. The automation execution starts from the startup activity, in this case, Main activity as shown in the following example.

      Main activity is created when a new project is initiated.
    2. Do any of the following options for a desired action.
      OptionAction
      To create a new activity Right-click Activities in the Project Explorer pane and select New Activity.
      To create a new activity with Now Assist Right-click Activities in the Project Explorer pane and select New activity using Now Assist. For more information, see Create an activity with Now Assist.
      To access the Now Assist for RPA Hub feature in RPA Desktop Design Studio, perform the following steps:
      • Install the Now Assist for RPA Hub application to add the generative AI capability. For more information, see Configure Now Assist for RPA Hub.
      • Turn on the RPA bot generation skill to use the generative AI capability. For more information, see Turn on the RPA bot generation skill.
      • After activating the RPA bot generation skill, relaunch the RPA Desktop Design Studio application to apply the modified settings.
      If you skip these steps, the Now Assist for RPA Hub feature doesn’t appear in RPA Desktop Design Studio.
      To rename an activity Do one of the following actions:
      • In the Project Explorer pane, right-click the activity and select Rename to enter a new name.
      • Double-click the activity and in the Properties pane, change the name in the Name field.

      For example, Test 1 and Test 2.

      To add the input parameters to an activity Click the plus icon (Plus icon.) on the Start component.

      When you drag this activity into another activity, the input parameters appear as Data Input ports.

      To add the output parameters to an activity Click the plus icon (Plus icon.) on the End component.

      When you drag this activity in another activity, the output parameters appear as Data Output ports.

      To open an activity on the Design surface Double-click the activity.
      To set a particular activity as the starting point for the automation project Right-click the activity and select Mark As Startup.

      By default, the Main Activity is marked as start up.

      When you click Run under the Design tab to run this project, the automation begins from the activity that is marked as startup.

      To reuse an activity within the same automation project Drag the activity to the desired Design surface of the activity.
      To reuse an activity in a different automation project Perform the steps in the Import project in RPA Desktop Design Studio.
      To handle the errors at an activity level Right-click the desired activity and select Error Handler.
      To create a local variable Right-click the desired activity and select Create a Variable.
      To create a copy of an activity Right-click the desired activity and select Create a Copy.

      For example, if you are creating a copy of the Test 1 activity, a new activity is created as Test1_Copy under the Activities section.

      To find all the references of an activity that are used in other activities Right-click the desired activity in the Project Explorer pane and select Find All References.

      Results are displayed in the Find All References dialog box.

      To delete an activity Do the following:
      1. Delete all the references that are used in other activities, if any. Use the Find All References option to do this step.
      2. In the Project Explorer pane, right-click the activity and select Delete.
      3. In the Confirmation dialog box, select Yes.
      To resolve conflicts when merging changes from multiple sources of an activity Right-click the desired activity in the Project Explorer pane and select Source Control.

      The COMPARE PROCESSES dialog box appears and the changes are highlighted as shown in the following example.

      Figure 1. Compare Processes dialog box
      Compare Processes dialog box.

      For more information, see Resolve conflicts when merging changes from multiple sources of the same activity.

      To execute and test the automation of the project that includes all activities Do the following:
      1. Consolidate all the activities in a single Main activity and arrange them in the execution order to execute the entire automation, as shown in the following example.
        Figure 2. Consolidate Test 1 and Test 2 activities in a single Main activity
        Consolidate Test 1 and Test 2 activities in a single Main activity.
      2. Click Run under the Design tab to execute the entire automation designed in these two activities.

        In this example, the Main activity is marked as startup, which executes the Test 1 activity followed by the Test 2 activity.

      Important:
      You might come across the following behaviours when you drag and drop an automation component from the Toolbox, Object explorer, Project explorer, and Skills explorer to the Design surface:
      • If you drag and drop a component to the same component in the Design surface, then the new component replaces the existing component. For example, if you already have the ActionSet component on the Design surface and you drag and drop another ActionSet component to the existing ActionSet, then the new version replaces the existing component.

        All the connections (control and data connections), variables, or static data associated to the existing component gets associated to the newly dropped component if the port name and the port data type are the same.

      • If you drag and drop a new component to a different component or method in the Design surface then the new component replaces the existing component.

        All the connections, variables, or static data associated to the existing component gets associated to the newly dropped component if the port names and the port data types are the same.

      • If you drag and drop a component between two components that are already connected in the Design surface, then the component is placed between the existing components. You may come across the following behaviours when you drag and drop a component between two components:
        • If port names and the port data types of the newly dropped component match with the connected components, then the data connections are created.
        • If the port names are the same and the port data types are different, then the data connections are created only if the port data type is can be converted (the source port data must be converted to target data type. This is known as typecasting or type conversion. For more information on type casting, see Java Type Casting). For example, integer to object but not object to integer.
        • If the port names are the same and the port data type can be converted, but there is already an existing data connection between the two components, then no new data connection is created.