RuntimeHints - Amazon Lex API Reference

RuntimeHints

You can provide Amazon Lex V2 with hints to the phrases that a customer is likely to use for a slot. When a slot with hints is resolved, the phrases in the runtime hints are preferred in the resolution. You can provide hints for a maximum of 100 intents. You can provide a maximum of 100 slots.

Before you can use runtime hints with an existing bot, you must first rebuild the bot.

For more information, see Using runtime hints to improve recognition of slot values.

Contents

slotHints

A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.

The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.

The intent name and slot name must exist.

Type: String to string to RuntimeHintDetails object map map

Key Length Constraints: Minimum length of 1. Maximum length of 100.

Key Pattern: ^([0-9a-zA-Z][_-]?)+$

Key Length Constraints: Minimum length of 1. Maximum length of 100.

Key Pattern: ^([0-9a-zA-Z][_-]?)+$

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: