How to use Albato Webhook

How to use Albato Webhook
Webhook
·
11/10/2022
·
5 min. read

Step 1

Sign in to your Albato account.

Go to the Automations section and click the New button.

2023-05-05_11-22-44.png

Step 2

Set up the first step of your automation scenario - an event which will trigger your automation.

Choose the Webhook app and specify the event - Incoming webhook.

unnamed (1).png

Step 3

Copy the Albato webhook.

Paste this webhook into the app you will use to send the data from.

Click on the Wait for webhook button and send the test data from your app.

unnamed (3).png

In our example we will use the Postman tool.

unnamed (2).png

On request we have an order with 3 items.

If the request is successful, then the webhook will receive the data. For example,

unnamed (4).png

Step 4

Now let's add the Iterator tool.

Go to the Automation builder. Click on the + icon. Choose the Iterator tool.

We need it to convert an array of objects (strings) into separate elements.

unnamed (5).png

In the "Iteration row" field, select the string section from the previous step.

Click the Save button.

unnamed (7).png

Step 5

Let’s add the next tool - Stop automation on condition.

We add this tool to filter the data we will receive from the array.

unnamed (6).png

In our example we choose the Continue automation value.

unnamed (8).png

The next step is to set up the tool:

Let’s say we want to receive the data about the item called "Product 2".

unnamed (9).png

We set up the condition.

Choose the value to filter the items. In our example - productName.

unnamed (11).png

Next we specify the condition. The condition will be equality. The value that we need is "Product2".

unnamed (10).png

Click the Save button.

Step 6

Set up the action.

Choose the app to receive the data. In our example it is amoCRM.

We will create new deals with the item called Product2.

unnamed (12).png

Next, we set up the action fields.

In the Title field we choose the customer value from the first step.

unnamed (13).png

In the Budget field we choose the productName value from the Iterator step.

unnamed (14).png

Click the Save button.

The automation is ready. Click the Start button.

unnamed (15).png

Perform the event to trigger the automation. In our example it is the Postman request.

Go to the Automation log to check the data. We can see that the automation runs successfully.

unnamed (16).png

The data passed the filter by condition, and we created a New Deal in AmoCRM with the item we need.

unnamed (17).png


Webhook