Using assisted slot resolution - Amazon Lex

Using assisted slot resolution

Note

Before you can take advantage of the generative AI features, you must fulfill the following prerequisites

  1. 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.

  2. Turn on the generative AI capabilities for your bot locale. To do so, follow the steps at Optimize bot creation and performance with 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 as Bedrock, 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 for assisted slot resolution.