ボットまたは ライブエージェントが要求者への応答を準備しているときに、入力インジケーターを表示します。

仮想エージェントが要求を処理すると、[入力インジケーター開始 (Start typing indicator)] アクションが呼び出されます。仮想エージェントが要求処理を完了すると 仮想エージェントが出力コントロールまたは入力コントロールを処理する前に、[入力インジケーター終了 (End typing indicator)] アクションが呼び出されます。

これらのアクションは、defaultText コントロールの送信変換を呼び出します。次の例は、defaultText コントロールの送信変換で入力インジケーターがどのように処理されるかを示しています。

例:入力インジケータースクリプト
(function execute(inputs, outputs) {
    try {
        var richControl = inputs.rich_control;
        var actionType = richControl.type;
        if(actionType == 'StartTypingIndicatorActionMsg'){
            outputs.result = '{activity:{type: "typing" }}'
        }else if(actionType == 'EndTypingIndicatorActionMsg'){
            outputs.result = '{activity:{type: "message" , text: "Finished typing"}}'
        }
       /* Handle other type of control */
    } catch (e) {
        gs.error("Error in default action outbound transformer : " + e.message);
        throw e;
    }
})