watson-assistant

NPM ELIFECYCLE error - using node server.js command

瘦欲@ 提交于 2019-11-29 02:28:28
问题 I am deploying test-bot on ibm watson as described here https://github.com/eciggaar/text-bot and when I am trying to deploy code locally using CLI foundry it is getting the following errors. I am using Nodejs version 6.10.3 and npm version 5.0.4 can someone please help me with this. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! text-bot@0.1.2 start: `node server.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the text-bot@0.1.2 start script. npm ERR! This is probably not a problem

How to remove a context variable in Watson Assistant service on IBM Cloud

﹥>﹥吖頭↗ 提交于 2019-11-28 02:10:35
I am using this, but this only sets it to empty, { "context": { "time": "", "place": "", "things": "", "transport": "" }, "output": {} } I also tried "time": "null" and "time": "$time.remove" For those using Watson Assistant on an older API version: The best is to use context.remove() in the output section . I usually have an extra child node for cleanup. { "output": { "text": {}, "deleted": "<? context.remove('eventName') ?> <? context.remove('queryPredicate') ?>" } } Because deleted is not part of the context section it won't be carried forward. For those on recent API versions of Watson

How do I add an action to watson conversation response?

北战南征 提交于 2019-11-27 05:37:09
I've created intent, entity and dialog without a problem. But right now I'm trying to make it so when the user send "goodbye", the application would close. According to the doc, I'll have to name an action that goes along with an intent. How do I do that? Is it through code or through the conversation workspace platform? You can use context variables or action variables for that. How to use context variables? Add in your Advance response the "context" and the values, check my example. I've used the conversation simple for that. In your Watson Developer Cloud - IBM Bluemix - Watson Conversation

How to remove a context variable in Watson Assistant service on IBM Cloud

非 Y 不嫁゛ 提交于 2019-11-27 04:53:06
问题 I am using this, but this only sets it to empty, { "context": { "time": "", "place": "", "things": "", "transport": "" }, "output": {} } I also tried "time": "null" and "time": "$time.remove" 回答1: For those using Watson Assistant on an older API version: The best is to use context.remove() in the output section. I usually have an extra child node for cleanup. { "output": { "text": {}, "deleted": "<? context.remove('eventName') ?> <? context.remove('queryPredicate') ?>" } } Because deleted is