Avoid dead loops

Sometimes you might see the message MAX_ACTIONS exceeded in your AI workflow:

This error occurs when an infinite loop (without user interaction) is accidentally created between Blocks:

The system limits the number of Actions that can run without user interaction. Each time the user interacts, the MAX_ACTIONS counter is reset.

In some cases, a loop in the background is useful — for example, when polling a remote API until the required data is available. If you expect the loop to run many times, you can prevent the MAX_ACTIONS exceeded error by adding a Wait Action with at least 1 second of delay inside the loop:

Keep in mind that any Flow without user interaction — including loops — can run for a maximum of 4 hours. After this time, the Flow will stop automatically at whatever step it has reached.

If you have questions about Tiledesk features feel free to send an email to [email protected] or leave us a feedback

Last updated