eg!
Description
eg! — an example group. When there a multiple examples for comparison, the e tag is impractical. You can use the eg! tag and specify the required number of examples in a separate reference file. The reference file can be specified both in the platform’s GUI and manually.
A global tag. Accepts requests from any part of the script.
Value type
- multiline string
Parameters
- none
Nested data
- multiline data
How to use
Specify a group of examples in the examples.json file:
{
"classes" : [
{
"id" : "",
"path" : "/PlayGames/Games",
"description" : "",
"disabled" : false,
"phrases" : [
"let’s play some games"
]
},
{
"id" : "",
"path" : "/PlayGames/Games/CanYouPlay",
"description" : "",
"disabled" : false,
"phrases" : [
"can you play a game?",
"do you know any games?",
"do you know how to play?"
]
}
]
}Script:
state: HaveAQuestion
q: * ($yes|$agree|*play*) *
eg!: PlayGames.Games.CanYouPlay
go!: /PlayGames/Games
state: NoQuestions
q: * ((don't want*|need*)|no time) to (play*) [cit*|number*|digit*|riddle*] *
q: * ($no|$disagree|don't (start|start*|want|need*)) *
go!: /PlayGames/Games/IDontWantToPlay