Iterator tool

Iterator tool
Tools
·
8/4/2022
·
5 min. read

In this article

The Iterator tool can convert an array of objects (strings) into separate elements.

"Stings" is an unlimited set of data within an entity. For example, a deal in a CRM system has items of goods. Let’s imagine that one deal comes to Albato, while it can have an unlimited number of goods. Each item of goods has its own unique fields: name, quantity, and so on. All these fields come in one array.

2022-08-05_18-44-01.png

Each item of goods is a “String”, and all of them together are called “Strings”.

In automation scenarios, the "Iterator" tool will process each element of an array separately. It means that steps which are in the automation scenario after the "Iterator" tool will run as many times as you have received elements in the array. It is also possible to set other Albato tools to each entity.

What problem does the tool solve?

Let’s suppose that we want to create a new item in Inflow (inventory management platform) copying each item from the Bitrix24 deal. But we don’t know in advance how many goods will be in the deal.

We will use the Iterator tool to create as many goods in Inflow as there are goods in the Bitrix24 deal. It will convert each deal into separate items of goods, so we will be able to process and save each item separately.

We will add the Iterator tool before the action step - Inflow “New Item”. This step will run as many times as the number of goods the automation will receive in the Bitrix24 deal.

As a result, if we receive 5 goods in a deal, the Inflow “New Item” action will run 5 times, and 5 items in our Inflow account will be created.

How to set up Iterator

Use case example with CoinMarketCap and Telegram

Our goal: receive data by Telegram message on price change for a range of cryptocurrency. Set up a filter to send data only if the price has changed by more than 1%.

First create an automation with CoinMarketCap and Telegram.

Next click the + button to add a tool.

Pick the tool from the list.

unnamed.png

Specify the string from the CoinMarketCap step, which needs to be converted into separate elements - rates of one currency.

unnamed (6).png

In the Telegram step, we are specifying variables that will be sent in a message.

unnamed (8).png

Done! Now we will receive Telegram messages with new data.

CoinMarketCup rate change data comes in complicated format - as numbers.

unnamed (7).png

This is where the Albato Math Operation tool comes in handy. In its settings, we specify where to apply the mathematical operation, the "rounding type" and the number of characters after the decimal point.

unnamed (4).png

Now this math operation is applied to each element in the array, and we get the data in a readable way.

unnamed (3).png

The last step is to add a delay before the "Math operation" tool to send a Telegram message only if the changes are more than 1%.

unnamed (2).png

Add two conditions using the "OR" setting.

unnamed (1).png

Save the settings. Now we can start this automation. Data will come only for those cryptocurrencies that have been changed for the last hour by more than 1%.


Tools

Join our newsletter

Hand-picked content and zero spam!

Related articles

Show more
Our Automation Builder Has Just Leveled Up
3 min. read

Our Automation Builder Has Just Leveled Up

Explore what’s new in Albato: features, apps, and improvements

Best Accounting Apps to Manage Your Business Finances
7 min. read

Best Accounting Apps to Manage Your Business Finances

In this article, you will learn about the top accounting apps like Sage, QuickBooks, Zoho Books, and more to simplify bookkeeping, automate workflows, and grow your business.

Grok AI Use Cases: Gmail, WhatsApp, CRM & More
5 min. read

Grok AI Use Cases: Gmail, WhatsApp, CRM & More

In this article, you will learn some practical Grok AI automation use cases, from Gmail and WhatsApp to CRM queries and Google Home integration.

HubSpot vs. Pipedrive: Which CRM to Use
7 min. read

HubSpot vs. Pipedrive: Which CRM to Use

In this article, you will find a comparison between HubSpot and Pipedrive CRM tools in features, pricing, and usability for sales and marketing teams.

Best AI Automations with Albato: ChatGPT, Claude, Gemini
10 min. read

Best AI Automations with Albato: ChatGPT, Claude, Gemini

In this article, you will find some examples of powerful AI automations with ChatGPT, Claude, and other LLMs you can set up with Albato to boost productivity and streamline your business processes effortlessly.

Grok 4, GPT-5, Gemini, and Claude Opus 4.1―All the Recent Updates
13 min. read

Grok 4, GPT-5, Gemini, and Claude Opus 4.1―All the Recent Updates

In this article, you will find an in-depth comparison of Grok, ChatGPT, Gemini, and Claude. Discover their strengths, weaknesses, and which AI chatbot fits your business needs best.

Testing Steps Tool
5 min. read

Testing Steps Tool

Testing Steps tool allows you to run a test on each individual step and view Samples of incoming data

Branching Tool
5 min. read

Branching Tool

A new tool in Albato allows you to run different scenarios within a single automation depending on specific conditions.

How AI Is Changing SaaS Product Design
7 min. read

How AI Is Changing SaaS Product Design

In this article, you’ll learn how to design SaaS products in the age of AI. We’ll discuss UX patterns and practical tips to help you create better products.

Can AI Help Me Design Smarter Workflows in Albato?
3 min. read

Can AI Help Me Design Smarter Workflows in Albato?

In this article, you will learn how AI is starting to shape workflow design, how Albato is preparing to lead the way with its upcoming Superagents, and why this matters for businesses looking to scale automation without technical expertise.

How to Connect Microsoft Excel to Albato
4 min. read

How to Connect Microsoft Excel to Albato

Connect Microsoft Excel with Albato to integrate it with over 800+ apps, including AI tools like ChatGPT and Gemini.

How to Connect VKontakte to Albato
4 min. read

How to Connect VKontakte to Albato

Connect VKontakte with Albato to integrate it with over 800+ apps, including AI tools like Grok and Claude.