Assign

사용자 정의 변수에 고유한 값을 할당합니다.

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

일반

이메일 채팅 전화 음성 사서함 작업 항목 SMS 디지털

Input Properties

이러한 속성은 실행할 때 작업이 사용하는 데이터를 정의합니다.

속성

설명

Caption

스크립트에서 이 작업을 고유하게 식별하는 짧은 문구를 입력합니다. 캡션은 스크립트 캔버스의 작업 아이콘 아래에 표시됩니다. The default is the action name.

Variable 보류하고자 하는 변수의 이름 the value.
Value 저장될 값 또는 데이터.
Type String, Numeric, 또는 Datetime 중에서 선택합니다. 이곳에서 선택한 유형은 Value 속성을 바꿔 Value 필드에 입력한 데이터를 해석합니다. 예를 들어, String을(를) 선택하고 1+1 값을 입력하면 변수에 할당된 실제 값은 1+1입니다. 하지만 Numeric을(를) 선택하고 1+1 값을 입력하면 변수에 할당된 값은 2입니다.
ScreenPop

생성하는 변수의 속성입니다. 참으로 설정되면 변수의 값이 상담원을 위해 표시되는 기본 화면 팝업닫힘 컨택에 대한 정보가 있는 구성할 수 있는 팝업 창입니다. 일반적으로 상담원이 컨택에 연결할 때와 같은 특정 이벤트 후 상담원의 화면에 나타납니다.에 표시됩니다. 화면 팝업 사용 옵션은 현재 ACD 스킬닫힘 상담원 스킬, 능력 및 지식에 기반한 상호작용의 전달을 자동화하는 데 사용됩니다.에 대해 활성화되어야 합니다. Select True to enable the display of this value in the default screen pop. 기본값은 False입니다.

SavetoDB

생성하는 변수의 속성입니다. 이는 변수의 값이 CXone 플랫폼 데이터베이스에 저장되는지 여부를 제어합니다. 저장된 데이터에는 다음과 같은 두 가지 방법으로 액세스할 수 있습니다.

또한 Snippet 작업에서 변수로 작업할 때 savetodb() 변수 속성을 사용할 수 있습니다.

Select True to enable this value to be saved in the database. 기본값은 False입니다.

MaxStringSize 저장할 수 있는 값의 최대 크기(KB 단위)입니다. 기본 크기는 2KB입니다.

Result Branch Conditions

결과 브랜치 조건을 사용하면 작업이 실행될 때 여러 결과를 처리하기 위해 스크립트에 브랜치를 생성할 수 있습니다.

조건

설명

Default 다른 분기를 사용하기를 요구하는 조건을 스크립트가 충족하지 않는다면 사용되는 경로입니다. 작업의 다른 분기가 정의되지 않았을 때도 사용되는 경로입니다.
Overflow 변수에 할당된 값이 최대 문자열 크기를 초과할 경우 사용되는 경로입니다.

Tips & Tricks

  • Assign을(를) 사용하여 문자열 또는 숫자 변수의 콘텐츠를 설정합니다.
  • 변수 도움말 페이지에서 Assign 작업을 사용하여 값을 추가 또는 편집하는 방법에 관해 알아보십시오.
  • 스크립트 변수 값은 변수 이름이 일치하고 스크립트 Assign 작업이 ScreenPop = true으로 설정된 경우 상담원 애플리케이션의 빠른 응답 변수에 자동으로 병합되거나 미리 채워집니다. 변수 값이 병합된 경우 미리 채워진 빠른 응답 필드를 수동으로 수정할 수 있는 상담원의 기능은 유지됩니다. ScreenPop에 구성된 변수 데이터의 총량은 200KB 이하여야 합니다. 데이터의 양이 많을수록 상담원 애플리케이션 성능이 느려집니다.
  • 변수 이름 앞에 global 키워드를 포함하여 첨자에 전역 변수를 만듭니다. 예: Global:varName

Script Example

이 예시는 완전한 스크립트가 아닙니다. 이 작업을 사용하려면 추가 스크립팅 작업이 필요합니다.

Begin triggers a Menu that provides three options, press 1 for Sales, 2 for Support, or 3 for Account Management. When the user selects an option, the script uses a specific Assign action to assign a value for the Skill ID that Countagents uses to determine the number of agents logged in with that skill. The If action then uses an expression, TOTAL=0, to determine which branch to take if agents are logged in. TRUE means the total agents logged in does equal 0 for that ACD skill, and the script will run a separate script for leaving a message. FALSE means the total agents logged in does not equal 0, and Reqagent uses the variable value in Assign to request an agent with the skill (via the Skill ID in Newskill).

Download this script.