Is there a way to use storage for the Microsoft bot framework conversation dialog instead of the directline service storage for conversation history

霸气de小男生 提交于 2021-02-11 12:14:07

问题


The paradigm I am understanding for storage of the bot framework is related to state and not necessarily the entire usage of the bot dialog. This wouldn't be just a transcript but also it would serve as a message history when the user when the user connects to the bot.

The issue would also serve during reconnection to the service. As of now, where are the messages being stored during reconnection? Or are they not stored and once connection is lost from the user session are all of those messages gone through memory? Again, is there a way to custom manage this.


回答1:


You can use any store to store whatever you want. If your bot has access to a user's conversation history then it can use the Send Conversation History API to share the transcript with the client so the client can render it. This storage history api your client can use, Get Activities API, can accesses the Direct Line service store that is available for 24 hours.

If you want to share conversation history across multiple channels then you will need some way to identify the user across multiple channels, and the only way to do that would be to have the user sign in to the bot using an OAuth connection. But even if you do all that, you will need to rely on each channel client to be able to display the updated conversation history. I would not expect every client application to have that ability.



来源:https://stackoverflow.com/questions/58349178/is-there-a-way-to-use-storage-for-the-microsoft-bot-framework-conversation-dialo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!