Skip to content

Commit 0f1ecbe

Browse files
authored
Merge branch 'master' into master
2 parents d5677b1 + dbfcc56 commit 0f1ecbe

File tree

13 files changed

+1036
-73
lines changed

13 files changed

+1036
-73
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ Node-RED Watson Nodes for IBM Bluemix
77

88
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>
99

10+
### New in version 0.5.23
11+
- Allow file name to be configured in Add Document node.
12+
13+
### New in version 0.5.22
14+
- Allow payload as json for Add Document node.
15+
16+
### New in version 0.5.21
17+
- New node for Add Document for Discovery.
18+
- Natural Language Understanding Node fix for credentials check.
19+
20+
### New in version 0.5.20
21+
- Added experimental neural translation as a config option to translation node.
22+
23+
### New in version 0.5.19
24+
- Update Supported audio file check in Speech to Text Node.
25+
- Remove Continuous flag from Speech to Text Node.
26+
- Add Alternatives and Smart Formatting options to Speech to Text Node.
27+
28+
### New in version 0.5.18
29+
- Allow Conversation Workspace Manager node to be dynamically configured.
30+
31+
### New in version 0.5.17
32+
- CRUD methods for Entity Values and Dialog Nodes in Conversation Workspace Manager node.
33+
1034
### New in version 0.5.16
1135
- Implement methods to manage Entities in Conversation workspace Manager node.
1236
- Create Collection Language fix in Discovery Node.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.5.16",
3+
"version": "0.5.23",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"alchemy-api": "^1.3.0",
@@ -11,7 +11,7 @@
1111
"temp": "^0.8.3",
1212
"qs": "6.x",
1313
"image-type": "^2.0.2",
14-
"watson-developer-cloud": "^2.40.0",
14+
"watson-developer-cloud": "^2.40.1",
1515
"kuromoji": "^0.1.1",
1616
"is-docx": "^0.0.3",
1717
"stream-to-array" : "^2.3.0"
@@ -36,6 +36,7 @@
3636
"watson-conversation-v1":"services/conversation/v1.js",
3737
"watson-conversation-workspace-manager-v1":"services/conversation/v1-workspace-manager.js",
3838
"watson-discovery-v1":"services/discovery/v1.js",
39+
"watson-discovery-v1-document-loader":"services/discovery/v1-document-loader.js",
3940
"watson-discovery-v1-query-builder":"services/discovery/v1-query-builder.js",
4041
"watson-document-conversion-v1": "services/document_conversion/v1.js",
4142
"watson-concept-insights-v2": "services/concept_insights/v2.js",

services/conversation/v1-workspace-manager.html

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@
7676
<option value="createEntity">Create Entity</option>
7777
<option value="updateEntity">Update Entity</option>
7878
<option value="deleteEntity">Delete Entity</option>
79+
<option disabled>______________</option>
80+
<option value="listEntityValues">List Entity Values</option>
81+
<option value="getEntityValue">Get Entity Value Details</option>
82+
<option value="addEntityValue">Add Entity Value</option>
83+
<option value="updateEntityValue">Update Entity Value</option>
84+
<option value="deleteEntityValue">Delete Entity Value</option>
85+
<option disabled>______________</option>
86+
<option value="listDialogNodes">List Dialog Nodes</option>
87+
<option value="getDialogNode">Get Dialog Node Details</option>
88+
<option value="createDialogNode">Create Dialog Node</option>
89+
<option value="updateDialogNode">Update Dialog Node</option>
90+
<option value="deleteDialogNode">Delete Dialog Node</option>
7991
</select>
8092
</div>
8193

@@ -99,6 +111,16 @@
99111
<input type="text" id="node-input-cwm-entity" placeholder="">
100112
</div>
101113

