提供: Bright Pattern Documentation
• English
setAgentState
エージェントの状態を指定された値に設定します。
注:NotReady状態の場合、notReadyReasonに値を指定する必要があります。その他の状態では、この指定は必須ではありません。
リクエスト
構文
| setAgentState(状態: AgentState, notReadyReason?: string): Promise<OPERATIONRESULT<null>> |
ここで:
パラメータ
| パラメータ | パラメータの値 | データ型 | オプション/必須 | 説明 |
| 状態 |
"ready" "not_ready" |
文字列 | 必須 | エージェントの状態を設定できます |
| notReadyReason | 文字列 | オプション | エージェントが現在「Ready」状態ではない理由を指定できます。「受付不可」状態でのみ使用されます。入力する値は、 『Contact Center Administrator』アプリケーションで定義されている値と一致している必要があります。これらは、API メソッド getAgentNotReadyReasons を使用してプログラムから取得できます。 |
リクエスト例
setAgentStateButton.onclick = () => {
const state = agentStateInput.値
const notReadyReason = notReadyReasonInput.値
adApi.setAgentState(state as any, notReadyReason)
}
戻り値
(なし)