CAPTURE

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

支持的脚本类型

Icon of purple telephone handset

电话

输入属性

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

属性

说明

添加说明文字

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

变量 The name of the variable that you want to hold the DTMF value that the contact enters.

MaxDigits

用户为该操作可提供的最大数字位数;例如,如果提示请求人员社会安全号码的后四位,请将此值设置为4。 默认值为 1。 如果提示需要一个终止符(例如井号或 #),则必须在 MaxDigits 值中予以说明。 例如,如果录制的 Menu 消息要求输入社会安全号码的后 4 位数字,然后输入井号键,请将该值设置为 5。 当达到最大数字值时,脚本将继续沿MaxDigits分支执行(如果已连接)。
终止器 输入您希望联系人输入的字符,以表明其已完成数字输入。 例如,井号 (#) 通常用作终止符。 如果您不想在此操作中使用终止符,请将此属性留空。 终止符字符存储在 变量 中,除非您在终止符字段添加减号标志。 例如,#-。 如果指定终止符,则必须将其包含在 MaxDigits 属性的字符计数中。
超时 该操作在超时之前等待执行的秒数。该值必须介于 0 和 60 之间。

数字间超时

The amount of time after the contact enters a digit that the system waits to see if the contact enters another digit. You must create scripting logic to handle a timeout.

结果分支条件

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

条件

说明

默认 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 when the caller provides the value specified in the property.
最大数字 Path taken when the caller's input reaches the MaxDigits value.
超时 Path taken if there is no response for the number of seconds specified.
内部数字超时 Path taken when the time specified in the InterDigitTimeout property is exceeded during the caller's DTMF response to a prompt.

提示与技巧

  • 联系人可以在执行 Capture 之前按下数字,如听到语音提示时。 这些数字保存在一个数字缓冲区中,一旦捕获被触发,就会加入这些数字。
  • 要在发出 Capture 问题之前清除数字缓冲区,请先发出另一个 Capture 问题,并将超时属性设置为零。

脚本示例

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

在本例中,该脚本在联系人排队时请求坐席。 在这段时间,会播放音乐。 如果联系人在播放音乐时按下键盘上的任意数字(DTMF 音),联系人将按照该数字分支转到捕获操作。 Capture 操作将存储的 DTMF 铃声分配为 Capture 操作中用户定义变量的值。 在本例中,变量名为 CallbackReq。 然后,If 操作检查变量值,并使用表达式(CallbackReq=1)确定关注 TRUE 分支还是 FALSE 分支。 如果TRUE,则联系人将继续执行Play操作和后续回呼Closed 保留客户在队列中的位置,并在客户移至队列最前端时自动呼叫该客户。。 如果是 False,音乐将再播放 30 秒。

使用 Capture 操作的示例脚本

下载此脚本。