setAgentStatus

Set status information for the agent.

setAgentStatus(agentStatus, agentStatusInfo) → Promise.<GenericResult>

Returns: GenericResult — Represents a generic result type for a Connector API function.

FieldTypeDescription
agentStatusstringThe agent status, as configured in Salesforce.
agentStatusInfoobjectAdditional information about the agent status.
enqueueNextStatebooleanIndicates whether the state should be enqueued, which updates the agent’s status after a call ends. Defaults to false.