Scopes
| Scope | Description |
|---|
| SESSION | The data will no longer be accessible after the session |
| DOMAIN | The data will be persisted on the user's machine and can be used again for future sessions in this and other assistants on the same domain |
| PROVIDED | The data will be provided by the customer |
| CONFIGURATION | Same as session, but had different identifier to clearly mark that this does not serve any personalization. This will not be sent to the backend. |
Provided scope
Attributes that are provided are made accessible by the customer. A customer makes these accessible by storing them in the local storage using a key with the following pattern: zoovu.[advisorCode].[locale?].context.xyz.
If we want to make the firstName of a customer accessible to an assistant with advisor code docs123, the key would be zoovu.docs123.context.firstName.
The key structure also allows for locale specific values.
Assignments
Text
| Assignment | Description |
|---|
| Set value | Sets the value of the attribute to the provided value |
| Clear value | Clears the value of the attribute |
| Set selected value to | Will update the attribute with the label text of the selected option |
| Set left value from | TODO: lookup current value and take the 'shift' next value' |
| Set right value from | TODO: lookup current value and take the 'shift' next value' |
Number
| Assignment | Description |
|---|
| Set numeric value | Sets the value of the attribute to the provided value |
| Clear value | Clears the value of the attribute |
| Set left value from | TODO: lookup current value and take the 'shift' next value' |
| Set right value from | TODO: lookup current value and take the 'shift' next value' |
| Increment by value | |
| Decrement by value | |
| Multiply by value | |
| Divide by value | |
True/False
| Assignment | Description |
|---|
| Set value | Sets the value of the attribute to the provided value |
| Clear value | Clears the value of the attribute |
| Set selected value to | Will update the attribute with the label text of the selected option |
List
| Assignment | Description |
|---|
| Set value | Sets the value of the attribute to the provided value |
| Clear value | Clears the value of the attribute |
| Set selected value to | Will update the attribute with the label text of the selected option |
Actions
Advisor level
| Action | Description |
|---|
| Assign value | Assign a value to a context attribute, similar to regular context assignments, but when using an action, the assignment can be controlled with a condition |
| Run code | Executes the provided JavaScript code, use at your own risk! |
| Disable results page | Disables navigation to the result page |
| Enable results page | Enables navigation to the result page |
Question level
| Action | Description |
|---|
| Skip | Do not show the question and proceed the flow |
| Go to results | Skip all remaining questions and go to the results page |
| Assign value | Assign a value to a context attribute, similar to regular context assignments, but when using an action, the assignment can be controlled with a condition |
| Run code | Executes the provided JavaScript code, use at your own risk! |
| Disable results page | Disables navigation to the result page |
| Enable results page | Enables navigation to the result page |
Answer level