{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4932,"path":"conversational-interfaces/virtual-agent/define-script-variables-topic.md","title":"Define script variables for a topic","bundle":null,"doc_type":null,"release":"australia","body":"\n# Define script variables for a topic\n\nUse 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.\n\n## Before you begin\n\nRole required: virtual\\_agent\\_admin or admin\n\n## About this task\n\nFor more information about writing scripts for Virtual Agent, see [Virtual Agent scripts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/virtual-agent-scripts.md).\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Conversational Interfaces** &gt; **Assistant Designer**.\n\n2.  Select the **Asset library** tab.\n\n3.  Open an existing topic or create a new one.\n\n    The **Flow** tab displays the conversation flow.\n\n4.  In the sidebar, select the Variables tab, then select the **Script** plus \\[Omitted image \"icon-plus-clear.png\"\\] Alt text: Script plus icon. icon.\n\n5.  On the form, fill in the fields.\n\n    |Field|Description|\n    |-----|-----------|\n    |Variable name|Name of the variable. The name is case-sensitive. Spaces in the name are replaced with an underscore character.|\n    |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.|\n\n6.  Select **Save**.\n\n\n**Parent Topic:**[Creating a Virtual Agent topic](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/create-virtual-agent-topic.md)\n\n"}}