抄送自定义字段

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

依赖关系

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

支持的脚本类型

电子邮件脚本类型的图标——菱形中的一个大 @ 符号。

聊天脚本类型的图标——一个聊天气泡,带有一个包含省略号 (...) 的菱形。

电话脚本类型的图标——一种老式电话听筒,带有曲线表示从它发出的声音。

" \"SMS"

Email 聊天 电话 短信

类似操作比较

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

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

输入属性

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

属性

说明

标题

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

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