CC CUSTOM FIELDS

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

依赖关系

  • 这个操作需要 Digital Experience (DX)。
  • 必须先在 Digital Experience (DX) 中创建 自定义字段,然后才能在脚本中使用该字段,因此您的租户必须已启用 Digital Experience (DX),并且您必须至少拥有该产品的一个已授权席位。
  • 此操作必须放在 Customer Card Create 操作之后,但必须放在任何 onanswer 操作之前。

支持的脚本类型

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

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

Email 聊天 电话 短信

类似操作比较

以下操作允许您从受支持的非数字Closed 与 Digital Experience (DX) 相关联的任何渠道、联系或技能。脚本类型访问Digital Experience (DX)客户卡:

要在数字脚本中执行相同的任务,请使用:

输入属性

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

属性

说明

添加说明文字

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

自定义案例欄位

一个您想要填充的自定义字段名称列表。每个字段名称后按 Enter 键。每行应仅包含一个字段名称。该操作会将自定义字段名称存储为字符串数组。

这些是在创建自定义字段时分配给Ident字段的值。 字段名将自动转换为小写,并自动用下划线 (_) 替换空格。 在输入列表时,无需使用括号或引号。

自定义案例值

自定义字段值列表。 输入每个值后按 Enter 键。每行应包含一个值。 您必须具备与字段相同数量的值,但是您可以传递空值。 该操作将自定义字段值存储为字符串数组。

结果分支条件

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

条件

说明

默认

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.

脚本示例

这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。

使用 CC Custom Fields 操作的示例脚本

在此示例中,CC Custom Fields是第三个操作,位于Customer Card Create之后,标题为CustomField。 这允许坐席在处理与客户的交互时查看客户的年龄、笑次数和其他信息。 当编写脚本时,customCaseFields 属性将包含:age、laughs、state、cat_person 和 dog_person。 customCaseValues 属性将包含:34、是、阿肯色、否和是。

由此产生的事件将为:

{
"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"
	}
}		

下载此脚本。