Capture

通过 DTMF关闭 当用户在电话按键上按下或敲击某个键时产生的信号音。 从联系人收集信息。

Supported Script Types

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

电话

Input Properties

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

属性

说明

Caption

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

Variable 要包含的变量的名称。 the DTMF value that the contact enters.
MaxDigits 用户可以提供给操作的最大数字位数;例如,如果提示要求输入个人社会保障号码的最后四位数,将此值设置为 4。默认值为 1。如果提示需要一个终止符(例如井号或 #),则必须在 MaxDigits 值中予以说明。例如,如果录制的菜单消息要求输入社会安全号码的最后 4 位数字,然后是井号,则将该值设置为 5。当达到 MaxDigits 值时,如果已连接,则脚本将继续按照 MaxDigits 分支执行。
Terminator

输入您希望联系人输入的字符,以表明其已完成数字输入。例如,井号 (#) 通常用作终止符。如果您不想在此操作中使用终止符,请将此属性留空。

除非在 Terminator 字段中的字符后添加减号,否则终止符将被存储在 Variable 中。例如,#-

如果指定终止符,则必须将其包含在 MaxDigits 属性的字符数中。

Timeout 操作在超时之前等待执行的秒数。该值必须介于 060
InterDigitTimeout 联系人输入一个数字后系统等待的时间量,以确定联系人是否会输入另一个数字。您必须创建脚本逻辑来处理超时。

Result Branch Conditions

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

条件

说明

Default 除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。
Terminator 当呼叫者提供属性中指定的值时所采用的路径。
MaxDigits 呼叫者的输入值达到 MaxDigits 值时所采用的路径。
Timeout 在指定的秒数内没有响应时所采用的路径。
InterDigitTimeout 在呼叫者对提示的 DTMF 响应期间,超出 InterDigitTimeout 属性中指定的时间时所采用的路径。

Tips & Tricks

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

Script Example

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

In this example, the script requests an agent while the contact is in queue. During that time, music plays. If the contact presses any digit (DTMF tone) on their keypad while the music is playing, the contact will follow the digit branch to the Capture action. The Capture action assigns the stored DTMF tone as the value of the user-defined variable in the Capture action. In this case, the variable is named CallbackReq. Then, the If action checks the variable value and uses an expression (CallbackReq=1) to determine whether to follow the TRUE or FALSE branch. If TRUE, the contact proceeds to the Play action and a subsequent callback关闭 保留客户在队列中的位置,并在客户移动到队列前面时自动呼叫该客户。. If FALSE, music will continue to play for another 30 seconds.

A script where the MUSIC action has a branch connecting to CAPTURE, which links to IF, which has two branches for true and false.

Would you like to download this script?