optimistic-gold
optimistic-gold7mo ago

turn timeout - check for infinite loops

hello! i have a complex flow with many functions to query external LLM completion endpoints because voiceflow doesn't have the models i want. as a result, i frequently get "turn timeout - check for infinite loops" supposedly because the amount of functions take too long to run, even though there aren't any infinite loops. is there a way to increase the duration before timeout? reducing the amount of functions really wouldn't be ideal here
1 Reply
Tico | Voiceflow Assistant
At the moment there isn’t any configuration option that allows you to extend the turn timeout duration. The “turn timeout – check for infinite loops” error is designed as a safeguard to prevent a single turn from taking too long—whether due to an unintended infinite loop or simply due to heavy processing (for example, a series of function calls to external LLM endpoints). Since the timeout limit isn’t something that can currently be adjusted, one way to work around this is to restructure your flow so that long-running operations are broken up across multiple turns. This might mean splitting heavy functions into smaller, more manageable chunks or strategically placing pauses (or even additional turns) so that each individual turn stays within the allowed execution time. For more details on Voiceflow’s general execution model and best practices, take a look at the documentation: Voiceflow Docs. You might also find insights or alternative approaches in the Discord community if you need further guidance.

Did you find this page helpful?