IPromptContext interface

Contextual information tracked for a Prompt. This information can be accessed within a prompt through session.dialogData.

Properties

activeIntent

Used to track which Prompt.matches() handler is active. This is used internally to move the handlers waterfall to the next step.

isReprompt

If true, we're returning from an unexpected interruption and should send the initial turn-0 prompt again.

lastTurn

Timestamp of the last turn.

options

Options that the prompt was called with.

turns

Number of times the user has interacted with the prompt. The first message sent to the user is turn-0, the users first reply is turn-1, and so forth.

Property Details

activeIntent

Used to track which Prompt.matches() handler is active. This is used internally to move the handlers waterfall to the next step.

activeIntent: string

Property Value

string

isReprompt

If true, we're returning from an unexpected interruption and should send the initial turn-0 prompt again.

isReprompt: boolean

Property Value

boolean

lastTurn

Timestamp of the last turn.

lastTurn: number

Property Value

number

options

Options that the prompt was called with.

options: IPromptOptions

Property Value

turns

Number of times the user has interacted with the prompt. The first message sent to the user is turn-0, the users first reply is turn-1, and so forth.

turns: number

Property Value

number