SPAWN

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

Icon of Spawn: purple recycling-style arrows around a circle

为另一个脚本发出一次性唤醒呼叫。 派生的脚本与调用脚本并行运行。 您可以使用它们来执行必须同时发生的操作。 当呼叫脚本触发 Spawn 时,被衍生的脚本会立即开始运行,而呼叫脚本将继续处理,除非使用 StartDate 参数来计划安排衍生操作。

依赖关系

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

通用

Email 聊天 电话 語音邮件 工作项目 短信

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

脚本名称 The script you want to spawn. Choose a script from the drop-down list or enter its name and relative path. The script must be located in the same folder as the calling script or in one of its subfolders.
衍生 ID 变量 用于接收衍生脚本的唯一标识符的变量的名称。 默认变量是 SPAWNID。 此标识符一般为父级脚本的主 ID。 但是,如果父级脚本是子脚本或衍生脚本,则 ID 为联系人 IDClosed 分配给每个联系人的唯一数字标识符。。 主 ID 和联系人 ID 是为联系人自动创建的预定义变量。
技能 选择或输入要将联系人路由到的 ACD 技能Closed 用于根据坐席的技能、能力和知识自动传递交互。的名称。如果选择 Default,则脚本将使用分配给关联联系点Closed 呼入联系用来发起交互的入口点,如电话号码或电子邮件地址。的默认技能。 变量替换通常用于此属性。
StartDate

生成脚本的开始日期。 输入日期/时间字符串,使用格式,例如 MM/dd/yyyy hh:mm:ss tt。要使 Spawn 操作创建一次性脚本计划表,只需指定一个至少在未来 10 分钟后生效的开始日期。 如果没有指定开始日期,则目标脚本会立即生成。 此操作和要衍生的脚本均使用业务单位的时区。

参数

允许您更改默认变量的名称,这些默认变量用于保存传递给此脚本的参数的值。允许您更改默认变量的名称,这些默认变量保存您想要发送到派生脚本或子脚本的参数的值。 默认变量为 p1 - p9,但如果您在此属性中指定了名称,则这些名称将替换传递参数值所使用的默认变量名称。 如果不更改名称,则这些变量将保留其默认 pX 名称。

要更改名称,请为要发送到衍生脚本或子脚本的每个参数添加新名称。Enter 最多九个变量名称,每行一个。 变量名称不必与衍生脚本中使用的相应变量的名称匹配,但应具有一定的含义。这些值作为参数变量 p1 - p9 传递。

传递到脚本中的参数会出现在该脚本的跟踪输出中的 Begin 操作里。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.
OnLinked Path taken if the spawned script issues a voice Link action with the calling voice script. The Spawn action will not suspend the script waiting for the OnLinked branch condition to trigger. Instead, the Default branch condition will be triggered and the OnLinked branch condition will be remembered. This is an Interrupt event.

稍后,当子脚本执行 Link 操作时,父脚本将停止处理并跳转到附加到“On Linked”分支条件的操作。

OnTerminated Path taken when the spawned script finishes. The Spawn action will not suspend the script waiting for the OnTerminated branch condition to trigger. Instead, the Default branch condition will be triggered and the OnTerminated branch condition will be remembered. This is an Interrupt event.

稍后,当子脚本执行终止时,父脚本将停止处理并跳转到附加到 OnTerminated 分支条件的操作。

错误 Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.