Javascript
Executes a javascript code on the client side.
Javascript is basically a piece of code that can be run on the browser to perform an action. Some of the cases where a Javascript action block can be used are:
Performing maths calculations.
Dynamically rendering the values of the variables.
String modification.
Firing & tracking events in Google Analytics.
You can choose to run the Javascript code either on CLIENT / SERVER.
Maths Calculations:
Here are few of the snippets that you can use to perform the maths calculations within the chatbot flow:
Rendering values into variables:
Here are few of the snippets that you can use to render values in variables.
String Modification:
Here are few of the snippets that you can use to calculate the length of the variable or get part of the variable.
Firing & Tracking events in Google Analytics or any Analytics tool:
Here is the snippet that you can use to push or record events into Google Analytics or any other analytics tool
Triggering day-based flow:
Here is the snippet that you can use to trigger the flow based on specific day
Last updated