You can do calculations using the user's answers and variables you previously created.
When do I need to use a calculation block?
You can use calculation blocks if you want to create a score for a quiz, for lead pre-qualification or for recruitment pre-qualification.
It is also useful if you are building a bot to give quotes.
Depending on what users say during the conversation, you will be able to calculate the related final amount.
Soon, you'll also be able to make users pay with Stripe within the conversation, so you'll be able to create a bot to order goods!
Let's take the example of a recruiter bot to illustrate how the calculation block works.
How to create a variable with a calculation block
To create a variable, add a calculation block and in "Select a variable" field, choose "+ Create a new variable".
Then, choose the type of variable (number or text).
How to set up a variable with a calculation block
You can set up variables by writing a value (text or number) or using an existing variable.
Variables you can use are the ones you previously created through a calculation block, from question type blocks and hidden fields.
To add a variable, put them between {{ }}.
How to perform a calculation
You can only perform a calculation on numbers.
You can do a calculation with values you add and/or using variables.
You can also update a variable value by using the old version of it.
How to make a calculation based on conditions
To do so, you can use the logic jump block. Here is an example:
Comments
0 comments
Please sign in to leave a comment.