|
| 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