Fired when the agent's status changes (e.g. Available → Busy). Not fired for CX login/logout - see USER_CX_LOGGED_IN and USER_CX_LOGGED_OUT. Payload: UserStatusChangedPayload
Fired when the agent logs into the CX platform. Payload: UserCxLoggedInPayload
Fired when the agent logs out from the CX platform. Payload: UserCxLoggedOutPayload
Fired when audio devices are added or removed (e.g. headset plugged in or unplugged). Payload: DeviceChangeEventPayload
Fired when a device refresh confirms that a required audio-device kind is unavailable. Payload: NoAudioDeviceAvailablePayload
Fired when the agent grants microphone permission in the browser. Payload: AudioDevicePermissionGrantedPayload
Fired when microphone permission is denied or revoked by the browser. Payload: AudioDevicePermissionDeniedPayload
Fired when an inbound interaction is routed to the agent. Payload: InteractionReceivedPayload
Fired when an interaction is created for the agent - either by initiating an outbound call (User.createOutboundVoiceInteraction) or by starting to view an interaction (User.viewInteraction). Payload: InteractionCreatedPayload
Fired when User.viewInteraction successfully starts a monitoring session — the Interaction object is now usable as a viewer. Payload: InteractionViewingStartedPayload
Fired when the agent is logged out from the platform. Payload: UserLogoutPayload
Fired when the SDK attempted to auto-accept an incoming interaction but
the underlying accept call failed before the interaction could connect.
Interaction.canAccept returns true again so the agent can
accept manually.
Payload: InteractionAutoAcceptFailedPayload
The set of events that the User object can emit.
Use these with User.subscribe to listen for things that happen to the agent, such as a status change, an incoming interaction, a queue assignment update, or an audio device change.
Example
Example