Automation Anywhere
  • 27 Oct 2020
  • 2 Minutes To Read
  • Print
  • Share
  • Dark
    Light

Automation Anywhere

  • Print
  • Share
  • Dark
    Light

Aito works great with several workflow automation platforms, including Automation Anywhere. Once you have your Aito instance up and running, read the tips to get things going with Automation Anywhere!

Creating schema to Aito

We recommend creating the data schema in Aito Console or with CLI first, as this way you can ensure everything is set up properly to receive your data.

Adding data: REST Web Services

Data can be added to Aito by using Automation Anywhere's REST Web Services POST method action. Note! If you are working with bigger datasets, you should explore batch transfer options.

Check the below screenshots for guidance on how to set up the connection. Here are the steps.

  1. To the URI, you should input your Aito instance URL and the endpoint you want to use, for data upload it's /api/v1/data/{your-table-name}.
  2. Add a custom header called x-api-key, this header describes the API key of your instance. For extra security you can add the API key to Automation Anywhere's Credentials vault.
    cust-header-aa
  3. For the custom parameters, select Content type as JSON and in the Enter the parameters section, define the data you want to add to Aito. Variables can be accessed with $$ and don't forget to put string variables into quotations marks.
  4. Create an output variable for the result, so you can acces the result later in your flow. The result should be the same as you used as input.

Add_dat_AA

Making predictions: REST Web Services

Similarly to data upload, Aito predictions can also be managed by the REST Web Services POST method action.

In the example flow, we download a file from an URL, read the file and iterate through it to predict a suitable category for each of the inputs and store the results in to a file.

AA-flow

Let's go over the details how to setup the REST Web Service in order to make predictions using Aito.

  1. To the URI, you should input your Aito instance URL and the endpoint you want to use, for predictions it's /api/v1/_predict.
  2. Add a custom header called x-api-key, this header describes the API key of your instance. For extra security you can add the API key to Automation Anywhere's Credentials vault.
    cust-header-aa
  3. For the custom parameters, select Content type as JSON and in the Enter the parameters section, define the Aito query you want to make. Variables can be accessed with $$ and don't forget to put string variables into quotations marks. The data you're using as input should match the schema you have created to your Aito instance.
  4. Create an output variable for the result, so you can acces the result later in your flow. Aito returns JSON responses.

AA-REST

The result JSON can be parsed by using the String: Extract text activity or by using a readily made JSON parser bot

Got questions?

With this you are good to go! For any questions and help, join our Slack channel.

Was This Article Helpful?