Docs »

Bots »

Behaviors »


A loop node repeats every node inside of it for a certain number of iterations.

For instance, assume that you just loaded a list of tweets that @mention your company’s Twitter account using an action node. You now need to scan through each tweet to see if the username matches a contact record in your address book (stored in a custom field). You can use a loop node to iterate through each tweet and run decisions, outcomes, and actions against them.

You can do the same thing with records loaded from a worklist by an action.

It’s also possible to just loop a specific number of times without being based on anything.

In conversational bot behaviors, loops are a simple way to validate user input and prompt them to make corrections when necessary.