diff --git a/amazon-lex-bi-bot-1 b/amazon-lex-bi-bot-1 new file mode 160000 index 0000000..071c496 --- /dev/null +++ b/amazon-lex-bi-bot-1 @@ -0,0 +1 @@ +Subproject commit 071c496035dddd31f1ba0fee0c1210aefc511f95 diff --git a/bots/BIBot.json b/bots/BIBot.json index bc3e783..3189866 100644 --- a/bots/BIBot.json +++ b/bots/BIBot.json @@ -16,7 +16,7 @@ }, { "intentVersion": "$LATEST", - "intentName": "Count_Intent" + "intentName": "Count_Intent" }, { "intentVersion": "$LATEST", @@ -30,6 +30,10 @@ "intentVersion": "$LATEST", "intentName": "Refresh_Intent" }, + { + "intentVersion":"$LATEST", + "intentName":"ProductQuery_Intent" + }, { "intentVersion": "$LATEST", "intentName": "Goodbye_Intent" diff --git a/intents/Hello_Intent.json b/intents/Hello_Intent.json index cb79505..e9444ae 100644 --- a/intents/Hello_Intent.json +++ b/intents/Hello_Intent.json @@ -30,7 +30,7 @@ "hi there", "BIBot", "yo", - "you there" + "here" ], "slots": [ ] diff --git a/intents/ProductQuery_Intent.json b/intents/ProductQuery_Intent.json new file mode 100644 index 0000000..1363f8c --- /dev/null +++ b/intents/ProductQuery_Intent.json @@ -0,0 +1,105 @@ +{ + "metadata": { + "schemaVersion": "1.0", + "importType": "LEX", + "importFormat": "JSON" + }, + "resource": { + "name": "InternationalPlan", + "version": "1", + "intents": [ + { + "name": "ProductQuery_Intent", + "version": "2", + "fulfillmentActivity": { + "codeHook": { + "uri": "", + "messageVersion": "1.0" + }, + "type": "CodeHook" + }, + "sampleUtterances": [ + "What type of {product} do you have", + "how many {product}", + "{product}", + "How many types of {milk} products are there?", + "{milk} products", + "{milk}" + ], + "slots": [ + { + "sampleUtterances": [], + "slotType": "product", + "slotConstraint": "Required", + "valueElicitationPrompt": { + "messages": [ + { + "contentType": "PlainText", + "content": "We sell milk and some kitchen masalas also. We provide Real pure nutritious milk delivered at your doorstep." + } + ], + "maxAttempts": 2 + }, + "priority": 1, + "name": "product" + }, + { + "sampleUtterances": [ + "milk bottle ​{milk}", + "milk ​{milk}"​ + ], + "slotType": "milk", + "slotConstraint": "Required", + "valueElicitationPrompt": { + "messages": [ + { + "contentType": "PlainText", + "content": "We provide full cream malaidaar , un-homogenised milk. Its available in three packings 5,10 litre packets and 2 litre bottle" + } + ], + "maxAttempts": 2 + }, + "priority": 1, + "name": "milk" + } + ], + "slotTypes": [ + { + "description": "milk products", + "name": "milk", + "version": "1", + "enumerationValues": [ + { + "value": "milk", + "synonyms": ["milk","milk types"] + }, + { + "value": "basic", + "synonyms": [] + } + ], + "valueSelectionStrategy": "TOP_RESOLUTION" + }, + { + "description": "all products", + "name": "product", + "version": "1", + "enumerationValues": [ + { + "value": "product", + "synonyms": ["product","products","how many products","all products"] + }, + { + "value": "basic", + "synonyms": [] + } + ], + "valueSelectionStrategy": "TOP_RESOLUTION" + } + + ] + } + ] + }} + + \ No newline at end of file