---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Create and use an activity in RPA Desktop Design Studio

# Create and use an activity in RPA Desktop Design Studio {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 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](https://www.servicenow.com/docs/577u48ilQmBuHW6JAXzi9g "Set up RPA Desktop Design Studio to add your ServiceNow RPA Hub instance details in Connection Manager and to start using the application.").

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](https://www.servicenow.com/docs/z2bGj8SWUamk0~cZhi8SRw "Create activities from text instructions and preview options by using the ServiceNow Otto for RPA Hub application. Activities provide modularity to an automation project in RPA Desktop Design Studio.").

## 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.
2. Do any of the following options for a desired action.

   | Option | Action |
   | 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](https://www.servicenow.com/docs/z2bGj8SWUamk0~cZhi8SRw "Create activities from text instructions and preview options by using the ServiceNow Otto for RPA Hub application. Activities provide modularity to an automation project in RPA Desktop Design Studio."). To access the ServiceNow Otto for RPA Hub feature in RPA Desktop Design Studio, perform the following steps: * Install the ServiceNow Otto for RPA Hub application to add the generative AI capability. For more information, see [Configure ServiceNow Otto for RPA Hub](https://www.servicenow.com/docs/pu2HkviQ5BoO0WNkFLhf7g "If you have the admin role, you can configure the ServiceNow Otto for RPA Hub application so that your human agents or users can get started with developing automations faster."). * Turn on the RPA bot generation skill to use the generative AI capability. For more information, see [Turn on the RPA bot generation skill](https://www.servicenow.com/docs/0bkWvPim6lJrTnV5JpGacA "Turn on the Robotic Process Automation (RPA) bot generation skill to use generative AI to create automations, activities, and automation logic additions from text instructions and preview options."). * After activating the RPA bot generation skill, relaunch the RPA Desktop Design Studio application to apply the modified settings. {#configure-activity-rpa-studio__ul_nwp_ldh_zdc} If you skip these steps, the ServiceNow Otto 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. {#configure-activity-rpa-studio__ul_st3_y5z_vrb} 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](https://www.servicenow.com/docs/Vh6FPDnG200Lq204kvG~qw "Import a project to reuse resources, such as activities, variables, attended automation forms, and other global objects from a different automation 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. {#configure-activity-rpa-studio__ol_tcn_xvz_vrb} |
   | 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 For more information, see [Resolve conflicts when merging changes from multiple sources of the same activity](https://www.servicenow.com/docs/S4qiFw~3HPhqDqxqvZp0wA "Resolve conflicts when merging changes from multiple sources of the same activity by using the Source Control option in RPA Desktop Design Studio."). |
   | 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 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. {#configure-activity-rpa-studio__ol_xsk_gwz_vrb} |
   |-|-|

   {#configure-activity-rpa-studio__choicetable_zm4_lwz_vrb}  
   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](https://www.w3schools.com/java/java_type_casting.asp)). 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.
     {#configure-activity-rpa-studio__ul_dy1_kgr_nzb}
   {#configure-activity-rpa-studio__ul_gqm_3dg_nzb}
**Related tasks**   

* [Handle errors in RPA Desktop Design Studio](https://www.servicenow.com/docs/vraLWwsBPHfrsJKMUQ0HCg "Handle errors at the component level and activity level in RPA Desktop Design Studio. You can use the Error Handler option to handle the errors that occur during an automation execution.")
* [Create and use a variable in RPA Desktop Design Studio](https://www.servicenow.com/docs/TRHhUxNqZ9ZGEG7d_NeQeQ "Create a variable in RPA Desktop Design Studio.")

