AskCaller (SMS Scripts)

此説明頁面適用於 Desktop Studio。 此資訊亦適用於 Studio。

支援的程式碼類型

SMS 指令碼類型的圖示 - 帶有聊天氣泡的智慧型手機。

SMS

Askcaller 動作也可以在數位或聊天類型的指令碼中使用。

輸入屬性

這些屬性定義了動作執行時使用的資料。

屬性

描述

Caption ```

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. The default is the action name.

```
訊息 The text of the message you want to send. You can use a variablefor this field.
ResultVar The variable name that is created and holds returned information. For example, if the contact enters their account number as 123456, then the variable holds 123456.
TimeoutSec 動作在逾時前等待執行的秒數。此數值必須介乎0與60之間。聯絡人有此時間在他們的聊天視窗中輸入資訊。

結果分支條件

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

預設 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 if there is no response for the number of seconds specified.
CallerResponded Path taken if the contact provides a response.
錯誤 Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.

程式碼範例

下面是一個範例,說明如何在指令碼中使用此動作。 這不是一個完整的指令碼。 可能需要額外的指令碼。

在以下指令碼中,AskCaller 動作將請求聯絡人提供帳號。 若聯絡人提供了帳號,則會透過 Reqagent 動作將其傳給客服專員。 若聯絡人未回應,則互動將返回到帳號提示環節。 這會按照 Loop 動作中指定的次數重複發生。 每次重複均會傳送一則訊息,解釋系統未收到聯絡人的回應。 如果經過指定的循環次數後仍未收到回應,便會發送另一則不同的訊息,通知聯絡人未收到帳號,然後互動便會結束。

``` 包含 ASKCALLER SMS 的指令碼範例 ```

是否要下載此指令碼?