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
    • 自訂虛擬客服專員整合
  • 此動作不支援用於使用 SIPClosed 用於傳送訊號和控制多媒體通訊工作階段(例如語音和視訊呼叫)的協議。 後台通道連接的語音虛擬客服整合。
  • 若要為使用此動作的虛擬客服啟用轉錄選項,必須在虛擬客服專員中心中的配置應用程式的「轉錄」頁面上設定。
  • 擷取的資料會在聯絡 ID 的有效期內暫時儲存。如果需要儲存資料,您必須配置指令碼以將其傳送到一個存儅。
  • 您可以在所有虛擬客服專員 Studio 動作中使用 Get Bot TranscriptTextbot 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

此動作需要轉錄 snippet 代碼。此代碼建立了一個動態物件來保留轉錄資料。它還將轉錄內容從物件複製到一個變數中,以便將其傳遞給 客服專員應用程式

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.