Accepting and validating text input

A conversation may need to accept different type of inputs from user. The input can be in various formats of text or an option selected from UI control. This section describes the different type of text input and validation.

You can accept input from user by setting Input Parameter node. It is generally combined with a message.

Text Input Types

AmplifyReach provides a variety of text inputs.

Following input types are provided:
1. Name
2. Entity
3. Text
4. EmailID
5. Mobile Number
6. RegEX
7. Date
8. UI Control
9. Language
10.Link

Validation of Text Input

The bot automatically validates the user entry if correct input type is selected. For example, if input type emailID is selected and user does not enter in email in correct format, the bot will show error to the message.

Using Text Input

  • Add a node to accept user input. Set a message for user in “Bot says” to enter expected input.
  • Set a variable name to accept the user input. For example, emailID as shown in the screenshot. This variable can be accessed as {{emailID}} in the conversation.
  • The invalid input message can be set with multiple sentences, separated using “|”. The bot selects any one sentence from it at run time. This gives a conversation experience instead of repeating same error each time. For example multiple input error messages can be set as: This does not appear to be correct input, please enter again | Please enter correct email ID | This is not valid email id, please try again

Confirmation Question

You can add a confirmation question for user entered input or automatically detected entities. The bot will confirm if it is correct input before processing further flow.

Remembering User Input on conversation Restart

If the conversation restarts, the user input values are cleared. You may want to remember some inputs like mobile number, even if the conversation is restarted. For example once user enters mobile number, you do not want him to enter the same again. To achieve this, please un-check “Do you want to explicitly reset node/variable value” given in the node.