Slack-App-Watson: Watson looses intent from previous message received

心已入冬 提交于 2019-12-04 18:52:07

I found the solution! The problem was that I did not tell Watson my user had already started a conversation with him (it?).

I made a simple piece of code which stores the existing context grouped by Slack's user_id. If a context already exists for this user_id, then my app will call Watson API and append this context to the request, so Watson knows that this new User's input follows a previous one.

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