Apps/Iterator/Iterate
Iterator
Iterator Action

Iterate

Iterate over a list. Emits one item per run so the next steps execute once per item. The input must be a tag of type Array; use the Key field to reach a list nested inside it.

200+ apps to connect·Tested & maintained tasks·Human support in English & Spanish

In detail

What it does and what it's for

Automating tasks with Botize's Iterate method allows you to sequentially process each element of a list, whether it's an array, JSON, or delimited text. This function executes specific actions for each element, facilitating efficient data management.


By using Iterate, variables such as , containing the current element's data; , indicating the current index; and , showing the total number of elements, are generated. These variables enable you to customize and control each step of the automation according to your needs.

Setup

Customization options

Fields you can adjust when using it in your automation.

Output data

Information provided

When executed, this operation delivers the following data, which can be used in the same automatic task.

  • Tags

  • Iteration data {{iteration_data}}

  • Current index {{repeater_current}}

  • Total items {{repeater_total}}

Learn by watching

Video tutorials

Short videos where you watch a real task being built from start to finish.

Get inspired

Ready-to-use automations

Real tasks built with Iterator: switch them on in minutes and tweak them to your liking.

  • schedule → webhook_recurring
  • btzobjects → create_a_list
  • iterator → iterate
  • telegrambot → send_message_photo
Sends a message every 2 hours to a list of specific Telegram groups and channels
  • schedule → webhook_recurring
  • btzobjects → create_a_list
  • iterator → iterate
  • whatsapp_cloud_api → post_message_template
Sends a message every 2 hours to a list of specific WhatsApp phone numbers
  • schedule → webhook_recurring
  • gspreadsheet → read_rows_by_sql
  • amazon_associates → get_items
  • btzmerge → merge
  • iterator → iterate
  • btztags → create_tags
  • btzfilters → process
  • gspreadsheet → update_row_by_number
  • telegrambot → send_message_photo
Monitors Amazon products listed in Google Sheets and notifies on Telegram when the price drops
  • schedule → webhook_recurring
  • gspreadsheet → extract_object_by_sql_query
  • iterator → iterate
  • telegrambot → send_message_photo
Every day, it extracts from Google Sheets the people whose birthday is today and congratulates them with a Telegram message
  • telegrambot → webhook_command
  • btzobjects → create_a_list
  • iterator → iterate
  • telegram_users → search_message
  • telegrambot → reply
Search for messages containing specific keywords across multiple Telegram chats
  • telegrambot → webhook_command
  • plugin_strings → split
  • iterator → iterate
  • telegrambot → send_message_photo
Receives a Telegram message, splits it into lines, and posts each line as a new message in a Telegram chat
  • schedule → webhook_recurring
  • keepa → get_group_of_deals
  • btzfilters → filter_array
  • iterator → iterate
  • telegrambot → send_message_photo
Daily, detect Keepa deals that come back in stock and notify them on Telegram
  • schedule → webhook_recurring
  • keepa → get_group_of_deals
  • btzfilters → filter_array
  • iterator → iterate
  • telegrambot → send_message_photo
Daily, detect Keepa deals that have dropped in price and notify them on Telegram
  • schedule → webhook_recurring
  • btzobjects → create_a_list
  • iterator → iterate
  • btzscraper → execute_commands
Publishes a specific message daily in each specified Facebook group
  • telegrambot → webhook_command
  • btzobjects → create_a_list
  • iterator → iterate
  • telegram_users → search_message
  • chatgpt → send_prompt
  • telegrambot → reply
Search for messages across different Telegram chats that contain specific keywords, filter them with GPT to keep only those truly related to the topic, and return only the relevant messages
  • schedule → webhook_recurring
  • btzobjects → create_a_list
  • iterator → iterate
  • telegram_users → send_message
Publish a text message as a user in specific chats and groups
  • endpoint → webhook_request
  • gspreadsheet → extract_object_by_sql_query
  • iterator → iterate
  • whatsapp_cloud_api → post_message_template
Extract contacts from a Google Sheets spreadsheet and send them a WhatsApp message
  • endpoint → webhook_request
  • iterator → iterate
  • gspreadsheet → add_row_to_end
Webhook that receives a list of data and saves each item as a separate row in Google Sheets
  • schedule → webhook_recurring
  • btzfilters → process
  • btztags → create_tags
  • btzobjects → create_a_list
  • iterator → iterate
  • btzchrome → execute_commands
Post a message with an image to a list of Facebook Groups every weekday at a scheduled time using Google Chrome
  • schedule → webhook_recurring
  • gspreadsheet → extract_object_by_sql_query
  • iterator → iterate
  • whatsapp_cloud_api → post_message_template
Daily extract rows from Google Sheets that match certain conditions and send a WhatsApp message for each one
  • schedule → webhook_recurring
  • btzchrome → get_page_elements
  • chatgpt → send_prompt
  • btzjson → extract_from_json
  • btzfilters → filter_array
  • iterator → iterate
  • whapi → post_message_to_channel
  • telegrambot → send_message_photo
Extracts products from a URL using Google Chrome, processes them with GPT, filters only new items, and publishes them to a WhatsApp channel and a Telegram chat.

Troubleshooting

Common Errors

A list was expected for the selected input

The tag selected in Input list/array is not a list, it is text. This usually happens when an HTTP request is connected straight to the iterator, because the response arrives as text.

In the Make an HTTP(S) request step pick the Parsed Response tag, which is already a list, and type into Key the path of the node you want to iterate (for example /notifications).

If the data comes from somewhere else as JSON text, add a JSON → Extract nodes or values from JSON step before it and declare the output tag with type Array.

A list was expected for the specified path

The input is a list, but the Key field points to a node that does not exist or that is not a list.

The path walks down the tree with the / character (for example /data/items). Leave it empty if the tag you selected is already the list you want to iterate.

Need a hand?

Real people behind it

Email us

info@botize.com
Monday to Friday from 7 a.m. to 1 p.m. (Spain).

Message us on Telegram

t.me/botizesupport
Monday to Friday from 7 a.m. to 1 p.m. (Spain).

Come with an idea.
Leave with an automation.

Create your first task in minutes. Do it once and forget about it forever.

Start automating