---
sourceDocument: Yokohama 対話型インターフェース
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/yokohama/conversational-interfaces

 Release :

    - yokohama

ft:locale :

    - ja-JP

ft:publication_title :

    - Yokohama 対話型インターフェース

ft:clusterId :

    - convint

bundleId :

    - convint

workflow :

    - Platform


---

# 入力インジケーター

# 入力インジケーター {#ariaid-title1}

* リリースバージョン: Yokohama
* 
* 更新日 2025年01月30日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

ボットまたは ライブエージェントが要求者への応答を準備しているときに、入力インジケーターを表示します。
仮想エージェントが要求を処理すると、\[入力インジケーター開始 (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;
        }
    })


