Define script variables for a topic
On this page
Define script variables for a topic
Use the Variables sidebar to define script variables for a topic. Script variables can store information that is not found in ServiceNow tables. This information can then be shared elsewhere in a topic.
Before you begin
Role required: virtual_agent_admin or admin
About this task
For more information about writing scripts for Virtual Agent, see Virtual Agent scripts.
Procedure
-
Navigate to All > Conversational Interfaces > Assistant Designer.
-
Select the Asset library tab.
-
Open an existing topic or create a new one.
The Flow tab displays the conversation flow.
-
In the sidebar, select the Variables tab, then select the Script plus [Omitted image "icon-plus-clear.png"] Alt text: Script plus icon. icon.
-
On the form, fill in the fields.
Field Description Variable name Name of the variable. The name is case-sensitive. Spaces in the name are replaced with an underscore character. Default value Default value for the variable. You can use either a static value or a script that specifies a dynamic value for this variable. -
Select Save.
Parent Topic:Creating a Virtual Agent topic
Keep exploring.
Find another answer, or bring this documentation into your own tools.