You would need to use the Twitter account activity API to subscribe to direct messages, and then call the Watson Assistant API when you receive a message.
The slot variables are just context variables so they will live until removed. You can either set them to “null” in the dialog or remove them in your application
The life of a conversation is managed by the application — when calling Conversation it returns the context (which contains the variables and some state…
Hi Kelly, for the adventure game the source is available at https://github.com/snrubnomis/watson-adventure
I think if I were building an adventure game today I would probably structure the dialog differently than I did, e.g. keep the dialog flatter and use a context variable to track which location you are in
Hi Edward. The interface has changed a bit since this was written. Now if you click on the 3 dots at the top of the Configure Slot modal and select “Enable conditional responses”, you can add multiple Found and Not Found responses. You can also click on the cog button beside each one to open a modal for the response. In that modal, there is a 3 dot button to open the JSON editor for that response
The dialog itself won’t generally end - that would be up to the calling app to decide when to end it. You could set a context variable at the relevant point in the dialog and then have your app look for that variable.
If you really have to do it in the dialog you would have to trap the user in a flow that can’t be got out of.
You can use a “found” handler to check the values. So assuming your first slot gets the number of people and the second gets the nationalities. Add a “found” handler to the nationality slot and give it a condition like:
entities.nationality.size() != $numberspeople
Well done on discovering the murderer! And thanks for sharing your experience. As you’ll have seen there’s plenty of work still to do on “broadening” the characters so they can handle a wider range of what people say to them.
In terms of the murderer admitting it – that should happen if you accuse the killer after working…