How to Use the 'Multiple Computation' Component in wolkvox Studio
Table of Contents
Introduction
The **Multiple Computation** component allows you to create multiple variables within the same block and assign them numeric values, text, or arithmetic operations. It is an ideal tool when you need to prepare data, perform consecutive calculations, or store multiple responses before continuing with the flow.
This component belongs to the "Basics" group and is available in all types of routing and Agent Scripting.
Its functionality is similar to the Variable Computation component, but it allows you to manage multiple variables in an organized way within a single component.
Configuration
In the configuration window:
-
"Destination Variable" Field: Enter the name of the variable you want to create. It must start with the $ sign.
- Valid examples:
- $age
- $final_amount
- $customer_name
- Valid examples:
-
"Expression" Field: Define the value that the variable will have. This value can be:
- Number
- 25
- Text: Must be enclosed in single quotes.
- 'New customer'
- Arithmetic operation
- 2025 - $birth_year
- Combination of variables
- $subtotal + $tax
- Number
- When the expression is complete, press the "Add Computation" button.
- Each time you add a computation, it will appear in the table below with two columns:
- Variable
- Expression
- If you right-click on any variable in the table, the following options will appear:
- Move Up: Changes the order of the item by moving it up. Useful when the order of calculation affects the results.
- Move Down: Moves the item down.
- Edit Item: Opens the selected variable to modify its name or expression.
- Delete Item: Removes the variable from the list.
- Finally, click the "Save Computation Expression" button.
