interface DialogStateProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.DialogStateProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.DialogStateProperty |
Python | aws_cdk.aws_lex.CfnBot.DialogStateProperty |
TypeScript | @aws-cdk/aws-lex » CfnBot » DialogStateProperty |
The current state of the conversation with the user.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lex from '@aws-cdk/aws-lex';
declare const slotValueOverrideProperty_: lex.CfnBot.SlotValueOverrideProperty;
const dialogStateProperty: lex.CfnBot.DialogStateProperty = {
dialogAction: {
type: 'type',
// the properties below are optional
slotToElicit: 'slotToElicit',
suppressNextMessage: false,
},
intent: {
name: 'name',
slots: [{
slotName: 'slotName',
slotValueOverride: {
shape: 'shape',
value: {
interpretedValue: 'interpretedValue',
},
values: [slotValueOverrideProperty_],
},
}],
},
sessionAttributes: [{
key: 'key',
// the properties below are optional
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
dialog | IResolvable | Dialog | Defines the action that the bot executes at runtime when the conversation reaches this step. |
intent? | IResolvable | Intent | Override settings to configure the intent state. |
session | IResolvable | IResolvable | Session [] | Map of key/value pairs representing session-specific context information. |
dialogAction?
Type:
IResolvable
|
Dialog
(optional)
Defines the action that the bot executes at runtime when the conversation reaches this step.
intent?
Type:
IResolvable
|
Intent
(optional)
Override settings to configure the intent state.
sessionAttributes?
Type:
IResolvable
|
IResolvable
|
Session
[]
(optional)
Map of key/value pairs representing session-specific context information.
It contains application information passed between Amazon Lex and a client application.