IPromptArgs interface

DEPRECATED the new prompt system just uses IPromptOptions.

Extends

Properties

attachmentLayout

Hint for how clients should layout multiple attachments. The default value is 'list'.

attachments

For incoming messages contains attachments like images sent from the user. For outgoing messages contains objects like cards or images to send to the user.

entities

Structured objects passed to the bot or user.

enumsValues
inputHint

Hint for clients letting them know if the bot is expecting further input or not. The built-in prompts will automatically populate this value for outgoing messages.

libraryNamespace

(Optional) namespace to use for localization and other purposes. This defaults to the callers namespace.

listStyle

(Optional) type of list to render for PromptType.choice. Default value is ListStyle.auto.

localizationNamespace

DEPRECATED use libraryNamespace instead.

maxRetries

(Optional) maximum number of times to re-prompt the user. By default the user will be re-prompted indefinitely.

prompt

(Optional) Initial prompt to send the user. This is typically populated by the Prompts.xxx() function.

promptAfterAction

(Optional) flag used to control the re-prompting of a user after a dialog started by an action ends. The default value is true.

promptType
refDate

(Optional) reference date when recognizing times. Date expressed in ticks using Date.getTime().

retryCnt
retryPrompt

(Optional) retry prompt to send if the users response isn't understood. Default is to just re-prompt with a customizable system prompt.

retrySpeak

(Optional) SSML to send with the retryPrompt. If the retryPrompt is of type IMessage or IIsMessage, this value will be ignored. If this value is an array a response will be chosen at random.

speak

(Optional) SSML to send with the initial prompt. If the prompt is of type IMessage or IIsMessage, this value will be ignored. If this value is an array a response will be chosen at random.

textFormat

Format of text fields. The default value is 'markdown'.

Property Details

attachmentLayout

Hint for how clients should layout multiple attachments. The default value is 'list'.

attachmentLayout?: string

Property Value

string

attachments

For incoming messages contains attachments like images sent from the user. For outgoing messages contains objects like cards or images to send to the user.

attachments?: IAttachment[]

Property Value

entities

Structured objects passed to the bot or user.

entities?: any[]

Property Value

any[]

enumsValues

enumsValues?: string[]

Property Value

string[]

inputHint

Hint for clients letting them know if the bot is expecting further input or not. The built-in prompts will automatically populate this value for outgoing messages.

inputHint?: string

Property Value

string

libraryNamespace

(Optional) namespace to use for localization and other purposes. This defaults to the callers namespace.

libraryNamespace?: string

Property Value

string

listStyle

(Optional) type of list to render for PromptType.choice. Default value is ListStyle.auto.

listStyle?: ListStyle

Property Value

localizationNamespace

DEPRECATED use libraryNamespace instead.

localizationNamespace?: string

Property Value

string

maxRetries

(Optional) maximum number of times to re-prompt the user. By default the user will be re-prompted indefinitely.

maxRetries?: number

Property Value

number

prompt

(Optional) Initial prompt to send the user. This is typically populated by the Prompts.xxx() function.

prompt?: TextOrMessageType

Property Value

promptAfterAction

(Optional) flag used to control the re-prompting of a user after a dialog started by an action ends. The default value is true.

promptAfterAction?: boolean

Property Value

boolean

promptType

promptType: PromptType

Property Value

refDate

(Optional) reference date when recognizing times. Date expressed in ticks using Date.getTime().

refDate?: number

Property Value

number

retryCnt

retryCnt?: number

Property Value

number

retryPrompt

(Optional) retry prompt to send if the users response isn't understood. Default is to just re-prompt with a customizable system prompt.

retryPrompt?: TextOrMessageType

Property Value

retrySpeak

(Optional) SSML to send with the retryPrompt. If the retryPrompt is of type IMessage or IIsMessage, this value will be ignored. If this value is an array a response will be chosen at random.

retrySpeak?: TextType

Property Value

speak

(Optional) SSML to send with the initial prompt. If the prompt is of type IMessage or IIsMessage, this value will be ignored. If this value is an array a response will be chosen at random.

speak?: TextType

Property Value

textFormat

Format of text fields. The default value is 'markdown'.

textFormat?: string

Property Value

string