Using assisted slot resolution to clarify slot values in Amazon Lex V2
Note
Before you can take advantage of the generative AI features, you must fulfill the following prerequisites
-
Navigate to the Amazon Bedrock console
and sign up for access to the Anthropic Claude model you intend to use (for more information, see Model access). For information about pricing for using Amazon Bedrock, see Amazon Bedrock pricing . -
Turn on the generative AI capabilities for your bot locale. To do so, follow the steps at Optimize Lex V2 bot creation and performance by using generative AI.
You can improve the accuracy of some built-in slots in your bot's conversation flow by using assisted slot resolution. Assisted slot resolution uses Amazon Bedrock large language models (LLMs) to improve recognition of some built-in slots, which results in an improved interpretation of customer responses during slot elicitation. For utterances that could not be resolved normally, Amazon Lex will attempt to resolve them a second time using Amazon Bedrock.
Assisted slot resolution allows you to use the power of Amazon Bedrock foundation models to improve the accuracy of the following built-in slots:
-
AMAZON.Alphanumeric
without regex support -
AMAZON.City
-
AMAZON.Country
-
AMAZON.Date
-
AMAZON.Number
-
AMAZON.PhoneNumber
-
AMAZON.Confirmation
You can enable assisted slot resolution for any intent that uses the above listed built-in slots. Assisted slot resolution does not apply to custom slots or Amazon built-in slots not listed above.
You can gather data on the accuracy improvements after you enable assisted slot resolution in your Amazon Lex bot by using conversation logs and metrics.
-
Conversation logs - Interpretations will have the
interpretationSource
asBedrock
, if Amazon Bedrock was used to resolve the slot. -
CloudWatch metrics - Metrics will be published under the dimentions listed in CloudWatch metric. To learn more, see Monitoring Amazon Lex with Amazon CloudWatch.
To use the descriptive bot builder, ensure that your IAM role has the proper permissions by following the steps at Permissions needed in Lex V2 for assisted slot resolution.