I am developing chatbot application based on MS Bot Framework. And I need implement functionality of long-term history for chat conversations.
After reading tons of manuals, I found out two approaches how can I do this.
Use approach that was described here. This approach uses DirectLine api-endpoint
https://directline.botframework.com/v3/directline/conversations/{convId}/activities
.Implement custom functionality, which will:
- process all conversation activities
- save them to storage(MongoDB),
- provide a possibility to request activities for a specific conversation
- and so on and so on
Variant №1 looks good, but I have some concerns about it. I have found nowhere details about specification DirectLine cache/buffer.
- How long DirectLine stores content (activities that were sent through it) of conversation (conversationId)? What is expiration time for conversationId?
- Can I expect, that I can get content of specific conversation at any time?