From Bright Pattern Documentation
Get Agent State
The Get Agent State block can be used to check an agent's current state. When retrieving an agent's state, the state and Not Ready reason will be stored in the $(agentState) and $(notReadyReason) variables respectively.
Conditional Exits
The Get Agent State block may take one of the following conditional exits: No data or Logged Out.
No Data
The No data conditional exit is taken if no agent state is returned.
Logged Out
The Logged Out condition exit is taken if the specified agent is logged out of the Agent Desktop application.
Settings
Agent's digital ID (extension)
This field allows you to enter in the extension of an agent with the purpose of retrieving their state.