|
70 | 70 | <option value="listCounterExamples">List Counter Examples</option> |
71 | 71 | <option value="createCounterExample">Create Counter Example</option> |
72 | 72 | <option value="deleteCounterExample">Delete Counter Example</option> |
| 73 | + <option disabled>______________</option> |
| 74 | + <option value="listEntities">List Entities</option> |
| 75 | + <option value="getEntity">Get Entity Details</option> |
| 76 | + <option value="createEntity">Create Entity</option> |
| 77 | + <option value="updateEntity">Update Entity</option> |
| 78 | + <option value="deleteEntity">Delete Entity</option> |
73 | 79 | </select> |
74 | 80 | </div> |
75 | 81 |
|
|
88 | 94 | <input type="text" id="node-input-cwm-example" placeholder=""> |
89 | 95 | </div> |
90 | 96 |
|
| 97 | + <div class="form-row"> |
| 98 | + <label for="node-input-cwm-entity"><i class="fa fa-book"></i> Entity</label> |
| 99 | + <input type="text" id="node-input-cwm-entity" placeholder=""> |
| 100 | + </div> |
| 101 | + |
91 | 102 | <div class="form-row"> |
92 | 103 | <label for="node-input-cwm-export-content"><i class="fa fa-book"></i> Export All Content</label> |
93 | 104 | <input type="checkbox" id="node-input-cwm-export-content" placeholder=""> |
|
206 | 217 | specified conversation workspace. |
207 | 218 | </p> |
208 | 219 | </li> |
| 220 | + <li>list Entities |
| 221 | + <p>In this mode a list of all entities for the specified conversation |
| 222 | + workspace are returned on |
| 223 | + <code>msg.entities</code> |
| 224 | + </p> |
| 225 | + </li> |
| 226 | + <li>Get Entity |
| 227 | + <p>In this mode all information about the specified entity |
| 228 | + is retrieved. The information is returned on |
| 229 | + <code>msg.entity</code> |
| 230 | + </p> |
| 231 | + </li> |
| 232 | + <li>Create Entity |
| 233 | + <p>In this mode, a new entity is created in the specified workspace. |
| 234 | + The input json structure |
| 235 | + defining the content of the new entity |
| 236 | + should be passed in |
| 237 | + as <code>msg.payload</code> |
| 238 | + </p> |
| 239 | + </li> |
| 240 | + <li>Update Entity |
| 241 | + <p>In this mode, the specified entity is updated. The input json structure |
| 242 | + defining the content of the updates |
| 243 | + should be passed in |
| 244 | + as <code>msg.payload</code>. Only the elements need to be included |
| 245 | + in the json. Any included element will override the existing setting |
| 246 | + for the element. ie. Any existing elements will |
| 247 | + be overridden. ie. If any element is not mentioned in the json, then it |
| 248 | + will be deleted. |
| 249 | + You can use this mode to rename an entity. |
| 250 | + </p> |
| 251 | + </li> |
| 252 | + <li>Delete Entity |
| 253 | + <p>In this mode the selected entity is removed from the worskpace. |
| 254 | + </p> |
| 255 | + </li> |
209 | 256 |
|
210 | 257 | </ul> |
211 | 258 |
|
|
246 | 293 | fields.push('#node-input-cwm-workspace-id' |
247 | 294 | + ', #node-input-cwm-intent' |
248 | 295 | + ', #node-input-cwm-example' |
| 296 | + + ', #node-input-cwm-entity' |
249 | 297 | + ', #node-input-cwm-export-content' |
250 | 298 | + ', #node-input-cwm-service-endpoint'); |
251 | 299 |
|
|
260 | 308 | switch (method) { |
261 | 309 | case 'getWorkspace': |
262 | 310 | case 'listIntents': |
| 311 | + case 'listEntities': |
263 | 312 | fields.push('#node-input-cwm-workspace-id' |
264 | 313 | + ', #node-input-cwm-export-content'); |
265 | 314 | break; |
|
285 | 334 | fields.push('#node-input-cwm-workspace-id' |
286 | 335 | + ', #node-input-cwm-example'); |
287 | 336 | break; |
| 337 | + case 'getEntity': |
| 338 | + fields.push('#node-input-cwm-workspace-id' |
| 339 | + + ', #node-input-cwm-entity' |
| 340 | + + ', #node-input-cwm-export-content'); |
| 341 | + break; |
| 342 | + case 'updateEntity': |
| 343 | + case 'deleteEntity': |
| 344 | + fields.push('#node-input-cwm-workspace-id' |
| 345 | + + ', #node-input-cwm-entity'); |
| 346 | + break; |
288 | 347 | case 'deleteWorkspace': |
289 | 348 | case 'updateWorkspace': |
290 | 349 | case 'createIntent': |
| 350 | + case 'createEntity': |
291 | 351 | case 'listCounterExamples': |
292 | 352 | fields.push('#node-input-cwm-workspace-id'); |
293 | 353 | break; |
|
345 | 405 | 'cwm-workspace-id': {value:""}, |
346 | 406 | 'cwm-intent': {value:""}, |
347 | 407 | 'cwm-example': {value:""}, |
| 408 | + 'cwm-entity': {value:""}, |
348 | 409 | 'cwm-export-content': {value:false}, |
349 | 410 | 'cwm-default-endpoint' :{value: true}, |
350 | 411 | 'cwm-service-endpoint' :{value: 'https://gateway.watsonplatform.net/conversation/api'} |
|
0 commit comments