IntentConfirmationSetting
¶
Used by
-
AsyncLexModelsV2Client Operations -
LexModelsV2Client Operations
Source code in docs_src/capo_lex_models_v2/types/intent_confirmation_setting.py
active
instance-attribute
¶
active: NotRequired[BoxedBoolean]
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and declination responses aren't sent. If the active field isn't specified, the default is true.
code_hook
instance-attribute
¶
code_hook: NotRequired[DialogCodeHookInvocationSetting]
The DialogCodeHookInvocationSetting object associated with intent's confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step is InvokeDialogCodeHook.
confirmation_conditional
instance-attribute
¶
confirmation_conditional: NotRequired[ConditionalSpecification]
A list of conditional branches to evaluate after the intent is closed.
confirmation_next_step
instance-attribute
¶
confirmation_next_step: NotRequired[DialogState]
Specifies the next step that the bot executes when the customer confirms the intent.
confirmation_response
instance-attribute
¶
confirmation_response: NotRequired[ResponseSpecification]
declination_conditional
instance-attribute
¶
declination_conditional: NotRequired[ConditionalSpecification]
A list of conditional branches to evaluate after the intent is declined.
declination_next_step
instance-attribute
¶
declination_next_step: NotRequired[DialogState]
Specifies the next step that the bot executes when the customer declines the intent.
declination_response
instance-attribute
¶
declination_response: NotRequired[ResponseSpecification]
When the user answers "no" to the question defined in promptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.
elicitation_code_hook
instance-attribute
¶
elicitation_code_hook: NotRequired[ElicitationCodeHookInvocationSetting]
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt retries.
failure_next_step
instance-attribute
¶
failure_next_step: NotRequired[DialogState]
The next step to take in the conversation if the confirmation step fails.
prompt_specification
instance-attribute
¶
prompt_specification: PromptSpecification
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the OrderPizza intent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.