Skip to content

Commit 64dea33

Browse files
author
AWS
committed
Amazon Lex Model Building V2 Update: Adds support for Intent Disambiguation, allowing resolution of ambiguous user inputs when multiple intents match by presenting clarifying questions to users. Also adds Speech Detection Sensitivity configuration for optimizing voice activity detection sensitivity levels in various noise environments.
1 parent aa9c8cd commit 64dea33

File tree

2 files changed

+105
-3
lines changed

2 files changed

+105
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Lex Model Building V2",
4+
"contributor": "",
5+
"description": "Adds support for Intent Disambiguation, allowing resolution of ambiguous user inputs when multiple intents match by presenting clarifying questions to users. Also adds Speech Detection Sensitivity configuration for optimizing voice activity detection sensitivity levels in various noise environments."
6+
}

services/lexmodelsv2/src/main/resources/codegen-resources/service-2.json

Lines changed: 99 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,11 @@
37863786
"shape":"ConfidenceThreshold",
37873787
"documentation":"<p>Determines the threshold where Amazon Lex will insert the <code>AMAZON.FallbackIntent</code>, <code>AMAZON.KendraSearchIntent</code>, or both when returning alternative intents. <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code> are only inserted if they are configured for the bot. </p> <p>For example, suppose a bot is configured with the confidence threshold of 0.80 and the <code>AMAZON.FallbackIntent</code>. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the <code>PostText</code> operation would be:</p> <ul> <li> <p> <code>AMAZON.FallbackIntent</code> </p> </li> <li> <p> <code>IntentA</code> </p> </li> <li> <p> <code>IntentB</code> </p> </li> <li> <p> <code>IntentC</code> </p> </li> </ul>"
37883788
},
3789-
"voiceSettings":{"shape":"VoiceSettings"}
3789+
"voiceSettings":{"shape":"VoiceSettings"},
3790+
"speechDetectionSensitivity":{
3791+
"shape":"SpeechDetectionSensitivity",
3792+
"documentation":"<p>The sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.</p>"
3793+
}
37903794
},
37913795
"documentation":"<p>Provides the bot locale parameters required for importing a bot locale.</p>"
37923796
},
@@ -4915,7 +4919,11 @@
49154919
"shape":"VoiceSettings",
49164920
"documentation":"<p>The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.</p>"
49174921
},
4918-
"generativeAISettings":{"shape":"GenerativeAISettings"}
4922+
"generativeAISettings":{"shape":"GenerativeAISettings"},
4923+
"speechDetectionSensitivity":{
4924+
"shape":"SpeechDetectionSensitivity",
4925+
"documentation":"<p>The sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.</p>"
4926+
}
49194927
}
49204928
},
49214929
"CreateBotLocaleResponse":{
@@ -4957,7 +4965,11 @@
49574965
"shape":"Timestamp",
49584966
"documentation":"<p>A timestamp specifying the date and time that the bot locale was created.</p>"
49594967
},
4960-
"generativeAISettings":{"shape":"GenerativeAISettings"}
4968+
"generativeAISettings":{"shape":"GenerativeAISettings"},
4969+
"speechDetectionSensitivity":{
4970+
"shape":"SpeechDetectionSensitivity",
4971+
"documentation":"<p>The sensitivity level for voice activity detection (VAD) that was specified for the bot locale.</p>"
4972+
}
49614973
}
49624974
},
49634975
"CreateBotReplicaRequest":{
@@ -5229,6 +5241,10 @@
52295241
"shape":"Name",
52305242
"documentation":"<p>The name of the intent. Intent names must be unique in the locale that contains the intent and cannot match the name of any built-in intent.</p>"
52315243
},
5244+
"intentDisplayName":{
5245+
"shape":"DisplayName",
5246+
"documentation":"<p>A display name for the intent. If configured, This name will be shown to users during Intent Disambiguation instead of the intent name. Display names should be user-friendly, descriptive and match the intent's purpose to improve user experience during disambiguation.</p>"
5247+
},
52325248
"description":{
52335249
"shape":"Description",
52345250
"documentation":"<p>A description of the intent. Use the description to help identify the intent in lists.</p>"
@@ -5312,6 +5328,10 @@
53125328
"shape":"Name",
53135329
"documentation":"<p>The name specified for the intent.</p>"
53145330
},
5331+
"intentDisplayName":{
5332+
"shape":"DisplayName",
5333+
"documentation":"<p>The display name specified for the intent.</p>"
5334+
},
53155335
"description":{
53165336
"shape":"Description",
53175337
"documentation":"<p>The description specified for the intent.</p>"
@@ -5760,6 +5780,11 @@
57605780
}
57615781
}
57625782
},
5783+
"CustomDisambiguationMessage":{
5784+
"type":"string",
5785+
"max":1000,
5786+
"min":1
5787+
},
57635788
"CustomPayload":{
57645789
"type":"structure",
57655790
"required":["value"],
@@ -6676,6 +6701,10 @@
66766701
"generativeAISettings":{
66776702
"shape":"GenerativeAISettings",
66786703
"documentation":"<p>Contains settings for Amazon Bedrock's generative AI features for your bot locale.</p>"
6704+
},
6705+
"speechDetectionSensitivity":{
6706+
"shape":"SpeechDetectionSensitivity",
6707+
"documentation":"<p>The sensitivity level for voice activity detection (VAD) configured for the bot locale.</p>"
66796708
}
66806709
}
66816710
},
@@ -7249,6 +7278,10 @@
72497278
"shape":"Name",
72507279
"documentation":"<p>The name specified for the intent.</p>"
72517280
},
7281+
"intentDisplayName":{
7282+
"shape":"DisplayName",
7283+
"documentation":"<p>The display name specified for the intent.</p>"
7284+
},
72527285
"description":{
72537286
"shape":"Description",
72547287
"documentation":"<p>The description of the intent.</p>"
@@ -7879,6 +7912,11 @@
78797912
},
78807913
"documentation":"<p>The current state of the conversation with the user.</p>"
78817914
},
7915+
"DisplayName":{
7916+
"type":"string",
7917+
"max":100,
7918+
"min":1
7919+
},
78827920
"DomainEndpoint":{
78837921
"type":"string",
78847922
"pattern":"^(http|https):\\/\\/+[^\\s]+[\\w]"
@@ -8834,6 +8872,25 @@
88348872
},
88358873
"documentation":"<p>Provides a prompt for making sure that the user is ready for the intent to be fulfilled.</p>"
88368874
},
8875+
"IntentDisambiguationSettings":{
8876+
"type":"structure",
8877+
"required":["enabled"],
8878+
"members":{
8879+
"enabled":{
8880+
"shape":"Enabled",
8881+
"documentation":"<p>Determines whether the Intent Disambiguation feature is enabled. When set to <code>true</code>, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default being <code>false</code>.</p>"
8882+
},
8883+
"maxDisambiguationIntents":{
8884+
"shape":"MaxDisambiguationIntents",
8885+
"documentation":"<p>Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed. This setting determines how many intent options will be shown to users when the system detects ambiguous input. The default value is 3.</p>"
8886+
},
8887+
"customDisambiguationMessage":{
8888+
"shape":"CustomDisambiguationMessage",
8889+
"documentation":"<p>Provides a custom message that will be displayed before presenting the disambiguation options to users. This message helps set the context for users and can be customized to match your bot's tone and brand. If not specified, a default message will be used.</p>"
8890+
}
8891+
},
8892+
"documentation":"<p>Configures the Intent Disambiguation feature that helps resolve ambiguous user inputs when multiple intents could match. When enabled, the system presents clarifying questions to users, helping them specify their exact intent for improved conversation accuracy.</p>"
8893+
},
88378894
"IntentFilter":{
88388895
"type":"structure",
88398896
"required":[
@@ -8984,6 +9041,10 @@
89849041
"shape":"Name",
89859042
"documentation":"<p>The name of the intent.</p>"
89869043
},
9044+
"intentDisplayName":{
9045+
"shape":"DisplayName",
9046+
"documentation":"<p>The display name of the intent.</p>"
9047+
},
89879048
"description":{
89889049
"shape":"Description",
89899050
"documentation":"<p>The description of the intent.</p>"
@@ -10768,6 +10829,12 @@
1076810829
"type":"string",
1076910830
"max":1024
1077010831
},
10832+
"MaxDisambiguationIntents":{
10833+
"type":"integer",
10834+
"box":true,
10835+
"max":5,
10836+
"min":2
10837+
},
1077110838
"MaxResults":{
1077210839
"type":"integer",
1077310840
"box":true,
@@ -10897,6 +10964,10 @@
1089710964
"assistedNluMode":{
1089810965
"shape":"AssistedNluMode",
1089910966
"documentation":"<p>Specifies the mode for Assisted NLU operation. Use <code>Primary</code> to make Assisted NLU the primary intent recognition method, or <code>Fallback</code> to use it only when standard NLU confidence is low.</p>"
10967+
},
10968+
"intentDisambiguationSettings":{
10969+
"shape":"IntentDisambiguationSettings",
10970+
"documentation":"<p>An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.</p>"
1090010971
}
1090110972
},
1090210973
"documentation":"<p>Configures the Assisted Natural Language Understanding (NLU) feature for your bot. This specification determines whether enhanced intent recognition and utterance understanding capabilities are active.</p>"
@@ -12430,6 +12501,15 @@
1243012501
},
1243112502
"documentation":"<p>Subslot specifications.</p>"
1243212503
},
12504+
"SpeechDetectionSensitivity":{
12505+
"type":"string",
12506+
"documentation":"<p>Determines the sensitivity level for voice activity detection (VAD) in noisy environments. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise.</p> <p>Valid values include:</p> <ul> <li> <p> <code>Default</code> - Standard sensitivity level suitable for most environments</p> </li> <li> <p> <code>HighNoiseTolerance</code> - Increased tolerance for moderate background noise</p> </li> <li> <p> <code>MaximumNoiseTolerance</code> - Maximum tolerance for high levels of background noise</p> </li> </ul>",
12507+
"enum":[
12508+
"Default",
12509+
"HighNoiseTolerance",
12510+
"MaximumNoiseTolerance"
12511+
]
12512+
},
1243312513
"StartBotRecommendationRequest":{
1243412514
"type":"structure",
1243512515
"required":[
@@ -13807,6 +13887,10 @@
1380713887
"generativeAISettings":{
1380813888
"shape":"GenerativeAISettings",
1380913889
"documentation":"<p>Contains settings for generative AI features powered by Amazon Bedrock for your bot locale. Use this object to turn generative AI features on and off. Pricing may differ if you turn a feature on. For more information, see LINK.</p>"
13890+
},
13891+
"speechDetectionSensitivity":{
13892+
"shape":"SpeechDetectionSensitivity",
13893+
"documentation":"<p>The new sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.</p>"
1381013894
}
1381113895
}
1381213896
},
@@ -13864,6 +13948,10 @@
1386413948
"generativeAISettings":{
1386513949
"shape":"GenerativeAISettings",
1386613950
"documentation":"<p>Contains settings for generative AI features powered by Amazon Bedrock for your bot locale.</p>"
13951+
},
13952+
"speechDetectionSensitivity":{
13953+
"shape":"SpeechDetectionSensitivity",
13954+
"documentation":"<p>The updated sensitivity level for voice activity detection (VAD) in the bot locale.</p>"
1386713955
}
1386813956
}
1386913957
},
@@ -14122,6 +14210,10 @@
1412214210
"shape":"Name",
1412314211
"documentation":"<p>The new name for the intent.</p>"
1412414212
},
14213+
"intentDisplayName":{
14214+
"shape":"DisplayName",
14215+
"documentation":"<p>The new display name for the intent.</p>"
14216+
},
1412514217
"description":{
1412614218
"shape":"Description",
1412714219
"documentation":"<p>The new description of the intent.</p>"
@@ -14209,6 +14301,10 @@
1420914301
"shape":"Name",
1421014302
"documentation":"<p>The updated name of the intent.</p>"
1421114303
},
14304+
"intentDisplayName":{
14305+
"shape":"DisplayName",
14306+
"documentation":"<p>The updated display name of the intent.</p>"
14307+
},
1421214308
"description":{
1421314309
"shape":"Description",
1421414310
"documentation":"<p>The updated description of the intent.</p>"

0 commit comments

Comments
 (0)