114+
<div class="form-row">
115+
<label for="node-input-cwm-entity-value"><i class="fa fa-book"></i> Entity Value</label>
116+
<input type="text" id="node-input-cwm-entity-value" placeholder="">
117+
</div>
118+
119+
<div class="form-row">
120+
<label for="node-input-cwm-dialog-node"><i class="fa fa-book"></i> Dialog Node ID</label>
121+
<input type="text" id="node-input-cwm-dialog-node" placeholder="">
122+
</div>
123+
102124
<div class="form-row">
103125
<label for="node-input-cwm-export-content"><i class="fa fa-book"></i> Export All Content</label>
104126
<input type="checkbox" id="node-input-cwm-export-content" placeholder="">
@@ -253,8 +275,144 @@
253275
<p>In this mode the selected entity is removed from the worskpace.
254276
</p>
255277
</li>
278+
<li>list Entity Values
279+
<p>In this mode a list of all values for an entitu for the specified conversation
280+
workspace are returned on
281+
<code>msg.values</code>
282+
</p>
283+
</li>
284+
<li>Get Entity Value
285+
<p>In this mode all information about the specified entity value
286+
is retrieved. The information is returned on
287+
<code>msg.value</code>
288+
</p>
289+
</li>
290+
<li>Add Entity Value
291+
<p>In this mode, a new entity value is created in the specified workspace.
292+
The input json structure
293+
defining the content of the new entity value
294+
should be passed in
295+
as <code>msg.value</code>
296+
</p>
297+
</li>
298+
<li>Update Entity Value
299+
<p>In this mode, the specified entity value is updated. The input json
300+
structure
301+
defining the content of the updates
302+
should be passed in
303+
as <code>msg.payload</code>. Only the elements need to be included
304+
in the json. Any included element will override the existing setting
305+
for the element. ie. Any existing elements will
306+
be overridden. ie. If any element is not mentioned in the json, then it
307+
will be deleted.
308+
You can use this mode to rename an entity value.
309+
</p>
310+
</li>
311+
<li>Delete Entity Value
312+
<p>In this mode the selected entity value is removed from the worskpace.
313+
</p>
314+
</li>
315+
<li>list Dialog Nodes
316+
<p>In this mode a list of all dialog nodes for the specified conversation
317+
workspace are returned on
318+
<code>msg.dialog_nodes</code>
319+
</p>
320+
</li>
321+
<li>Get Dialog Node
322+
<p>In this mode all information about the dialog node
323+
is retrieved. The information is returned on
324+
<code>msg.dialog_node</code>
325+
</p>
326+
</li>
327+
<li>Create Dialog Node
328+
<p>In this mode, a new dialog node is created. The input json structure
329+
defining the content of the node
330+
should be passed in
331+
as <code>msg.payload</code>.
332+
</p>
333+
</li>
334+
<li>Update Dialog Node
335+
<p>In this mode, the specified dialog node is updated. The input json structure
336+
defining the content of the updates
337+
should be passed in
338+
as <code>msg.payload</code>.
339+
</p>
340+
</li>
341+
<li>Delete Dialog Node
342+
<p>In this mode the selected dialog node is removed from the worskpace.
343+
</p>
344+
</li>
345+
</ul>
346+
347+
<p>The node configurations can be overridden by setting
348+
<ul>
349+
<li>
350+
<code>msg.params.username</code>
351+
</li>
352+
<li>
353+
<code>msg.params.password</code>
354+
</li>
355+
<li>
356+
<code>msg.params.workspace_id</code>
357+
</li>
358+
<li>
359+
<code>msg.params.intent</code>
360+
</li>
361+
<li>
362+
<code>msg.params.example</code>
363+
</li>
364+
<li>
365+
<code>msg.params.entity</code>
366+
</li>
367+
<li>
368+
<code>msg.params.entity_value</code>
369+
</li>
370+
<li>
371+
<code>msg.params.dialog_node</code>
372+
</li>
373+
374+
<li>
375+
<code>msg.params.method</code>
376+
<p>to one of the following values:
377+
<select>
378+
<option> listWorkspaces </option>
379+
<option> getWorkspace </option>
380+
<option> createWorkspace </option>
381+
<option> updateWorkspace </option>
382+
<option> deleteWorkspace </option>
383+
<option> listIntents </option>
384+
<option> getIntent </option>
385+
<option> createIntent </option>
386+
<option> updateIntent </option>
387+
<option> deleteIntent </option>
388+
<option> listExamples </option>
389+
<option> createExample </option>
390+
<option> deleteExample </option>
391+
<option> listCounterExamples </option>
392+
<option> createCounterExample</option>
393+
<option> deleteCounterExample </option>
394+
<option> listEntities </option>
395+
<option> getEntity </option>
396+
<option> createEntity </option>
397+
<option> updateEntity </option>
398+
<option> deleteEntity </option>
399+
<option> listEntityValues </option>
400+
<option> getEntityValue </option>
401+
<option> addEntityValue </option>
402+
<option> updateEntityValue </option>
403+
<option> deleteEntityValue </option>
404+
<option> listDialogNodes </option>
405+
<option> getDialogNode </option>
406+
<option> createDialogNode </option>
407+
<option> updateDialogNode </option>
408+
<option> deleteDialogNode </option>
409+
</select>
410+
</p>
256411

