Skip to main content

Increment Counter

Increment Counter configuration

Use Increment Counter to increase a counter as the Flow runs. Counters are useful for retry limits, attempt sequencing, and controlling repeated branches.

Choose the counter to update, then use its value in a later Check Conditions node. Always include an exit route once the maximum useful number of attempts has been reached.

Configuration and outcomes​

Set the counter's maximum value. Connect Counter Incremented while the limit has not been reached and Max Reached when it has.

Variables set by this node​

Each time the node runs, it stores the current count and the limit. The outcomes above already stop a loop at the limit, so you only need these variables to mention or log the attempt number.

Show the variables this node sets

Each variable is prefixed with the node's unique name, shown here as increment_counter_abc. Insert them with the Variables button rather than typing them, so the prefix always matches your node.

VariableContainsExample
{increment_counter_abc.counter_current_value}The count after this run. It stops at the maximum value.2
{increment_counter_abc.counter_max_value}The maximum value you configured.3

The count belongs to this node and this session. A second Increment Counter node keeps its own separate count.

Typical uses:

  • Say the attempt number in a prompt, for example "attempt 2 of 3", with Play TTS / Audio.
  • Record how many retries a contact needed with Log Result.

See Flow variables for how variables work across a Flow.

Use the incremented path to retry or loop through a bounded sequence, then use Max Reached to leave the loop. Pair this node with Check Conditions when other data should decide whether another attempt is worthwhile.