I'm using Watson Conversation and trying to conditionally set a context variable.
In response to a question we ask, some people say "yes," some say "no," and some say "no, but my husband has" (or some similar variations). I have the entity @other_person that recognizes "husband" (and wife, and friend, etc).
What I'm trying to do is set a context variable $mentionother to true if they mention another person, and false otherwise.
So far I have this, but it's not working and I can't quite figure it out. I haven't been able to find good documentation on this so I may be way off.
"context": {
"mentionother": "(@other_person==null ? false : true)"
}
Can anyone provide some help here, and/or tell me where to look for better documentation on this?
I'm actually not 100% sure what language to look under; I think I've read this is Java but I'm out of practice so not positive.