Skip to main content

Posts

Showing posts with the label Variable

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 "Set value of a variable"

 This conversation element lets you change the value of the variable .  You can only set the value of these variables: User variables that are defined within a conversation by using " Save user input ." System variable "_UserRegister1". Why modify the value of a variable? There can be various reasons for modifying the value of a variable. let's say you have declared a variable named "location" by creating the conversation element " Save user input ". However, you do not want to ask the end-user for location every time. You can achieve this by setting the value of the variable "_UserRegister1" to "LocationProvided". Now you can put validation criteria to check if the value of _"UserRegister1" is equal to "LocationProvided". If true, then don't ask for location.  How to configure this element? Log into repliedAI console  click here . Navigate to the "My bots" section.  If you have not creat...

Variables

"Variable" is temporary storage for your data. They can be used for storing data fetched from the end-user. Moreover, you can also use variables to validate if the end-user is a first time user and much more. Why user Variables? 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. However, you cannot implement this flow unless you store the incoming data from the user (age), somewhere, so you can use it later. Variables come in handy at this time, you can create a variable and store the user age in that variable, later you can validate the value of that variable ( by using this element ).  Variable Types RepliedAI uses two types of variables System variables. User Variables. System Variables System variables are pre-defined variables. You can use the following "System Variables" _UserName  :  This variable stores the end-user name if they have configured any. If the end-user h...

Conversation Element: "Save user input"

This conversation element lets you store end-user input into a variable (click here to learn more about variables). Why to "Save user input"? You may need to store user input for a number of reasons, like: fetch personal information like contact number and location and save that information so that the end-user is not asked to provide it again. improve user experience. e.g. you may store user information like age, hobbies etc. You can later use this information to show products that are relevant to that user. follow-ups. A user is asking for an update about their order. You can ask them for order information (like order ID etc) and save that information so that staff can follow up on that order and contact the end-user with an update.  Configuration Click on the cog button to configure the data input element, and follow the self-descriptive prompts to complete the configuration. You will be prompted to configure the following items: Field name Field descri...