Get Bot Transcript

Icon for the Get Bot Transcript action - a yellow circle with a piece of paper with lines on it inside.

返回虚拟坐席与联系人之间的对话记录文本。此操作还可以返回对话的意图信息。捕获的确切数据取决于在 虚拟坐席中心 中虚拟坐席应用程序的“记录文本”页面上选择的配置设置。您可以仅捕获记录文本、仅捕获意图、捕获记录文本和意图,或者均不捕获。

捕获的数据存储在一个变量中。您可以按任何方式使用存储的数据,但必须配置脚本以便对其进行管理。例如,对于转移给人工坐席的交互,您可以使用 Runapp 操作将脚本传递给坐席应用程序

Get Bot Transcript 与受支持的虚拟坐席一起使用。有关更多信息,请参阅本页上的“依赖关系”部分。

Dependencies

  • Get Bot Transcript 支持以下虚拟坐席提供程序:

    • Amazon Lex V1
    • Amazon Lex V2 
    • Google Dialogflow ES
    • Google Dialogflow CX
    • Microsoft Azure
    • Nuance Mix
    • 自定义虚拟坐席集成
  • 此操作不支持与使用 SIP关闭 用于对多媒体通信会话(如语音和视频通话)发出信号和进行控制的协议。 秘密渠道连接的语音虚拟坐席集成一起使用。
  • 对于要与之结合使用此操作的虚拟坐席,必须在 虚拟坐席中心 中配置应用程序的“记录文本”页上启用记录文本选项。
  • 捕获的数据将在联系人 ID 的生命周期内暂时储存。如果需要保存数据,则必须配置脚本以将其发送到存档。
  • 您可以将 Get Bot Transcript 与所有虚拟坐席 Studio 操作结合使用:Textbot ExchangeVoicebot ExchangeVoicebot Conversation

Supported Script Types

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 Digital script type - a computer monitor with a smartphone next to it.

聊天 电话 数字

Input Properties

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

属性

说明

Caption

Caption 更改为在脚本中唯一标识此操作的内容。IVR 发布路径报告包括操作的名称和标题。独特的描述性标题使报告更易于阅读和理解。

Format

输入希望返回的记录文本的格式。支持的格式为 HTMLJSON

Output Properties

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

属性

说明

TranscriptVarName (out)

包含转录后的文本。

Result Branch Conditions

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

条件

说明

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

操作无法正确执行时所采用的路径。例如,当出现意外问题时,如连接不良、语法错误、HTTP 错误代码等。ERR 变量中应填入对问题的简明解释。

OnSuccess

完成操作而无错误,且 API 调用或数据返回全部成功时所采用的路径(2xx 响应代码)。

Required SNIPPET Action Code

此操作需要记录文本代码片段。此代码创建一个动态对象来保存转录数据。它还将转录内容从对象复制到变量,以便可以将其传递到 坐席应用程序

Example Script

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

The example script shows a virtual agent script that uses the Voicebot Exchange action. It includes a branch for when the virtual agent signals that the interaction needs to be transferred to a human agent. That branch is shown in the image below.

When the human agent answers the call, the Get Bot Transcript action requests the transcript and passes the returned data to the Snippet action. The snippet code creates a dynamic data object called myTranscript. It then converts the data into JSON and stores it in a variable called transcriptHtml. This allows it to be sent to 坐席应用程序. The Runapp action is configured to display a web page that contains the transcript.

An example of a script that includes the Get Bot Transcript action.

The preceding example script uses the Voicebot Conversation action. Get Bot Transcript can also be used with Voicebot Exchange, Textbot Conversation, and Textbot Exchange.

Download script.