SIGNAL

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

Icon of Signal: purple broadcast tower with signal waves

透過觸發Onsignal 動作事件,與另一個程式碼通訊。 使用Signal動作可中斷另一個程式碼並向其傳遞參數。 最多可以傳遞九個參數。 當訊號到達時,另一個指令碼可能正在積極處理其他動作。 它將立即中止正在執行的任何動作並跳轉到 Onsignal 事件動作(如果存在)。

例如,建立下班後技術支援指令碼。 一個客戶打來電話,多個指令碼隨即產生,以同時呼叫四名隨叫隨到的技術人員。 當其中一個指令碼接通真人技術人員(而非語音郵件或無應答)時,衍生的指令碼會向原始指令碼發出訊號,並將兩個通話合併。

相依性

  • 目前的實作無法確保多個ONSIGNAL事件不會互相中斷。 一個指令碼可能在同一時刻收到兩次訊號,並且表現得好像它只收到一次訊號一樣。 此情況可以透過仔細編寫指令碼來避免。
  • 您必須參考正確的聯絡 IDClosed 指派給每個聯絡的唯一數字識別碼。。 通常,這是透過使用已儲存在資料庫中的變數,並使用 Putvalue 動作來處理的。

支援的程式碼類型

一個正方形,其上有一條通往其他三個正方形的分支線。

Icon of gray-green envelope

深綠色語音氣泡圖示

Icon of purple telephone handset

鏽色留言符號圖示,由兩個以線條相連的圓形組成

Icon of pink document with lines of text

Icon of green mobile phone with a speech bubble on its screen

通用

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

輸入屬性

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

屬性

描述

新增標題

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

聯絡 ID

要發出訊號的指令碼的唯一識別碼。

參數

一個值 (0-9),指示要傳送給訊號指令碼的參數數量。 參數命名為 SP1 到 SPn(其中 n 是參數計數)。

結果分支條件

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

預設

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.

Error

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.