Askcaller (Digital Scripts)

The Askcaller action icon - a chat bubble with a question mark on a yellow-green background.

使用任何支持的数字关闭 与Digital First Omnichannel相关的任何渠道、联系或技能。直接或私人消息应用程序(如 Facebook Messenger 或 WhatsApp)以及 Digital First Omnichannel SMS 和聊天从联系人请求信息。例如,您可以使用此操作让联系人向您提供账号、姓名或其他有用信息。

该操作会暂停脚本,直至收到回复。脚本等待联系人的响应,即使需要数天或者数周。这样便可支持数字通信的异步性。

这个操作需要 Digital First Omnichannel

Dependencies

  • 这个操作需要 Digital First Omnichannel
  • 在使用数字脚本之前,了解传统 ACD 脚本与数字脚本之间的区别。
  • 您可以在发给联系人的消息中使用富媒体关闭 数字消息传递中的元素,如按钮、图像、菜单和选项选取器。。您有两个选项:
    • CXone 中的“联络点数字”页面上创建富消息模板。在脚本中使用 GETRICHMESSAGEaction并将其配置为发送富媒体模板。将其放在 ASKCALLER 之前。将 ASKCALLER 中的 MessageFormat 属性设置为 JSON
    • snippet 操作中构建富媒体内容的 JSON。在 ASKCALLER 中,将 MessageFormat 设置为 Prompt Sequence 。此选项主要用于虚拟坐席。但是,如果您要使用的富媒体在 CXone 中无法用作模板,则可能需要使用它。
    • 如果您发送的消息包含联系人将与之交互的富媒体(例如选取器或按钮),您可能还需要配置 ResultPostback 属性。建议您联系 NICE CXone 专家服务团队,以获取有关构建包含富媒体的数字脚本的帮助。
  • 对富消息内容类型的支持因渠道而异,如以下下拉列表所示。

Supported Script Types

The icon for the Digital script type - a computer monitor with a smartphone next to it.

数字

对于其他受支持的脚本媒体类型,Askcaller 操作有单独的帮助页面:SMS 聊天

Input Properties

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

属性

说明

说明文字

输入在脚本中唯一标识此操作的短语。标题显示在脚本画布上的操作图标下方。The default is the action name.

Message 执行此操作时发送到所选目标的文本。您可以使用此字段中的变量。如果要发送包含富媒体内容的提示序列,则此字段必须为 JSON 对象
MessageFormat

发送消息的格式。可用的格式包括:

  • PromptSequence:如果通过 Snippet 中的 JSON 发送富媒体,请选择此选项。有关详细信息,请参阅“依赖关系”部分。
  • Text:如果消息是纯文本,请选择此选项。这是默认设置。
  • JSON:如果通过 GetRichMessage action发送富媒体,请选择此选项。有关详细信息,请参阅“依赖关系”部分。

MessageSender

可选字段,用于标识与此操作交互的 CXone 套件级组件。
ResultPostback

用于保存任何返回的回发数据的变量名称。当联系人与您发送的信息中的某些富媒体类型进行交互时,就会发送该数据。例如,如果在消息中包含时间选取器,联系人选择的时间选项就会在此变量中返回。

TimeoutSec

Timeout Sec

操作在超时之前等待执行的秒数。联系人在此限期内在聊天窗口中输入信息。

若要在不等待回复的情况下发送消息,请将此属性设置为 1

输出属性

这些属性包含保存执行操作返回的数据的变量。它们在操作完成后供引用和使用。

属性

说明

ResultVar 创建并保存返回信息的变量名称。例如,如果联系人将其帐号输入为 123456,则该变量保留 123456

结果分支条件

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

条件

说明

Default 除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。
On Timeout 在指定的秒数内没有响应时所采用的路径。
On CallerResponded 联系人提供响应时采用的路径。
On Error 操作无法正确执行时所采用的路径。例如,出现连接不良、语法错误等意外问题时。_ERR 变量以单个下划线字符填充,应包含对问题的简要解释。

Tips and Tricks

Script Example

此示例并非完整的脚本。要使用此操作,需要额外的脚本编写工作。

In the following script, the AskCaller action requests an account number from the contact. If the contact provides an account number, they are passed on to an agent through the Reqagent action.

Currently, using Reqagent with Askcaller in digital scripts requires a SNIPPET action. Additionally, it also requires the assistance of NICE CXone Expert Services.

If the contact does not respond, the interaction is looped back to the account number prompt. This occurs up to the number of times specified in the Loop action. Each loop sends a message explaining that the system did not receive a response from the contact. If no response is received after the specified number of loops, a different message is sent to inform the contact that no account number was received, then the interaction ends.

An example digital script that uses the Askcaller action.

Download this script.