Skip to content

DialogContext.prompt method

DialogContext › prompt

Shows a prompt, or lets the driver answer it.

A scripted text must pass the prompt's valueValidator, because the real prompt would not accept it otherwise.

Signature:

prompt(params: DialogContextPromptParams): Promise<null | string>

Parameters:

ParameterTypeDescription
paramsDialogContextPromptParamsThe parameters of the prompt.

Returns: Promise<null | string> — A Promise that resolves with the entered text, or null when dismissed.