I made a conversation bot with Bluemix Watson Conversation and connected it with a chat app. But I have a problem.
My bot asked something and was waiting for response from user - user finished the conversation but didn’t get out of the app. And user came back after a few hours and tried to start new conversation with my bot. (ex. Greeting hi bot!) But the conversation was continued from the point where previous conversation was stopped.
I want to prevent that problem by setting a time limit. If user doesn’t response within the time limit, the original conversation will end. How can I do this?
In this case, I had the same question a few weeks ago. And I search about that. Inside dwAnswers I did what I need to do that.
You need to write this into your application code.
The Conversation Service just returns a json
and it's up to your app to know what to do with it.
Or, you could create a context variable
for delay the timeout, and that cues your app to delay. But it will require custom code too!
Reference: dwAnswers - IBM Developer Official.