正規表現
context に正規表現を定義しておく
{ "output": { "text": "Please ask me a question." }, "context": { "rx": "fish|[0-9]+" } }
condition 部で利用する
input.text.matches(context.rx)
Watson Conversation: condition matching input to context array - Stack Overflow
context に正規表現を定義しておく
{ "output": { "text": "Please ask me a question." }, "context": { "rx": "fish|[0-9]+" } }
condition 部で利用する
input.text.matches(context.rx)
Watson Conversation: condition matching input to context array - Stack Overflow