提供: Bright Pattern Documentation
移動先: 案内検索
• English


getAgentState

エージェントの状態を取得します

リクエスト

構文

getAgentState(): Promise<OperationResult<AgentStateData>>

ここで:

type AgentStateData = {

状態: AgentState

notReadyReason?: string

}

type AgentState = "受付可能" | "not_ready" | "話中" | "after_call_work"

パラメータ

(なし)

リクエスト例

   getAgentStateButton.onclick = () => {

adApi.getAgentState()

}

戻り値

オブジェクト オブジェクトの値 データ型 オプションですか?

(Y/N)

戻り値の値の説明
AgentStateData
状態 文字列 N 以下の状態値を返します:
  • "ready"
  • "not_ready"
  • "busy"
  • "after_call_work"
notReadyReason 文字列 Y エージェントが「not_ready」状態にある理由を返します。
< 前へ | 次へ >