Skip to main content

Posts

Showing posts from July, 2021

Conversation Element: Validating user-input

 This conversation element can be used to validate the current value of any variable . Why validate a variable? You may need to validate the value of a variable for a number of reasons. Suppose you have a script in which you ask the end-user, their age. You may use their age to show products that are relevant to that age group. Let's assume you stored the value of the end-user in a variable name "UserAge". In order to show age-related products, you need to validate the variable using this conversation element. e.g. If the value of "UserAge" is greater than, let's say 20, show products that are relevant to adults, otherwise show products relevant to teenagers.  Configuring this Element? Click on the "Validate user input" icon to add this element to your auto-reply script. Once the "Validate the input" element is added to your bot design, click on the "cog" to open the settings page. On the settings page, select the variable whose

Conversation Element: Jump to another section

 You can use this conversation element to take the conversation flow to a new element. This element is mostly used in scenarios, where you have to configure a conversation flow and want to add the same flow in another part of your script.  Why use a "Jump" Element? Let's say, you have a reply script that looks something like this.  In this script, we have a clicker at the start that splits the reply flow into two paths: A and B. However paths A and B are almost identical. Path B as only one additional element (Send Message) and after that message path B should have the same script as path A. We can achieve it by copying all the path A scripting blocks into path B, but this method does not seem that optimal, moreover, if we have to make any changes in path A, we would have to edit path B also.  The other method is to is add the "Jump" conversation element in path B, so that once the "Send Message" is used (which is the only additional element in path A)