updateContext
actually preserves other data stored in users storage
The following changes were introduced with the v1.4.0 release:
- Added
updateContext
function to middleware. interpret
is just an alias ofreceive
.sendToWatson
is a new alias ofreceive
.- Fixed error handling in
utils.updateContext
. - If any error happens in
receive
, it is assigned tomessage.watsonError
Added minimum confidence like optional config parameter
var middleware = require('botkit-middleware-watson')({
username: process.env.CONVERSATION_USERNAME,
password: process.env.CONVERSATION_PASSWORD,
workspace_id: process.env.WORKSPACE_ID,
minimum_confidence: 0.50, // (Optional) Default is 0.75
});
Fixed the parameters for the after() call in the interpret function.
Fixed the invocation of after() in receive and interpret. The order of invocation is now:
- before()
- conversation()
- after()
The following changes were introduced with the v1.1.0 release:
- Added
interpret
function to middleware. It is to be used when you need to send only heard utterances to Watson. Works like the receive function but needs to be explicitly called.
The following changes were introduced with the v1.0.0 release:
- Breaking Change: Config parameters need to be passed into the function call when requiring the middleware:
var middleware = require('botkit-middleware-watson')({
username: process.env.CONVERSATION_USERNAME,
password: process.env.CONVERSATION_PASSWORD,
workspace_id: process.env.WORKSPACE_ID
});
- Added
hears
function to middleware