From 5215353ba38067578f0de6271a7309a0e8fa24f9 Mon Sep 17 00:00:00 2001 From: Seth <18116602+sethkor@users.noreply.github.com> Date: Tue, 15 Sep 2020 20:58:13 +1000 Subject: [PATCH] More yaml examples --- examples/yaml/bots/OrderFlowersBot.yaml | 18 +++++++++ examples/yaml/intents/OrderFlowers.yaml | 51 +++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 examples/yaml/bots/OrderFlowersBot.yaml create mode 100644 examples/yaml/intents/OrderFlowers.yaml diff --git a/examples/yaml/bots/OrderFlowersBot.yaml b/examples/yaml/bots/OrderFlowersBot.yaml new file mode 100644 index 0000000..ae53906 --- /dev/null +++ b/examples/yaml/bots/OrderFlowersBot.yaml @@ -0,0 +1,18 @@ +intents: + - intentVersion: $LATEST + intentName: OrderFlowers +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 diff --git a/examples/yaml/intents/OrderFlowers.yaml b/examples/yaml/intents/OrderFlowers.yaml new file mode 100644 index 0000000..cbfe874 --- /dev/null +++ b/examples/yaml/intents/OrderFlowers.yaml @@ -0,0 +1,51 @@ +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 + slotTypeVersion: $LATEST + name: FlowerType + slotConstraint: Required + valueElicitationPrompt: + maxAttempts: 2 + messages: + - content: What type of flowers would you like to order? + contentType: PlainText + priority: 1 + 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 + - 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 +