forked from aws-samples/aws-lex-web-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot-definition.json
185 lines (185 loc) · 5.41 KB
/
bot-definition.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
"bot": {
"abortStatement": {
"messages": [
{
"content": "Sorry, I'm not able to assist at this time",
"contentType": "PlainText"
}
]
},
"childDirected": false,
"clarificationPrompt": {
"maxAttempts": 2,
"messages": [
{
"content": "I didn't understand you, what would you like to do?",
"contentType": "PlainText"
}
]
},
"description": "Bot to order flowers on the behalf of a user",
"idleSessionTTLInSeconds": 600,
"intents": [
{
"intentName": "OrderFlowers",
"intentVersion": "$LATEST"
}
],
"locale": "en-US",
"name": "OrderFlowers",
"voiceId": "Salli"
},
"intents": [
{
"confirmationPrompt": {
"maxAttempts": 2,
"messages": [
{
"content": "Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?",
"contentType": "PlainText"
},
{
"content": "Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}, and will cost [Price] dollars. Does this sound okay?",
"contentType": "PlainText"
}
]
},
"conclusionStatement": {
"messages": [
{
"groupNumber": 1,
"contentType": "PlainText",
"content": "Thanks for your order"
}
]
},
"description": "Intent to order a bouquet of flowers for pick up",
"fulfillmentActivity": {
"type": "ReturnIntent"
},
"name": "OrderFlowers",
"rejectionStatement": {
"messages": [
{
"content": "Okay, I will not place your order.",
"contentType": "PlainText"
}
]
},
"sampleUtterances": [
"I would like to order some flowers",
"I would like to buy some flowers",
"I would like to pick up flowers",
"I would like to order flowers",
"I would like to buy flowers",
"Can I please get flowers",
"May I please get flowers",
"I want to place an order",
"I want to order flowers",
"I want to buy flowers",
"May I order flowers",
"Can I order flowers",
"Can I buy flowers",
"Can I get flowers",
"May I get flowers",
"May I buy flowers",
"I want to order",
"I want flowers",
"place an order",
"I want to buy",
"make an order",
"order flowers",
"buy flowers",
"put an order",
"can I order",
"place order",
"make order",
"order",
"buy"
],
"slots": [
{
"description": "The time to pick up the flowers",
"name": "PickupTime",
"priority": 3,
"sampleUtterances": [],
"slotConstraint": "Required",
"slotType": "AMAZON.TIME",
"valueElicitationPrompt": {
"maxAttempts": 2,
"messages": [
{
"content": "At what time do you want the {FlowerType} to be picked up?",
"contentType": "PlainText"
},
{
"content": "Pick up the {FlowerType} at what time on {PickupDate}?",
"contentType": "PlainText"
}
]
}
},
{
"description": "The type of flowers to pick up",
"name": "FlowerType",
"priority": 1,
"sampleUtterances": [
"I would like to order {FlowerType}"
],
"slotConstraint": "Required",
"slotType": "FlowerTypes",
"slotTypeVersion": "$LATEST",
"valueElicitationPrompt": {
"maxAttempts": 2,
"messages": [
{
"content": "What type of flowers would you like to order?",
"contentType": "PlainText"
}
],
"responseCard": "{\"version\":1,\"contentType\":\"application/vnd.amazonaws.card.generic\",\"genericAttachments\":[{\"imageUrl\":\"https://s3.amazonaws.com/aws-bigdata-blog/artifacts/aws-lex-web-ui/artifacts/flowers.jpeg\",\"subTitle\":\"Pick a Flower Type\",\"title\":\"Flower Types\",\"buttons\":[{\"text\":\"Roses\",\"value\":\"roses\"},{\"text\":\"Lilies\",\"value\":\"lilies\"},{\"text\":\"Tulips\",\"value\":\"tulips\"}]}]}"
}
},
{
"description": "The date to pick up the flowers",
"name": "PickupDate",
"priority": 2,
"sampleUtterances": [],
"slotConstraint": "Required",
"slotType": "AMAZON.DATE",
"valueElicitationPrompt": {
"maxAttempts": 2,
"messages": [
{
"content": "What day do you want the {FlowerType} to be picked up?",
"contentType": "PlainText"
},
{
"content": "Pick up the {FlowerType} at {PickupTime} on what day?",
"contentType": "PlainText"
}
]
}
}
]
}
],
"slot_types": [
{
"description": "Types of flowers to pick up",
"enumerationValues": [
{
"value": "tulips"
},
{
"value": "lilies"
},
{
"value": "roses"
}
],
"name": "FlowerTypes"
}
]
}