---
schema_version: "1"
id: 190a2908a9ce66b9772d320ff8969093c79606f1e1306b7f78de3e2c3791bcfc
title: "Step 8: Integrate the Automation with Composer Flows"
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-home/automation-tutorial-composer.md
canonical_url: https://docs.mulesoft.com/rpa-home/automation-tutorial-composer
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6f881114f14656d72cc56dc119367cbe8b49d5ec86d7d51f1db5318f094849b3
description: MuleSoft Documentation Site
latest: true
---
---
product: RPA
---

# Step 8: Integrate the Automation with Composer Flows

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

After successfully publishing the process automation, you can connect your MuleSoft RPA account with
MuleSoft Composer and start the automated process from a Composer flow. During this step, you create
a new MuleSoft Composer flow, configure a trigger, connect your Composer account with your MuleSoft
RPA account, and start the execution of an RPA Process.

Different triggers can start a Composer flow, including interactions with Salesforce and other
systems. This tutorial uses the Scheduler event because it is a simple way to start the execution of
the flow without configuring connections to other systems.

## Step 8.1: Create a New Composer Flow

To create a new Composer flow:

1.  Open MuleSoft Composer.

    If you don’t know your organization’s MuleSoft Composer instance URL, contact your organization
    administrator.

2.  In the menu bar, click **Composer Flows**.

3.  Click **New Flow**.

4.  Click the edit button next to **Untitled Flow** and provide a name for this flow, for example,
    **Trigger RPA Automation**.

## Step 8.2: Add a Start Event for the Flow

Every Composer flow needs a start event to trigger the execution. To add a starting action:

1.  In the **What Should Start This Flow?** window, click **Scheduler**.

    The **Scheduler** triggers the flow execution on a configured schedule, such as every 15
    minutes.

    ![The action card showing options to configure the flow trigger in Composer](/mulesoft/current/en-us/rpa-home/_images/composer-trigger.png)

2.  Leave the **Every** field set to the default value of 15 minutes.

## Step 8.3: Connect Composer with MuleSoft RPA

Before you can call an RPA process from Composer, you must configure the connection between the two
systems.

To configure the connection between Composer and MuleSoft RPA:

1.  Click **Add** (![The Add Event button](/mulesoft/current/en-us/rpa-home/_images/add-icon.png)) next to the Scheduler event you
    previously created.

2.  Select **System Action**.

3.  Select **MuleSoft RPA**.

    Because this is the first time you are interacting with a new system (MuleSoft RPA), Composer
    opens the connection panel.

4.  Provide the following details to connect with your MuleSoft RPA account:

    - **Connection Display Name**: A name for the connection, for example, **My RPA Account**.

    - **RPA API URL**: The RPA API URL of your RPA Manager instance. Construct this URL by appending
      `/rpa/api/v1` to the URL of RPA Manager, for example:
      `[https://<tenant-name>.rpa.mulesoft.com/rpa/api/v1](https://\<tenant-name\>.rpa.mulesoft.com/rpa/api/v1)`.

    - **User API Key**: An API key to connect MuleSoft RPA with Composer. Use the same API key you
      created as part of the tutorial prerequisites. You can create a new user API key by following
      the steps in
      [Create an API Key for a User](https://docs.mulesoft.com/rpa-manager/usermanagement-connect#create-an-api-key-for-a-user).

5.  Click **Connect**.

If you see an error message while creating the connection, verify the configuration details and try
again.

## Step 8.4: Add an Action to Invoke the RPA Process

After successfully configuring the connection to MuleSoft RPA, follow these steps to invoke the RPA
process:

1.  In the MuleSoft RPA action card, select **Action** > **Invoke RPA Process**.

2.  In **RPA Process**, select the invocable run configuration that you created in
    [Step 7.1: Create an Invocable Run Configuration](https://docs.mulesoft.com/rpa-home/automation-tutorial-deploy#Step-7-1).

3.  In **Output**, select **Use response in this flow**.

4.  Click **Save**.

5.  Click **Test** to test the Composer flow, including the call to the RPA process.

    After the test finishes successfully, you see additional details in the RPA process card, such
    as **RPA Execution ID** and **RPA Execution Status**, which shows `SUCCEED` to confirm the
    proper execution of the RPA process.

## Next Steps

Now that you created a Composer flow that triggers the execution of an RPA process, it’s time to
monitor the deployment.

Continue with [Step 9: Monitor the Automation](https://docs.mulesoft.com/rpa-home/automation-tutorial-monitor)

## See Also

- [Building Process Automation with MuleSoft Composer](https://docs.mulesoft.com/composer/ms_composer_overview)

- [RPA Overview](https://docs.mulesoft.com/rpa-home/)
