Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase timeout from Webhook response in API.ai

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?

like image 568
Rahul Kalidindi Avatar asked Sep 12 '17 15:09

Rahul Kalidindi


People also ask

How do I increase my Webhook timeout?

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.

What is Webhook in Dialogflow?

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.


1 Answers

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.

like image 61
Leon Nicholls Avatar answered Oct 05 '22 15:10

Leon Nicholls