Categories
Print

Fallback Variables


What is Fallback Variables? 


Using fallback variables in i-genie, you can assign a fixed value to a variable for cases when a required piece of information or value is missing. 


If you have not defined the fallback value, a variable will be replaced with blank space in case the variable does not have a value. 


For instance, lets consider a scenario where the bot pulls up the name of the visitor from the URL parameters & stores it in variable first_name. A default fallback value will be assigned to the variable first_name. In this scenarios where the name of the visitors is missing from the URL parameters, the bot will automatically pull up the defined fall back value assigned to the variable to address the visitor. 


How do I assign fallback value to variable? 


1 – Go to ‘Bot Builder’ & open any bot of your preference
2 – Select the action block where you have the variable and fallback value needs to be mapped
3 – Click on variable
4 – Enter variable fallback value in the pop up text
5 – Click on ‘right sign’ to assign the default value to the variable

The colour of the variable will change from Grey to Blue if the fallback value is assigned to it