{
  "metadata": {
    "schemaVersion": "1.0",
    "importType": "LEX",
    "importFormat": "JSON"
  },
  "resource": {
    "name": "OrderFlowers",
    "version": "1",
    "intents": [
      {
        "description": "Intent to order a bouquet of flowers for pick up",
        "rejectionStatement": {
          "messages": [
            {
              "contentType": "PlainText",
              "content": "Okay, I will not place your order."
            }
          ]
        },
        "name": "OrderFlowers",
        "version": "6",
        "fulfillmentActivity": {
          "type": "ReturnIntent"
        },
        "sampleUtterances": [
          "I would like to pick up flowers",
          "I would like to order some flowers"
        ],
        "slots": [
          {
            "sampleUtterances": [
              "I would like to order {FlowerType}"
            ],
            "slotType": "FlowerTypes",
            "slotTypeVersion": "1",
            "obfuscationSetting": "NONE",
            "slotConstraint": "Required",
            "valueElicitationPrompt": {
              "messages": [
                {
                  "contentType": "PlainText",
                  "content": "What type of flowers would you like to order?"
                }
              ],
              "maxAttempts": 2
            },
            "priority": 1,
            "name": "FlowerType",
            "description": "The type of flowers to pick up"
          },
          {
            "sampleUtterances": [],
            "slotType": "AMAZON.DATE",
            "obfuscationSetting": "NONE",
            "slotConstraint": "Required",
            "valueElicitationPrompt": {
              "messages": [
                {
                  "contentType": "PlainText",
                  "content": "What day do you want the {FlowerType} to be picked up?"
                },
                {
                  "contentType": "PlainText",
                  "content": "Pick up the {FlowerType} at {PickupTime} on what day?"
                }
              ],
              "maxAttempts": 2
            },
            "priority": 2,
            "name": "PickupDate",
            "description": "The date to pick up the flowers"
          },
          {
            "sampleUtterances": [],
            "slotType": "AMAZON.TIME",
            "obfuscationSetting": "NONE",
            "slotConstraint": "Required",
            "valueElicitationPrompt": {
              "messages": [
                {
                  "contentType": "PlainText",
                  "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}?"
                }
              ],
              "maxAttempts": 2
            },
            "priority": 3,
            "name": "PickupTime",
            "description": "The time to pick up the flowers"
          }
        ],
        "confirmationPrompt": {
          "messages": [
            {
              "contentType": "PlainText",
              "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?"
            }
          ],
          "maxAttempts": 2
        }
      },
      {
        "name": "MyFallBackIntent",
        "version": "1",
        "fulfillmentActivity": {
          "type": "ReturnIntent"
        },
        "sampleUtterances": [],
        "slots": [],
        "parentIntentSignature": "AMAZON.FallbackIntent"
      },
      {
        "name": "BusinessHoursIntent",
        "version": "1",
        "fulfillmentActivity": {
          "type": "ReturnIntent"
        },
        "sampleUtterances": [
          "what are your timings",
          "what are you business hours",
          "when do you open",
          "when do you close"
        ],
        "slots": [],
        "conclusionStatement": {
          "messages": [
            {
              "groupNumber": 1,
              "contentType": "PlainText",
              "content": "We are open Monday to Friday 9AM to 5PM."
            }
          ]
        }
      },
      {
        "name": "OffersIntent",
        "version": "1",
        "fulfillmentActivity": {
          "type": "ReturnIntent"
        },
        "sampleUtterances": [
          "what are your special offers",
          "what are your discounts"
        ],
        "slots": [],
        "conclusionStatement": {
          "messages": [
            {
              "groupNumber": 1,
              "contentType": "PlainText",
              "content": "Buy one Get one FREE."
            }
          ]
        }
      }
    ],
    "slotTypes": [
      {
        "description": "Types of flowers to pick up",
        "name": "FlowerTypes",
        "version": "1",
        "enumerationValues": [
          {
            "value": "tulips"
          },
          {
            "value": "lilies"
          },
          {
            "value": "roses"
          }
        ],
        "valueSelectionStrategy": "ORIGINAL_VALUE"
      }
    ],
    "voiceId": "Salli",
    "childDirected": false,
    "locale": "en-US",
    "idleSessionTTLInSeconds": 600,
    "description": "Bot to order flowers on the behalf of a user",
    "abortStatement": {
      "messages": [
        {
          "contentType": "PlainText",
          "content": "Sorry, I am not able to assist at this time"
        }
      ]
    },
    "detectSentiment": false
  }
}