且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

对话流程会话的生命周期是多长?

更新时间:2023-01-25 17:30:02

根据对话框流程文档上下文的生存期为20分钟。这间接意味着该会话具有相同的生存期。但是,当我尝试此操作时,我感觉不到20分钟。这更像是10-20分钟。仅存储会话ID将无济于事。您将必须保存收到的响应的上下文,并在下次发送请求时将其发送。

According to the dialogflow documentation a context has a lifetime of 20 mins. Which indirectly means that the session has the same lifetime. But when I was trying this out I felt this is less than 20 mins. Which is more like 10-20 mins. Only storing the session ID won't help. You will have to save the contexts of the response received and send it with the request next time.