Behavior
- Increments the counter variable on each iteration
- Checks the exit condition (if configured) before each iteration
- Routes to
Loopto continue,Exitwhen the exit condition is met, orMaxwhen max iterations are reached
Configuration
Output handles
Use cases
Retry pattern
Retry pattern
Loop up to 3 times around an API Call node. On
API.SUCCESS, take the Exit path. On API.ERROR, loop again. After 3 failures, the Max path plays an error message and ends the call.Multi-item collection
Multi-item collection
Loop to collect multiple data points from the caller (e.g., “Enter item 1… Enter item 2…”). Use
{{loop_count}} in the TTS text to indicate which item number.