- Added semantic-releases
- Update node-sdk to 3.7.0
- Update to use the Watson Assistant class
- Fixed function signatures in Typescript definition file
- New methods sendToWatsonAsync, interpretAsync, readContextAsync, updateContextAsync return promises.
- Exported readContext method.
- sendToWatson method can update context.
- Added Typescript definition.
- Empty message with type=welcome can be used to indicate welcome event.
- Fixed critical issue introduced in v1.4.1
- updateContext fails on first write for a new user when simple storage is used (It happens because simple storage returns an error when record does not exist).
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