setAgentStatus
Set status information for the agent.
setAgentStatus(agentStatus, agentStatusInfo) → Promise.<GenericResult>
Returns: GenericResult — Represents a generic result type for a Connector API function.
| Field | Type | Description |
|---|---|---|
| agentStatus | string | The agent status, as configured in Salesforce. |
| agentStatusInfo | object | Additional information about the agent status. |
| enqueueNextState | boolean | Indicates whether the state should be enqueued, which updates the agent’s status after a call ends. Defaults to false. |