Askcaller (聊天指令碼)
此説明頁面適用於 Desktop Studio。 此資訊亦適用於 Studio。
|
|
向聊天聯絡人請求資訊。 例如,可使用此動作請求聯絡人向您提供帳號、姓名或任何其他有用資訊。 |
支援的程式碼類型
|
|
| 聊天 |
Askcaller動作亦可在使用SMS或digital媒體類型的指令碼中使用。
輸入屬性
這些屬性定義了動作執行時使用的資料。
|
屬性 |
描述 |
|---|---|
| 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 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 | 動作在逾時前等待執行的秒數。 |
結果分支條件
結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。
|
條件 |
描述 |
|---|---|
| 預設 | 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 動作中指定的次數重複發生。 每次重複均會傳送一則訊息,解釋系統未收到聯絡人的回應。 如果在指定的循環次數後仍未收到回應,系統便會傳送另一則訊息,通知聯絡人未收到帳號,然後互動便會結束。
是否要下載此指令碼?