Define script variables for a topic

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • 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.

    시작하기 전에

    Role required: virtual_agent_admin or admin

    이 태스크 정보

    For more information about writing scripts for Virtual Agent, see Virtual Agent scripts.

    프로시저

    1. Navigate to All > Conversational Interfaces > Virtual Agent > Designer.
    2. On the home page, open an existing topic or create a new one.
      The Flow tab displays the conversation flow.
    3. In the sidebar, select the Variables tab, then select the Script plus Script plus icon. icon.
    4. On the form, fill in the fields.
      표 1. Add Script Variable dialog box
      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.
    5. Select Save.