API Timeout at 60 seconds
Do voiceflow API calls automatically timeout and drop at the 60 second mark?
I've got a few API calls that normally take 30-40s. Voiceflow handles these calls 100% of the time. But sometimes during high server loads (and if I add additional steps), that same API call pushes into the 60s-90s range, which always causes it to drop.
Is there a hardcoded timeout? If so, looking for some potential work arounds.
Maybe I need to start playing around with the new /listen, state management release?
1 Reply
Yes, there is a timeout for API calls in Voiceflow. If an API call takes too long, it might indeed time out and drop, which could be the issue you're experiencing with calls that take 60-90 seconds.
As for potential workarounds, you could consider optimizing your API calls to ensure they complete within the timeout period. This could involve reducing the amount of data you're requesting, or splitting a large request into several smaller ones.
Additionally, you might want to explore using the /listen endpoint and state management features. The /listen endpoint is part of Voiceflow's Global Listen feature, which allows Voiceflow to listen for user events until an event is detected. This could potentially help in managing long-running processes.
State management, on the other hand, allows you to manage and update variables within your Voiceflow project. This could be useful for tracking the progress of long-running API calls and handling any timeouts that occur.
Remember, it's important to monitor your application's performance to ensure it's operating at its best, especially if you're handling a high volume of users. You might need to upgrade your plan if you see a huge increase in volume.
For more detailed information, you can refer to Voiceflow's documentation and guides, which provide comprehensive coverage of all features and functionalities.