Step 1
Sign in to your Albato account.
Go to the Automations section and click the New button.
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.
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.
In our example we will use the Postman tool.
On request we have an order with 3 items.
If the request is successful, then the webhook will receive the data. For example,
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.
In the "Iteration row" field, select the string section from the previous step.
Click the Save button.
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.
In our example we choose the Continue automation value.
The next step is to set up the tool:
Let’s say we want to receive the data about the item called "Product 2".
We set up the condition.
Choose the value to filter the items. In our example - productName.
Next we specify the condition. The condition will be equality. The value that we need is "Product2".
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.
Next, we set up the action fields.
In the Title field we choose the customer value from the first step.
In the Budget field we choose the productName value from the Iterator step.
Click the Save button.
The automation is ready. Click the Start button.
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.
The data passed the filter by condition, and we created a New Deal in AmoCRM with the item we need.