TEXTMSG (Digital 指令碼)

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

Icon of TextmsgDigital: magenta speech bubble with three dots

向聯絡人傳送文字訊息。 數碼 Textmsg 動作支援 豐富媒體Closed 數碼訊息傳遞中的元素,例如按鈕、影像、選單及選項選擇器。 內容。 如果您使用數位通道支援它,可以在傳送的訊息中使用這些內容。 富媒體內容包括諸如按鈕、轉盤和清單選取器等項目。

相依性

  • 此動作需要Digital Experience (DX)。
  • 在開始使用數碼指令碼之前,請先了解傳統ACD指令碼與數碼指令碼之間的差異。
  • You can use rich mediaClosed 數碼訊息傳遞中的元素,例如按鈕、影像、選單及選項選擇器。 in the message to the contact. You have two options: 
    • 建立富訊息範本,位置在NiCE CXone中的Points of Contact Digital頁上。在您的程式碼中使用GETRICHMESSAGE 動作,並將其設定為傳送富媒體範本。將其放在TextMsg之前。在TextMsg中,將MessageFormat屬性設定為JSON。
    • Build the JSON for the rich media content in a snippet 動作中。 在TextMsg中,將MessageFormat設定為Prompt 序列。 該選項主要用於虛擬客服。 但是,如果要使用的富媒體在 NiCE CXone 中不可用作範本,您可能需要使用該選項。
  • 豐富訊息內容類型的支援因通道而異。

支援的程式碼類型

Icon of purple computer monitor with a mobile device overlapping its lower right corner

Digital

輸入屬性

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

屬性

描述

新增標題

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

訊息 The text of the message you want to send. You can use a variablefor this field.
訊息格式

選擇您想傳送的資訊的格式。 選項包括:

  • PromptSequence:如果以在程式碼片段中建立的 JSON 形式傳送豐富媒體,請選取此選項。 有關詳細資訊,請參閱「相依性」部分。
  • 文字:如果訊息為純文字,請選擇此選項。 這是預設值。
  • JSON:如果透過 GetRichMessage動作傳送豐富媒體,請選取此選項。 有關詳細資訊,請參閱「相依性」部分。
訊息發送者 ```

內部使用。

```
訊息狀態

訊息的狀態。從下拉式清單中選取一個選項。選項包括待處理、已上報、已解決及開啟。預設值為待處理。

訊息作者

訊息的傳送者。從下拉式清單中選取一個選項。選項為系統及所有可傳送數位訊息的客服專員。預設值為系統。

訊息狀態

訊息的狀態。從下拉式清單中選取一個選項。選項包括待處理、已上報、已解決及開啟。預設值為待處理。

結果分支條件

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

條件

描述

預設

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.

程式碼範例

下面是一個範例,說明如何在指令碼中使用此動作。 這不是一個完整的指令碼。 可能需要額外的指令碼。

在此範例中,TEXTMSG 的標題為 newWelcomeMsg。此程式碼示範如何從預聊天調查中捕獲值,設定供 TEXTMSG 使用的變數值,然後將 聯絡Closed 在您的聯絡中心內與客服專員、IVR 或機械人互動的人員。傳送給客服專員。

Sample script showing a digital live chat using the TEXTMSG action.

下載此程式碼。