脚本参数片段

此代码片段定义了通过 Agent Assist action传递给代理辅助应用程序的数据。 将此代码添加到脚本中的 Snippet action:

DYNAMIC customParam
customParam.param1 = "{value1}"
customParam.param2 = "{value2}"
customParam.param3 = "{value3}"
customParam.param4 = "{value4}"

ASSIGN customParamjson = "{customParam.asJSON()}" 

如果没有要发送的自定义有效负载参数,但需要脚本参数代码片段,您可以在该代码片段中包含变量声明,而不分配任何值。 例如:

DYNAMIC customParam
ASSIGN customParamjson = "{customParam.asJSON()}" 

要使用此代码片段:

  1. 根据需要更改参数名称和值,以满足您的组织和您使用的坐席助手应用程序的需求。
  2. 将脚本中的 Snippet 操作放在 Agent Assist 操作之前。
  3. 在 scriptParams Agent Assist 中配置 action 属性,使用保存 JSON 的变量名称。 在提供的示例中,这将是 customParamjson。

Google Contact Center AI 的语音上下文提示

本节中的内容适用于受控版本 (CR) 中的产品或功能。 如果您不是 CR 组的成员,如需了解更多信息,请联系您的 客户代表。

您可以利用“脚本参数”代码片段将语音上下文提示传递给 Google Contact Center AI (CCAI)。 按照以下格式将上下文添加到代码片段:

DYNAMIC customParam
customParam.speechContexts[1].phrases[1] = "word 1"
customParam.speechContexts[1].phrases[2] = "word 2"
customParam.speechContexts[1].phrases[3] = "phrase 1"
customParam.speechContexts[1].boost = 20

ASSIGN customParamJSON = "{customParam.asJSON()}"	

在每个 customParam.speechContexts[#].phrases[#] 属性中包含一个单词或短语。 您可以通过使用 speechContexts 属性的不同索引号来创建不同的上下文提示集。

customParam.speechContexts[1].boost 属性为可选项。 如果您想与其他集合相比增强上下文提示集,则可以包含它。 将 boost 设置为 0 到 20 之间的正整数。 如果您不包含 boost 或将其设置为负数,则不会增强上下文提示集。