Share via


用戶結束聊天之後,Power Virtual Agents Bot 交談在儀錶板上會顯示為作用中

本文提供解決方法,解決即使使用者已結束聊天,Power Virtual Agents Bot 交談仍會在 Customer Service 儀錶板的 Omnichannel 上顯示為作用中的問題。

徵狀

交談結束后,Power Virtual Agents Bot 交談仍會在儀錶板上顯示為作用中。

原因

Power Virtual Agents Bot 的交談無法在客戶服務的 Omnichannel 中結束。 因此,即使在主管儀錶板關閉之後,他們也會被視為作用中。

解決方案

您可以設定內容變數,在使用者關閉聊天窗口之後,在 Omnichannel for Customer Service 中明確結束 Bot 交談。 在 Power Virtual Agents 中,建立內容變數的獨立主題,並將變數屬性設定globalCloseOmnichannelConversation 。 在您為 Bot 設定的另一個主題中叫用主題。

雖然交談將會在客戶服務的 Omnichannel 中關閉,但不會在 Power Virtual Agents 中關閉,而且會出現在 Power Virtual Agents Analytics 儀錶板的 [呈報率驅動程式 KPI] 中。

重要事項

請確定您可以存取 Power Automate 來設定流程,以便結束 Omnichannel for Customer Service 中的 Bot 交談。

若要設定結束 Bot 對話,請採取下列步驟:

  1. 在Power Virtual Agents中,針對選取的 Bot 設定新主題。

  2. 取 [移至撰寫畫布],然後在 [ 新增節點] 中選取 [ 呼叫動作],然後選取 [ 建立流程]

  3. 在新的索引標籤上開啟的 [Power Automate] 視窗上,採取下列步驟:

    1. 在 [ 傳回值 () 至 Power Virtual Agents ] 方塊中,選取 [ 新增輸入],然後選取 [ 是/否]
    2. 在 [ 輸入標題 ] 方塊中,輸入 CloseOmnichannelConversation,這是 Customer Service 內容變數名稱的 Omnichannel。
    3. 在 [ 輸入要回應的值 ] 方塊中,選取 [ 表達式 ] 索引標籤,然後輸入 bool (true) 以建置表達式,然後選取 [ 確定]
    4. 儲存變更,然後結束 Power Automate。
  4. 在您編輯的主題中,再次選取 [ 呼叫動作 ],然後在清單中選取您建立的流程。

  5. [新增節點] 中,選取 [結束交談>傳送至代理程式]

    顯示如何設定結束交談主題的螢幕快照。

  6. 移至您需要叫用主題以結束 Customer Service Omnichannel 中 Bot 交談的主題,然後使用 [新增節點] 中的 [移至另一個主題] 選項。

  7. 選取您為結束 Bot 對話所建立的主題。

  8. 儲存併發佈變更。

此外,您可以在 Omnichannel for Customer Service 中設定自動訊息,以在交談結束後向用戶顯示。