Spawn

此説明頁面適用於 Desktop Studio。 此資訊亦適用於 Studio。

Spawn 動作的圖示 - 一張彎曲的紙片,旁邊有省略號 (...) 和一個從紙片指向圓點的箭頭。

觸發一次性喚醒電話給另一個程式碼。 衍生的指令碼會與呼叫指令碼並行運行。 您可以用其來執行必須同時觸發的動作。 當通話程式碼觸發Spawn時,所產生的程式碼會立即開始執行,而通話程式碼則會繼續處理,除非使用StartDate參數來排程該次 spawn。

相依性

支援的程式碼類型

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

電郵指令碼類型的圖示 - 菱形中的大 @ 符號。

聊天指令碼類型的圖示 - 帶有省略號 (...) 的菱形聊天氣泡。

電話指令碼類型的圖示 - 一種帶有彎曲電話線的老式電話聽筒,表示會發出聲音。

語音郵件指令碼類型的圖示 - 類似於盒式磁帶的符號 - 兩個圓圈位於一條水平線上。

``` 工作項目指令碼類型的圖示 - 有一個角向下折疊的紙張,上面有一個項目符號清單。 ```

SMS 指令碼類型的圖示 - 帶有聊天氣泡的智慧型手機。

Digital 腳本類型的圖示-一部電腦顯示器,旁邊放置一部智能電話。

通用

電郵 聊天 電話 語音郵件 工作項目 SMS Digital

類似動作比較

以下動作有類似的功能,但有一些金鑰差異:

  • Runscript:當 Runscript 觸發另一個程式碼時,它不會從第二個程式碼返回第一個程式碼。
  • Runsub:當 Runsub 觸發子程式碼時,只要子程式碼具有 Return 動作,該程式碼便可返回第一個程式碼。該子指令碼完成後,Return 將向 Runsub 動作傳回一個值。
  • SPAWN:啟動與第一個指令碼並行執行的第二個指令碼。除非您在衍生的指令碼中加入SIGNAL動作,否則衍生的指令碼無法將資料傳回第一個指令碼。

輸入屬性

這些屬性定義了動作執行時使用的資料。

屬性

描述

標題

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. The default is the action name.

ScriptName 您想要建置的指令碼。 您可以按一下動作屬性方塊頂部的選擇程式碼連結,以從您的業務單元中選取程式碼。
SpawnIDVar 用於接收再生指令碼的唯一識別碼的變數名稱。 預設變數為 SPAWNID。 通常,識別碼是父指令碼的 主 ID。 然而,如果父程式碼是子程式碼或衍生程式碼,則該 ID 為聯絡 IDClosed 指派給每個聯絡的唯一數字識別碼。。 主 ID 和聯絡 ID 是為聯絡自動建立的預先定義變數。
技能 請選取或輸入您要將聯絡人路由至的 ACD 技能Closed 用於根據客服專員的技能、能力和知識,自動分派互動。名稱。如果您選取 預設,則程式碼會使用指派給相關聯絡點Closed 呼入聯絡用以發起互動的入口點,例如電話號碼或電郵地址。的預設技能。 變數替換通常用於該屬性。
StartDate

已產生指令碼的開始日期。 輸入日期/時間字串,使用格式,例如MM/dd/yyyy hh:mm:ss tt。

要讓 Spawn 動作建立一次性指令碼排程,只需指定一個至少在未來 10 分鐘後的開始日期。 如果未指定開始日期,則會立即產生目標指令碼。 該動作和要產生的指令碼都使用業務單元的時區。

參數 ```

Allows you to change the name of the default variables that hold values for parameters you want to send to the spawned or child script. The default variables are p1 - p9, but if you specify names in this property, those names replace the default variable names that the parameter values are passed in. If you don't change the names, the variables retain their default pX names.

要變更名稱,請為您要傳送至衍生或子程式碼的每個參數新增新的名稱。輸入最多九個變數名稱,每行一個。 變數名稱不必與衍生程式碼中使用的對應變數名稱相符,但應具有意義。這些值會以參數變數 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.