ASKCALLER (聊天 Scripts)

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

支持的脚本类型

深绿色对话气泡图标

聊天

Askcaller 操作还可在使用 SMS 或 digital 媒介类型的脚本中使用。

输入属性

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

属性

说明

添加说明文字

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

消息 The text of the message you want to send. You can use a variablefor this field.
结果变量 The variable name that is created and holds returned information. For example, if the contact enters their account number as 123456, then the variable holds 123456. 默认为 RES。
超时秒数

该操作在超时之前等待执行的秒数。该值必须介于 0 和 60 之间。联系人在此限期内在聊天窗口中输入信息。

在值模式下:输入秒数或单击 + 或 - 按钮更改值。

在表达式模式下: 输入秒数。

结果分支条件

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

条件

说明

默认 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.
超时 Path taken if there is no response for the number of seconds specified.
CallerResponded Path taken if the contact provides a response.
错误 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.

脚本示例

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

在以下脚本中,Askcaller 操作会向联系人请求账号。 如果联系人提供了账号,则会通过 Reqagent 操作将其转接给坐席。 如果联系人未响应,交互将循环回到账号提示。 这种循环将持续执行,直至达到 Loop 操作中指定的次数。 每次循环都会发送一条说明系统没有收到联系人回应的消息。 如果在指定的循环次数后未收到任何响应,则会发送一条不同的消息,以告知联系人未收到账号,随后交互结束。

使用 Ask Caller 操作的聊天脚本示例

下载此脚本。