What is a Variable?
A variable is a container that has a name and a value. XCALLY Motion has a list of standard variables that can be used to access information about Omni Channel Interactions (Voice Calls, Web Chat, Email and so on).
In addition to these, you are able to create your custom variables that can be used within the entire Motion system. For example, you can create a variable named order and use it in a Cally Square project to add logic to your IVR flow or customize the phonebar popup displayed for agents.
This section explains mainly how to create and use custom variables.
Panel | ||
---|---|---|
| ||
|
Panel | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
|
The Variables section
You can find the Variables section under Tools menu.:
Create a Variable
To create a variable, click on New Variable button
Edit a Variable
Find the variable from the variables list (you can use the search box on the top-right of the page to filter) and Click on Edit Variable.
Edit Name or description and click on Save.
Delete Variables
To delete a single variable, find the variable in the variables list and click Delete Variable:
To delete multiple variables, select the list of variables by marking the checkbox on the left side, click on Delete button and click OK to confirm.
Export list of Variables
To export list of variables in CSV, select the list of variables to export by marking the checkbox on the left side and click on the icon Export button:
The following picture shows an example of Motion Phonebar CTI URL action in Voice Triggers.
You must place the variable inside {{ }} to pass custom parameters in the URL query string.
The following picture shows an example of a template.
You must place the variable inside {{ }} to display the content of the variable.
Set a Variable
You can set (assign) the value of a variable to a constant (string, number, etc.) or another variable (Asterisk variables or custom variables). In Cally Square, if you want to set a variable to another variable, you have to put the variable inside {}.
In the following example, we are setting callernumber variable to an Asterisk variable CALLERID(num) in Cally Square Set application. After the variable is set, {ordernum} contains the caller number.
The same operation can be performed in Inbound or Internal routes using the set application as follows:
Note that you have to specify the variable name in the variable field and the variable within ${ } in the Value field.