JSON Connector

The JSON Connector accepts data at a Webhook Endpoint. The Webhook URL will be generated automatically after your JSON Connector has been created. The JSON Connector provides more flexibility when sending data to the Robot. It is a passive Connector and will replace the Web Form connector in the future. 

To create a JSON Connector, go to Robot Connectors. Then click on the Plus at the bottom left and select the Connector from the dropdown list:

JSON_connector.png

After creating the connector you can add new variables which will store the extracted information from the JSON Payload sent to the Webhook by defining a JSON Path Expression.

Screenshot_2022-02-15_at_16.22.10.png

 

For example, let's send a person’s information to the aiaibot Robot Module. We will send a webhook event to the generated Webhook URL:

https://api.aiaibot.com/automation/v1/json/webhooks/xx?aiaibotApiKey=<api-key>

with the following Payload:


{

  "name": [

    "John",

    "Smith"

  ],

  "age": 35

}

 

Our JSON Connector with read the names and age information and store them in the defined variables. These variables will be then available in the Robot Workflow for further processing.

Was this article helpful?
0 out of 0 found this helpful