Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
656 views
in Technique[技术] by (71.8m points)

asynchronous - How to manage the 5 seconds response timeout limit in Dialogflow / Api.ai?

I am using Dialogflow to create an agent / bot which responds to different types of user queries with action items like "I need to get a letter from the HR for address proof". This needs the bot to fetch some information from the company's database and generate a document / letter by populating that retrieved information in a templated letter file provided by the Human Resource. The logic to do this action is already written in a python file. The database integration is done using Webhooks.

The problem is that this complete process of interpreting the user's request, opening the database and retrieving the required information takes more than 5 seconds, which happens to be the response timeout limit for Dialogflow agents. I have done some research on this and found out that we cannot increase this limit but we can keep the session alive through asynchronous calls. I am not able to find the right resource which provides the answer.

So, my questions are-

Can we make asynchronous calls in dialogflow?

If yes, then how do we send asynchronous data through json to Dailogflow agent?

Is there any other way to tackle this 5 seconds response timeout limit?

Thanks in advance!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...