機械翻訳について

エージェントが通話を実行または受理できるようにします

エージェントがFusionアプリケーションにログインすると、エージェントが電話を受け付けたり、電話をかけることができるようになります。

これを有効にするには、agentStateEventOperationを使用します。 パートナ・アプリケーションから次のコードを実行して、エージェントを使用可能にできます:
// Step 1: Get the proper context
const multiChannelAdaptorContext: IMultiChannelAdaptorContext = await uiEventsFrameworkInstance.getMultiChannelAdaptorContext();
const phoneContext: IPhoneContext = await multiChannelAdaptorContext.getCommunicationChannelContext('PHONE') as IPhoneContext;

// Step 2: Create the request object
const requestObject: IMcaAgentStateEventActionRequest = uiEventsFrameworkInstance.requestHelper.createPublishRequest('agentStateEventOperation')  as IMcaAgentStateEventActionRequest;
// Set request object properties
requestObject.setEventId('1');
requestObject.setIsAvailable(true);
requestObject.setIsLoggedIn(true);
requestObject.setState('AVAILABLE');
requestObject.setStateDisplayString('Idle');

// Step 3: Invoke the API
phoneContext.publish(requestObject).then((operationResponse: IMcaAgentStateEventActionResponse) => {
    console.log('AGENT IS READY', operationResponse);
}).catch(() => {
})

このAPIが実行されると、UIで「電話」アイコンが使用可能になります。