|
16 | 16 |
|
17 | 17 | > TODO: We should look at the schema and if a few items list them or do cards or.. |
18 | 18 | # askEnum(property) |
19 | | -- Which value do you want for @{name(property)}? |
| 19 | +- ``` |
| 20 | +@{askHelp()} |
| 21 | +Which value do you want for @{name(property)}? |
| 22 | +``` |
20 | 23 |
|
21 | 24 | # askNumber(property) |
22 | 25 | - IF: @{turn.schema.properties[property].minimum && turn.schema.properties[property].maximum} |
|
27 | 30 | # askString(property) |
28 | 31 | - Enter a value for @{name(property)} |
29 | 32 |
|
| 33 | +# askHelp |
| 34 | +- IF: @{and($retries, $retries > 0, toLower($lastIntent)!='help')} |
| 35 | +- @{join(foreach($expectedProperties, expected, help1(expected)), '\n')} |
| 36 | +- ELSE: |
| 37 | +- |
| 38 | + |
30 | 39 | # help(property) |
31 | 40 | - IF: @{property} |
32 | 41 | - @{help1(property)} |
|
61 | 70 | - @{foreach(turn.schema.properties[property].enum, enum, value(property, enum))} |
62 | 71 |
|
63 | 72 | # clarifyEnumEntity(property) |
64 | | -- Please choose a value for @{name(property)} from \[@{join(foreach(turn.dialogEvent.value.entity.value, val, enumEntityValue(property, val)), ', ')}\] |
| 73 | +- ``` |
| 74 | +@{askHelp()} |
| 75 | +Please choose a value for @{name(property)} from \[@{join(foreach(turn.dialogEvent.value.entity.value, val, enumEntityValue(property, val)), ', ')}\] |
| 76 | +``` |
65 | 77 |
|
66 | 78 | # cancel |
67 | 79 | - Do you want to end the conversation? (yes/no) |
68 | 80 |
|
| 81 | +# setPropertyMessage(property, val) |
| 82 | +- IF: @{contains($expectedProperties, property)} |
| 83 | +- |
| 84 | +- ELSE: |
| 85 | +- @{setUnexpectedPropertyMessage(property, val)} |
| 86 | + |
| 87 | +# setUnexpectedPropertyMessage(property, val) |
| 88 | +- IF:@{dialog[property]} |
| 89 | +- @{unexpectedPropertyChange(property, val, dialog[property])} |
| 90 | +- ELSE: |
| 91 | +- @{unexpectedPropertySet(property, val)} |
| 92 | + |
69 | 93 | # unexpectedPropertySet(property, val) |
70 | 94 | - @{name(property)} is set as @{value(property, val)}. |
71 | 95 |
|
|
125 | 149 | - Which property do you want to change? |
126 | 150 |
|
127 | 151 | # notUnderstood |
128 | | -- Sorry, I do not understand @{join(foreach(turn.unrecognizedtext, chunk, concat("'", chunk, "'")), ' or ')}\n\n@{help(null)} |
| 152 | +- Sorry, I do not understand @{join(foreach(turn.unrecognizedtext, chunk, concat("'", chunk, "'")), ' or ')}\n |
129 | 153 |
|
130 | 154 | # CompleteConfirmationName |
131 | 155 | - confirmation |
|
0 commit comments