Automation Anywhere
aito.ai works great with several workflow automation platforms, including Automation Anywhere. Read the tips to get things going with Automation Anywhere!

Creating schema

We recommend creating the data schema in aito.ai 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.ai 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. 1.
    To the URI, you should input your aito.ai instance URL and the endpoint you want to use, for data upload it's /api/v1/data/{your-table-name}.
  2. 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.
  3. 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.ai. Variables can be accessed with $ and don't forget to put string variables into quotations marks.
  4. 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.ai 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.ai.
  1. 1.
    To the URI, you should input your aito.ai instance URL and the endpoint you want to use, for predictions it's /api/v1/_predict.
  2. 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.
  3. 3.
    For the custom parameters, select Content type as JSON and in the Enter the parameters section, define the API 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.ai instance.
  4. 4.
    Create an output variable for the result, so you can acces the result later in your flow. aito.ai 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
Copy link
On this page