Skip to content

Commit 8e99e87

Browse files
authored
Create SendPackage_Export.json
Amazon Lex export in JSON for a simple chatbot that helps customer book a pick-up of a package.
1 parent 4e0de9c commit 8e99e87

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

SendPackage_Export.json

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"metadata": {
3+
"schemaVersion": "1.0",
4+
"importType": "LEX",
5+
"importFormat": "JSON"
6+
},
7+
"resource": {
8+
"name": "SendPackage",
9+
"version": "1",
10+
"fulfillmentActivity": {
11+
"type": "ReturnIntent"
12+
},
13+
"sampleUtterances": [
14+
"I would like to send a package",
15+
"Send a package"
16+
],
17+
"slots": [
18+
{
19+
"sampleUtterances": [],
20+
"slotType": "AMAZON.StreetAddress",
21+
"obfuscationSetting": "NONE",
22+
"slotConstraint": "Required",
23+
"valueElicitationPrompt": {
24+
"messages": [
25+
{
26+
"contentType": "PlainText",
27+
"content": "What address is the package to be picked-up from?"
28+
}
29+
],
30+
"maxAttempts": 2
31+
},
32+
"priority": 1,
33+
"name": "PickupLocation"
34+
},
35+
{
36+
"sampleUtterances": [],
37+
"slotType": "AMAZON.TIME",
38+
"obfuscationSetting": "NONE",
39+
"slotConstraint": "Required",
40+
"valueElicitationPrompt": {
41+
"messages": [
42+
{
43+
"contentType": "PlainText",
44+
"content": "What time will it be available?"
45+
}
46+
],
47+
"maxAttempts": 2
48+
},
49+
"priority": 2,
50+
"name": "TimeAvailable"
51+
}
52+
],
53+
"conclusionStatement": {
54+
"messages": [
55+
{
56+
"groupNumber": 1,
57+
"contentType": "PlainText",
58+
"content": "Thank you. Your package is scheduled for pick-up. It will be picked-up from {PickupLocation} after {TimeAvailable}."
59+
}
60+
]
61+
},
62+
"slotTypes": []
63+
}
64+
}

0 commit comments

Comments
 (0)