Accept predefined answers
Defines a predefined answer for a question interaction, with basic validation. When the user enters something that is not understood by the chatbot, a default message is shown. You can change these messages on the Validation tab of under Bot Settings.
Variable Name | The answer is always available in the session and can be used by other interactions. However it is easier to identify the data and use it later if you name the variable.The default name is the name of the interaction without spaces. For example if the interaction is What date then the variable name is whatdate. |
Set Answer Type | Select the option Set up Predefined Answer. |
Date (from Answer Type dropdown) |
The user must enter a date using the format M/D/Y or Y/M/D, using either slashes or hyphens as separators. For example 01/31/2018 or 2018-01-31. |
Date and Time (from Answer Type dropdown) |
When Use Timepicker is not selected, the user enters a date and time in the format yyyy-mm-dd H:m:s. For example: 2011-12-16 09:30. When Use Timepicker is selected, the user selects the date and time of an event from the timeslots shown in a date time picker. The timeslots must be returned by an Action interaction. |
Email Address (from Answer Type dropdown) |
The user must enter an email address like bot@domain.com. |
Month (from Answer Type dropdown) |
The user must enter the month like January, Jan or 1. |
Month or Range of Months (from Answer Type dropdown) |
The user must enter the month or a range of months like January-June, Jan-Jun or 1-6 or some combination of these. |
Number (from Answer Type dropdown) |
The user must enter a number either with or without decimal places. |
Phone Number (from Answer Type dropdown) |
The user can enter the phone number as a single number, or using hyphens, periods or spaces to separate the groups of numbers. For example: (###)-###-#### ###.###.#### ### ### #### +## (###) ### #### |
Postal Code (from Answer Type dropdown |
Accepts any value as the postal code. |
Year (from Answer Type dropdown |
The user must enter the year as a 4-digit number. |
Year or Range of Years (from Answer Type dropdown |
The user must enter the year or a range of years, such as 2019-2021. |