-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from sethkor/export-slots
Add export function and tidy a bunch of stuff around json and yaml syntax
- Loading branch information
Showing
18 changed files
with
404 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
{ | ||
"lexBot" : { | ||
"intents": [ | ||
"intents": [ | ||
{ | ||
"intentVersion": "$LATEST", | ||
"intentName": "OrderFlowers" | ||
} | ||
], | ||
"name": "OrderFlowersBot", | ||
"locale": "en-US", | ||
"abortStatement": { | ||
"messages": [ | ||
{ | ||
"intentVersion": "$LATEST", | ||
"intentName": "OrderFlowers" | ||
"content": "Sorry, I'm not able to assist at this time", | ||
"contentType": "PlainText" | ||
} | ||
], | ||
"name": "OrderFlowersBot", | ||
"locale": "en-US", | ||
"abortStatement": { | ||
"messages": [ | ||
{ | ||
"content": "Sorry, I'm not able to assist at this time", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"clarificationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "I didn't understand you, what would you like to do?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"voiceId": "Salli", | ||
"childDirected": false, | ||
"idleSessionTTLInSeconds": 600, | ||
"description": "Bot to order flowers on the behalf of a user" | ||
} | ||
] | ||
}, | ||
"clarificationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "I didn't understand you, what would you like to do?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"voiceId": "Salli", | ||
"childDirected": false, | ||
"idleSessionTTLInSeconds": 600, | ||
"description": "Bot to order flowers on the behalf of a user" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
{ | ||
"lexIntent" : { | ||
"name": "AskTime", | ||
"description": "Intent to ask what the time is", | ||
"version": "1", | ||
"sampleUtterances": [ | ||
"Whats the time", | ||
"What time is it", | ||
"Time please", | ||
"Time" | ||
], | ||
"slots": [], | ||
"fulfillmentActivity": { | ||
"codeHook": { | ||
"uri": "arn:aws:lambda:ap-southeast-2:293499315857:function:LexLambdaSampleFulfilment", | ||
"messageVersion": "1.0" | ||
}, | ||
"type": "CodeHook" | ||
} | ||
"name": "AskTime", | ||
"description": "Intent to ask what the time is", | ||
"version": "1", | ||
"sampleUtterances": [ | ||
"Whats the time", | ||
"What time is it", | ||
"Time please", | ||
"Time" | ||
], | ||
"slots": [], | ||
"fulfillmentActivity": { | ||
"codeHook": { | ||
"uri": "arn:aws:lambda:ap-southeast-2:293499315857:function:LexLambdaSampleFulfilment", | ||
"messageVersion": "1.0" | ||
}, | ||
"type": "CodeHook" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,82 @@ | ||
{ | ||
"lexIntent" : { | ||
"name": "OrderFlowers", | ||
"description": "Intent to order a bouquet of flowers for pick up", | ||
"sampleUtterances": [ | ||
"I would like to pick up flowers", | ||
"I would like to order some flowers" | ||
], | ||
"slots": [ | ||
{ | ||
"slotType": "FlowerTypes", | ||
"name": "FlowerType", | ||
"slotConstraint": "Required", | ||
"valueElicitationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "What type of flowers would you like to order?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"priority": 1, | ||
"slotTypeVersion": "$LATEST", | ||
"sampleUtterances": [ | ||
"I would like to order {FlowerType}" | ||
], | ||
"description": "The type of flowers to pick up" | ||
}, | ||
{ | ||
"slotType": "AMAZON.DATE", | ||
"name": "PickupDate", | ||
"slotConstraint": "Required", | ||
"valueElicitationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "What day do you want the {FlowerType} to be picked up?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"priority": 2, | ||
"description": "The date to pick up the flowers" | ||
"name": "OrderFlowers", | ||
"description": "Intent to order a bouquet of flowers for pick up", | ||
"sampleUtterances": [ | ||
"I would like to pick up flowers", | ||
"I would like to order some flowers" | ||
], | ||
"slots": [ | ||
{ | ||
"slotType": "FlowerTypes", | ||
"name": "FlowerType", | ||
"slotConstraint": "Required", | ||
"valueElicitationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "What type of flowers would you like to order?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
{ | ||
"slotType": "AMAZON.TIME", | ||
"name": "PickupTime", | ||
"slotConstraint": "Required", | ||
"valueElicitationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "Pick up the {FlowerType} at what time on {PickupDate}?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"priority": 3, | ||
"description": "The time to pick up the flowers" | ||
} | ||
], | ||
"confirmationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
"priority": 1, | ||
"slotTypeVersion": "$LATEST", | ||
"sampleUtterances": [ | ||
"I would like to order {FlowerType}" | ||
], | ||
"description": "The type of flowers to pick up" | ||
}, | ||
"rejectionStatement": { | ||
"messages": [ | ||
{ | ||
"content": "Okay, I will not place your order.", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
{ | ||
"slotType": "AMAZON.DATE", | ||
"name": "PickupDate", | ||
"slotConstraint": "Required", | ||
"valueElicitationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "What day do you want the {FlowerType} to be picked up?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"priority": 2, | ||
"description": "The date to pick up the flowers" | ||
}, | ||
"fulfillmentActivity": { | ||
"type": "ReturnIntent" | ||
{ | ||
"slotType": "AMAZON.TIME", | ||
"name": "PickupTime", | ||
"slotConstraint": "Required", | ||
"valueElicitationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "Pick up the {FlowerType} at what time on {PickupDate}?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"priority": 3, | ||
"description": "The time to pick up the flowers" | ||
} | ||
], | ||
"confirmationPrompt": { | ||
"maxAttempts": 2, | ||
"messages": [ | ||
{ | ||
"content": "Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"rejectionStatement": { | ||
"messages": [ | ||
{ | ||
"content": "Okay, I will not place your order.", | ||
"contentType": "PlainText" | ||
} | ||
] | ||
}, | ||
"fulfillmentActivity": { | ||
"type": "ReturnIntent" | ||
} | ||
} |
Oops, something went wrong.