I am trying to make multiple API calls to get the response from the webhook. So, the API calls are taking more than 5 secs for getting the response.
I have gone through the document for API.ai and found that set timeout is 5secs for intent request. Is there a way we can increase the timeout for the webhook response for API.ai?
By default, webhook timeout is 5 seconds. However, in Dialogflow CX, you can go to Manage > Webhook, select the webhook you are using and increase the timeout to up to 30 seconds.
Webhooks are services that host your business logic. During a session, webhooks allow you to use the data extracted by Dialogflow's natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
The timeout is not configurable. The nature of the interaction with the user is conversational and therefore the user expects a response in a timeous manner. Long delays will confuse users and make them think your app is unresponsive.
If your operation takes longer than the timeout, consider changing the design of your conversation, either to have the user come back later or to gather other information from the user while the operation is completing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With