The type/category of an agent status reason code.
Used as the type field on a ReasonCode to indicate the agent's availability state. Pass a reason with the matching type to User.changeStatus.
type
const reasons = await user.getAssignableReasonCodes();const available = reasons.find(r => r.type === ReasonType.AVAILABLE);if (available) { await user.changeStatus(available);} Copy
const reasons = await user.getAssignableReasonCodes();const available = reasons.find(r => r.type === ReasonType.AVAILABLE);if (available) { await user.changeStatus(available);}
Agent is available and ready to receive interactions.
Agent is busy and cannot receive new interactions.
Agent is away from their workstation.
Agent is offline and not available.
Reason used for logging out from queues.
The type/category of an agent status reason code.
Used as the
typefield on a ReasonCode to indicate the agent's availability state. Pass a reason with the matching type to User.changeStatus.Example