Add On Bot Result to Mule flows

Use the On Bot Result palette option that is part of the Automation Anywhere for MuleSoft connector to pass bot data to the Mule flow.

Prerequisites

  1. Install MuleSoft Anypoint Studio.
  2. Install Automation Anywhere for MuleSoft connector.
  3. Create MuleSoft Anypoint Studio flow project.

Add the On Bot Result to the Mule integration flow to collect data from the bot.

Mule Flow tips:
  • If the selection you want is not listed, you can optionally enter the field content. For example, you can enter the ID number for an item. The ID number is listed in parenthesis at the end of each selection name or Automation Anywhere Control Room.
  • To manually enter data in a field, toggle the expression mode check box.
  • Click Refresh Metadata in the right panel to refresh the list of Output variables.

Procedure

  1. With your configuration file selected, in the Flow panel, drag the On Bot Result activity to create a new flow.
    The Mule Properties panel displays the On Bot Result configuration options.
  2. Configure the connection to the Control Room.
    In the Basic Settings area, next to the Connector configuration field, click Plus to add a connection.
  3. In the Automation Anywhere Config dialog box, select an existing connector configuration or create a new configuration and enter the corresponding connection information.

    Connection types:

    • Basic Authentication Connection – Enter Control Room URL, user name, and password.
    • API Key Authentication Connection – Enter the Control Room URL, user name, and API Key.
  4. In the Source tab, select the default HTTP listener config or the Custom HTTP Listener created from the drop-down list.
  5. Click Test Connection. When the connection successful, click OK to close the Test connection box, and then click OK to close the Automation Anywhere Config dialog box.
  6. Select the General tab, and enter the following information:
    • Bot (Required): Select a bot to run from the list.
    • Bot Result Key (Required): Create a bot result key that is identical to the key created for the Run Bot Async operation.

      The key allows the HTTP listener to monitor a specific bot run and receive the bot result when the bot execution is complete.

  7. Select the Advanced tab. The following information is displayed in General:
    Use the Bot Result Key as URL Path
    • With this option selected

      The callback URL is generated in this format: https://my-mule-connector.cloudhub.io/aa-mule-connector/on-bot-results/sample-bot-key

    • With this option not selected

      The callback URL is generated in this format:https://my-mule-connector.cloudhub.io/aa-mule-connector/on-bot-results/[global-unique-identifier]

    • Version 11.3 users

      Enabled by default. Add the callback URL to the trusted list to ensure data is returned to the bot. If the box is not selected, a random URL path is generated and it might be difficult to know the complete URL for adding to the trusted list. Set up your configuration first and create a unique bot result key for each on bot result in the Mule flow.

    • Automation 360 Cloud users

      Enabled by default. Adding the callback URL to the trusted list is not required. Deselect the box to create a unique bot result key for each on bot result in the Mule flow. Use or enter a unique bot result key from the General tab to ensure the callback URL for each Mule flow will always be unique.