Permalink
Browse files

Updated example.

  • Loading branch information...
1 parent 3eff592 commit 004482b53b901fc34066a27d6327d0c2ded80030 @primaryobjects committed Oct 18, 2016
Showing with 5 additions and 2 deletions.
  1. +5 −2 pickfruit.js
View
@@ -1,3 +1,6 @@
+//
+// Example of using a dictionary to allow the user to choose from a pre-selected list of values in a custom slot type.
+//
var chatskills = require('./lib/chatskills');
// Create a new skill.
@@ -14,8 +17,8 @@ pickFruit.intent('run', {
}
);
-// Using the Custom Slot Type "ColorType".
-pickFruit.intent('color',{
+// Using the Custom Slot Type "FruitType", with values from a dictionary.
+pickFruit.intent('fruit',{
"slots":{"FruitType":"FRUITTYPE"}
,"utterances":["I choose {fruits|FruitType}",
"{fruits|FruitType}"]

0 comments on commit 004482b

Please sign in to comment.