30721

Request confirmation on lower confidence levels in Watson Conversation

Question:

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:

<ol><li>Create one node that matches at high confidence</li> <li>Create a node underneath that matches at a lower level. If I get confirmation, route back to first node, bypassing the condition.</li> </ol>

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

Answer1:

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 <a href="https://github.com/watson-developer-cloud/conversation-simple/blob/master/app.js#L77" rel="nofollow">example</a> from IBM Developers with Nodejs.

Recommend

  • Randomize RGB in HTML5 Canvas with a new value for each fillRect using Javascript
  • INNO setup serial number validating failing?
  • CMSIS-RTOS's osMailFree() returns some address instead of osStatus-type value
  • Get all text between tags with preg_match_all() or better function?
  • autocomplete with ajax. jQuery plugin or jQuery UI widget?
  • Rails UJS: Preventing the event from propagating using “'ajax:before'”
  • Column Nullability/Optionality: NULL vs NOT NULL
  • Why does the first run of “XCTestCase -measureBlock:” takes so much time?
  • Merge list of objects into consistent list based on common matching attribute in Python
  • Get rendered html code in Backing Component from Composite Component
  • Insert records if not exist SQL Server 2005
  • Neo4j: Legacy Indexes and auto index vs new label bases schema indexes
  • How to add learning rate to summaries?
  • d3.js selection conditional rendering
  • Unique Permutations - with exceptions
  • Watson Conversation - Why is the ANYTHING ELSE node not chosen
  • Local Development, Apache vs Developer - file permissions
  • Cloud Code function running twice
  • Simple linked list-C
  • Hide HTML elements without javascript, only CSS
  • Why use database factory in asp.net mvc?
  • std::remove_copy_if_ valgrind bytes in block are possibly lost in loss record
  • CakePHP ACL tutorial initDB function warnings
  • presentShareDialogWithParams posts to FB wall, but callback handler results say error
  • How to write order and limit within cakephp joins array
  • How to have background script and something similar to a default popup?
  • Avoid links criss cross / overlap in d3.js using force layout
  • Regex thinks I'm nesting, but I'm not
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • WinForms: two way TextBox problem
  • MySQL WHERE-condition in procedure ignored
  • R: gsub and capture
  • Comma separated Values
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • how does django model after text[] in postgresql [duplicate]
  • Django query for large number of relationships
  • How can i traverse a binary tree from right to left in java?
  • Why do underscore prefixed variables exist?