412+
413+
</li>
257414
</ul>
415+
</p>
258416

259417
<p>For more information about the conversation service,
260418
read the <a href="https://www.ibm.com/watson/developercloud/doc/conversation/index.html">
@@ -294,6 +452,8 @@
294452
+ ', #node-input-cwm-intent'
295453
+ ', #node-input-cwm-example'
296454
+ ', #node-input-cwm-entity'
455+
+ ', #node-input-cwm-entity-value'
456+
+ ', #node-input-cwm-dialog-node'
297457
+ ', #node-input-cwm-export-content'
298458
+ ', #node-input-cwm-service-endpoint');
299459

@@ -335,20 +495,42 @@
335495
+ ', #node-input-cwm-example');
336496
break;
337497
case 'getEntity':
498+
case 'listEntityValues':
499+
fields.push('#node-input-cwm-workspace-id'
500+
+ ', #node-input-cwm-entity'
501+
+ ', #node-input-cwm-export-content');
502+
break;
503+
case 'getEntityValue':
338504
fields.push('#node-input-cwm-workspace-id'
339505
+ ', #node-input-cwm-entity'
506+
+ ', #node-input-cwm-entity-value'
340507
+ ', #node-input-cwm-export-content');
341508
break;
342509
case 'updateEntity':
343510
case 'deleteEntity':
344511
fields.push('#node-input-cwm-workspace-id'
345512
+ ', #node-input-cwm-entity');
346513
break;
514+
case 'getDialogNode':
515+
case 'updateDialogNode':
516+
case 'deleteDialogNode':
517+
fields.push('#node-input-cwm-workspace-id'
518+
+ ', #node-input-cwm-dialog-node');
519+
break;
520+
case 'addEntityValue':
521+
case 'updateEntityValue':
522+
case 'deleteEntityValue':
523+
fields.push('#node-input-cwm-workspace-id'
524+
+ ', #node-input-cwm-entity'
525+
+ ', #node-input-cwm-entity-value');
526+
break;
347527
case 'deleteWorkspace':
348528
case 'updateWorkspace':
349529
case 'createIntent':
350530
case 'createEntity':
351531
case 'listCounterExamples':
532+
case 'listDialogNodes':
533+
case 'createDialogNode':
352534
fields.push('#node-input-cwm-workspace-id');
353535
break;
354536
case 'listWorkspaces':
@@ -406,6 +588,8 @@
406588
'cwm-intent': {value:""},
407589
'cwm-example': {value:""},
408590
'cwm-entity': {value:""},
591+
'cwm-entity-value': {value:""},
592+
'cwm-dialog-node': {value:""},
409593
'cwm-export-content': {value:false},
410594
'cwm-default-endpoint' :{value: true},
411595
'cwm-service-endpoint' :{value: 'https://gateway.watsonplatform.net/conversation/api'}

0 commit comments

Comments
 (0)