Runscript

The icon for the Runscript action - a curved piece of paper.

통화 스크립트의 확장인 것처럼 새 스크립트에 대한 스크립트 실행을 계속합니다.

Runscript을(를) 사용하는 이점 중 하나는 하나의 큰 스크립트를 사용하는 대신 작은 스크립트를 만들 수 있다는 것입니다.

Dependencies

  • 기본 스크립트와 하위 스크립트는 같은 폴더에 있어야 합니다.
  • 기본 스크립트 유형과 하위 스크립트 유형이 동일해야 합니다. 예를 들어, 기본 스크립트가 전화 스크립트인 경우 하위 스크립트도 전화 스크립트여야 합니다.
  • ContactID은(는) 기본 스크립트와 하위 스크립트 모두에 대해 동일합니다.
  • Runscript이(가) 하위 스크립트를 트리거한 후 기본 스크립트는 실행을 두 번째 스크립트로 전달하고 더 이상 실행되지 않습니다. 두 스크립트를 동시에 실행하려면 Spawn action을(를) 사용하십시오. 첫 번째 스크립트의 모든 변수는 두 번째 스크립트에서 그대로 유지됩니다.
  • 값을 전달하고 반환하는 기능을 포함하여 다른 스크립트를 실행하고 완료 시 첫 번째 스크립트로 돌아가려면(예: 프로그래밍 서브루틴) Runsub action을(를) 사용합니다.
  • Runscript이(가) 하위 스크립트를 트리거하면 기본 스크립트가 종료됩니다.
  • RunScript , Spawn, Runsub, 또는 유사한 스크립트에 의해 호출되는 모든 스크립트는 유효하며 활성 상태여야 합니다. 저장 프로세스 중에 Studio은(는) 작업에 의해 호출되는 모든 스크립트의 유효성을 검사합니다. 이 중 아무것이라도 유효하지 않거나 활성 상태가 아니면 Studio은(는) 오류를 표시하며, 저장할 수 없게 됩니다.

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 디지털

Comparison of Similar Actions

다음 작업에는 유사한 기능이 있지만 주요 차이점이 있습니다.

  • RunscriptRunscript이(가) 하위 스크립트를 트리거하면, 하위 스크립트에서 처음 스크립트로 돌아가는 방법은 없습니다.
  • Runsub: Runsub이(가) 하위 스크립트를 트리거하면, 해당 하위 스크립트에 Return 작업이 있는 한 스크립트는 첫 번째 스크립트로 돌아갈 수 있습니다. Return 작업은 하위 스크립트가 완료되면 Runsub 작업에 값을 반환합니다.

Input Properties

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

속성

설명

캡션 추가

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

ScriptName

생성할 스크립트입니다. Choose Script 링크를 작업의 속성 박스 상단에서 클릭하여 사업부를 위해 저장된 스크립트를 선택할 수 있습니다.

Result Branch Conditions

None

Script Example

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

The following example is a part of a much larger script. In this example, Runsub triggers a different script, in which the Return action enables the Case action in the script below to determine whether the organization is open, closed, or on holiday. If it is determined that the office is closed or on holiday, a Play action will play a specific message (either a closed message or a holiday message). The Runscript will then terminate the script and trigger the subscript.

An example script, showing Studio actions with arrows connecting them. Each action has a label beneath it to indicate what the action does in the script.

Would you like to download this script?

The subscript that Runscript triggers is shown below. The script enables the contact to leave a message. The main script passed a variable with the caller ID and contact ID닫힘 각 연락처에 할당된 고유 숫자 식별자입니다 to the subscript, which enables the contact to leave a message, review a message, take corrective action if no voice was heard, or to enable the contact to re-record their message.

An example script, showing Studio actions with arrows connecting them. Each action has a label beneath it to indicate what the action does in the script.

Would you like to download this script?