diff --git a/README.md b/README.md index bfbfa8ef..51e544d0 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,13 @@ Node-RED Watson Nodes for IBM Bluemix CLA assistant +### New in version 0.5.14 +- Bump to latest version of watson-developer-cloud node.js sdk +- Allow empty input into converse for Conversation Node +- Endpoint can now be specified in Natural Language Understanding, Discovery and Discover Query Builder Nodes +- Full Promises implementation for on input processing for Natural Language Understanding Node +- Fix to node.error invocation in Conversation node. + ### New in version 0.5.13 - Personality Insights on Bluemix needed new path to node_modules diff --git a/package.json b/package.json index 089cfade..f43c626d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-watson", - "version": "0.5.13", + "version": "0.5.14", "description": "A collection of Node-RED nodes for IBM Watson services", "dependencies": { "alchemy-api": "^1.3.0", @@ -11,7 +11,7 @@ "temp": "^0.8.3", "qs": "6.x", "image-type": "^2.0.2", - "watson-developer-cloud": "^2.37.0", + "watson-developer-cloud": "^2.39.2", "kuromoji": "^0.1.1", "is-docx": "^0.0.3", "stream-to-array" : "^2.3.0" diff --git a/services/conversation/v1.html b/services/conversation/v1.html index da0ac7d9..75c15e00 100644 --- a/services/conversation/v1.html +++ b/services/conversation/v1.html @@ -59,6 +59,12 @@ +
+ + + +
+
Note: When using with multiple users, msg.user must be set.
See info box for details. @@ -140,6 +146,7 @@ workspaceid: {value: ''}, multiuser: {value: false}, context: {value: true}, + 'empty-payload': {value: false}, 'default-endpoint' :{value: true}, 'service-endpoint' :{value: 'https://gateway.watsonplatform.net/conversation/api'} }, diff --git a/services/conversation/v1.js b/services/conversation/v1.js index caf640f5..a78b2261 100644 --- a/services/conversation/v1.js +++ b/services/conversation/v1.js @@ -36,8 +36,8 @@ module.exports = function(RED) { } : null); }); - function verifyPayload(node, msg) { - if (!msg.payload) { + function verifyPayload(node, msg, config) { + if (!(msg.payload || config['empty-payload'])) { node.status({ fill: 'red', shape: 'ring', @@ -188,7 +188,7 @@ module.exports = function(RED) { function processResponse(err, body, node, msg, config) { if (err !== null && body === null) { - node.error(err); + node.error(err, msg); node.status({ fill: 'red', shape: 'ring', @@ -237,7 +237,7 @@ module.exports = function(RED) { node.status({}); - b = verifyPayload(node, msg); + b = verifyPayload(node, msg, config); if (!b) { return; } diff --git a/services/discovery/v1-query-builder.html b/services/discovery/v1-query-builder.html index 8fd8b482..46c690e4 100644 --- a/services/discovery/v1-query-builder.html +++ b/services/discovery/v1-query-builder.html @@ -49,6 +49,16 @@
+
+ + + +
+
+ + +
+
+
+ + + +
+
+ + +
+