DateTimeValueSpec

  • The provided content specifies how to control user prompts for datetime input using the DateTimeDialogSpec.

  • The dialogSpec object within the main JSON representation contains the DateTimeDialogSpec.

  • DateTimeDialogSpec includes fields like requestDatetimeText, requestDateText, and requestTimeText to customize prompts for asking for datetime, date, or time respectively.

  • These speech configurations within DateTimeDialogSpec act as hints for creating prompts, and the actual prompt might vary in case of input failures.

Spec to control asking the user for a datetime.

JSON representation
{
  "dialogSpec": {
    object (DateTimeDialogSpec)
  }
}
Fields
dialogSpec

object (DateTimeDialogSpec)

Control datetime prompts.

DateTimeDialogSpec

Speech configurations for asking for datetime. The fields in the dialogSpec are used to create prompt for the datetime dialog. Please note that these configurations act more like a hint than absolute value. For example: In case of failure in receiving input from user for datetime the prompt might be: "Sorry; $request_(datetime/date/time)_text".

JSON representation
{
  "requestDatetimeText": string,
  "requestDateText": string,
  "requestTimeText": string
}
Fields
requestDatetimeText

string

This is used to create initial prompt by datetime sub-dialog. Example question: "What date and time do you want?"

requestDateText

string

This is used to create prompt to ask for date only. For example: What date are you looking for?

requestTimeText

string

This is used to create prompt to ask for time only. For example: What time?