GoogleCloudPlatform / dialogflow-integrations

Dialogflow integrations with multiple platforms including KIK, Skype, Spark, Twlio, Twitter and Viber
https://cloud.google.com/dialogflow/
Apache License 2.0
256 stars 503 forks source link

high latency of detectintent #20

Closed TharakaSl closed 3 years ago

TharakaSl commented 4 years ago

I am testing viberbot, key file is set to environment. I am using ngrok for test chat bot in local.

The issue is when calling detectIntent it will take nearly 8 seconds to get seponse. const answer = (await sessionClient.detectIntent(message.text, sessionId, message)) Any reason for this ?

tyhu-google commented 4 years ago

Thanks for reporting the issue. TharakaSl@, have you tried to test it with Dialogflow Console for the same request, if so, how long does it take?