Wait

给脚本添加暂停。

Wait 在系统需要一点额外时间来处理请求的情况下非常有用,例如:

  • 将文件写入服务器或通过 FTP 发送文件。
  • 处理内容。
  • 与 CRM 集成,以检索和排队工作项。

在这些和类似的情况下,添加短暂的暂停可以让处理完成。它有助于防止服务器因并发请求而过载。暂停时间可以很短,短至 0.1 秒。

Wait 还有其他用途,例如:

  • Hangup 操作之前添加延迟。这使联系人有机会先挂断,而不是听到呼叫断开。
  • 在聊天脚本中的 Exit 操作之前添加延迟。如果在发送消息后过快终止脚本,则最后一条信息有时不会出现在聊天中。
  • 使用 Music 操作创建一个重复循环。确保在 WaitMusic 之间具有双向连接器。
  • 当使用 Askcaller 操作提示联系人进行另一个响应时,提示联系人进行另一个响应。

Dependencies

使用 Wait 创建一个循环时,例如使用 Music 操作,Wait 与另一个操作之间必须具有双向连接器,如本示例图所示。

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

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

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信 数字

Input Properties

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

属性

说明

Caption

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

Seconds

输入要添加的暂停时间(秒)。可以输入小于一秒的时间量,例如 0.5

Result Branch Conditions

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

条件

说明

Default

除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。

Tips & Tricks

  • Wait 在将文件写入服务器或 FTP 的脚本中尤其有用。
  • Wait 在处理内容或与 CRM 集成以检索和排队工作项的脚本中非常有用。通过此操作添加短暂的暂停,可以完成处理过程,并有助于防止服务器因并发请求而过载。短暂的等待(如 0.1 秒)可以防止出现问题。
  • Hangup 操作之前包括几秒钟的等待时间。这使联系人有机会在听到呼叫断开之前挂断。
  • 在聊天脚本中的 Exit 操作之前添加 Wait。如果在发送消息后过快终止脚本,则该消息有时不会出现在聊天中。
  • 循环 Wait 操作,使用 Askcaller 操作提示联系人进行另一个响应。
  • 测试脚本时,如果您发现它在小数秒数方面似乎有问题,请尝试使用逗号而不是句号。例如,尝试用 0,5 代替 0.5

Script Example

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

This example shows a message that plays when the script is triggered and then requests and agent. If the caller has to wait for the agent to answer, music will play for 20 seconds and then suspended for 0.5, play for another 20, and so on until the call is answered.

Download this script.