Request confirmation on lower confidence levels in Watson Conversation

我与影子孤独终老i 提交于 2020-01-17 10:19:06

问题


I know how to set conditions based on intent match and confidence level. I would like to proceed with a flow if the confidence is above a certain threshold, and request confirmation if it is in a mid-range before proceeding with the flow.

I can do this by doubling the nodes:

  1. Create one node that matches at high confidence
  2. Create a node underneath that matches at a lower level. If I get confirmation, route back to first node, bypassing the condition.

Is there a better pattern that doesn't duplicate all nodes?


回答1:


I'm confused by your question, but, I believe you want make condition base on intent and confidence from intent. Right?

Well, I believe you can do this with code... And let Watson work only for the intelligence of the understandings of intentions and point the confidence. Or you can create a single node throughout the conversation as:

if intent.confidence >= 0.75

Response: I did not understand your question.

Or, with code for each set condition and intent, like:

if(intent[0].intents === 'requestPizza' && intent.confidence >= 0.75) {

data.output.text[0] = "Hey, you want request pizza or you want to know how to request pizza?";

}

See one example from IBM Developers with Nodejs.



来源:https://stackoverflow.com/questions/44051198/request-confirmation-on-lower-confidence-levels-in-watson-conversation

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