Skip to content
Open

pQ #8

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions amazon-lex-bi-bot-1
Submodule amazon-lex-bi-bot-1 added at 071c49
6 changes: 5 additions & 1 deletion bots/BIBot.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
{
"intentVersion": "$LATEST",
"intentName": "Count_Intent"
"intentName": "Count_Intent"
},
{
"intentVersion": "$LATEST",
Expand All @@ -30,6 +30,10 @@
"intentVersion": "$LATEST",
"intentName": "Refresh_Intent"
},
{
"intentVersion":"$LATEST",
"intentName":"ProductQuery_Intent"
},
{
"intentVersion": "$LATEST",
"intentName": "Goodbye_Intent"
Expand Down
2 changes: 1 addition & 1 deletion intents/Hello_Intent.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"hi there",
"BIBot",
"yo",
"you there"
"here"
],
"slots": [
]
Expand Down
105 changes: 105 additions & 0 deletions intents/ProductQuery_Intent.json
Original file line number Diff line number Diff line change
@@ -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"
}

]
}
]
}}