|
76 | 76 | <option value="createEntity">Create Entity</option> |
77 | 77 | <option value="updateEntity">Update Entity</option> |
78 | 78 | <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> |
79 | 91 | </select> |
80 | 92 | </div> |
81 | 93 |
|
|
99 | 111 | <input type="text" id="node-input-cwm-entity" placeholder=""> |
100 | 112 | </div> |
101 | 113 |
|
| 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 | + |
102 | 124 | <div class="form-row"> |
103 | 125 | <label for="node-input-cwm-export-content"><i class="fa fa-book"></i> Export All Content</label> |
104 | 126 | <input type="checkbox" id="node-input-cwm-export-content" placeholder=""> |
|
253 | 275 | <p>In this mode the selected entity is removed from the worskpace. |
254 | 276 | </p> |
255 | 277 | </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> |
256 | 411 |
|
| 412 | + |
| 413 | + </li> |
257 | 414 | </ul> |
| 415 | + </p> |
258 | 416 |
|
259 | 417 | <p>For more information about the conversation service, |
260 | 418 | read the <a href="https://www.ibm.com/watson/developercloud/doc/conversation/index.html"> |
|
294 | 452 | + ', #node-input-cwm-intent' |
295 | 453 | + ', #node-input-cwm-example' |
296 | 454 | + ', #node-input-cwm-entity' |
| 455 | + + ', #node-input-cwm-entity-value' |
| 456 | + + ', #node-input-cwm-dialog-node' |
297 | 457 | + ', #node-input-cwm-export-content' |
298 | 458 | + ', #node-input-cwm-service-endpoint'); |
299 | 459 |
|
|
335 | 495 | + ', #node-input-cwm-example'); |
336 | 496 | break; |
337 | 497 | 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': |
338 | 504 | fields.push('#node-input-cwm-workspace-id' |
339 | 505 | + ', #node-input-cwm-entity' |
| 506 | + + ', #node-input-cwm-entity-value' |
340 | 507 | + ', #node-input-cwm-export-content'); |
341 | 508 | break; |
342 | 509 | case 'updateEntity': |
343 | 510 | case 'deleteEntity': |
344 | 511 | fields.push('#node-input-cwm-workspace-id' |
345 | 512 | + ', #node-input-cwm-entity'); |
346 | 513 | 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; |
347 | 527 | case 'deleteWorkspace': |
348 | 528 | case 'updateWorkspace': |
349 | 529 | case 'createIntent': |
350 | 530 | case 'createEntity': |
351 | 531 | case 'listCounterExamples': |
| 532 | + case 'listDialogNodes': |
| 533 | + case 'createDialogNode': |
352 | 534 | fields.push('#node-input-cwm-workspace-id'); |
353 | 535 | break; |
354 | 536 | case 'listWorkspaces': |
|
406 | 588 | 'cwm-intent': {value:""}, |
407 | 589 | 'cwm-example': {value:""}, |
408 | 590 | 'cwm-entity': {value:""}, |
| 591 | + 'cwm-entity-value': {value:""}, |
| 592 | + 'cwm-dialog-node': {value:""}, |
409 | 593 | 'cwm-export-content': {value:false}, |
410 | 594 | 'cwm-default-endpoint' :{value: true}, |
411 | 595 | 'cwm-service-endpoint' :{value: 'https://gateway.watsonplatform.net/conversation/api'} |
|
0 commit comments