CC 自訂欄位

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

相依性

  • 此動作需要 Digital Experience (DX)。
  • 必須先在Digital Experience (DX)中建立自訂欄位,才可在程式碼中使用該欄位,因此您的租戶必須已啟用Digital Experience (DX),並且您必須擁有至少一個該產品的授權座位。
  • 此動作必須放置在Customer Card Create 動作動作之後,但必須在任何ONANSWER 動作動作之前。

支援的程式碼類型

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

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

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

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

電郵 聊天 電話 SMS

類似動作比較

以下 Actions 允許您從支援的非數碼Closed 與 Digital Experience (DX) 相關聯的任何通道、聯絡或技能。程式碼類型存取Digital Experience (DX)客戶卡片:

要在數位指令碼中執行相同的任務,請使用:

輸入屬性

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

屬性

描述

標題

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.

customCaseFields 您想要填充的自訂欄位名稱清單。 這些是您建立自訂欄位時,在Ident欄位中指定的值。 欄位名稱將自動轉換成小寫,並自動以底線 (_) 取代空格。 輸入清單時,您無需使用括號或引號。
customCaseValues 自訂欄位的值清單。 您必須擁有與欄位數目一樣多的值,但您可以傳遞空值。

結果分支條件

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

條件

描述

預設

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.

OnErrorError

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.

程式碼範例

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

使用 CC Custom Fields 動作向客服人員顯示自訂聯絡資訊的範例腳本

在此範例中,CC Custom Fields是第三個動作,位於Customer Card Create之後,標題為CustomField。 這可以讓客服專員在處理與該客戶的互動時查看其年齡、笑聲次數和其他資訊。 經腳本編寫後,customCaseFields 屬性將包含:age、laughs、state、cat_person及dog_person。 customCaseValues 屬性將包含:34、yes、Arkansas、no及yes。

最終的事件將為:

{
"EventType": "CustomFields",
"MessageId": "1c60020e-978b-4e65-82a0-1d75b08ee4d1",
"TenantId": "11e9d30c-b236-e0c0-96e2-0242ac110004",
"ContactId": 1684463,
"MasterId": 222599970,
"CustomData": {
	"age": "34",
	"laughs": "yes",
	"state": "Arkansas",
	"cat_person": "no",
	"dog_person": "yes"
	}
}