From Bright Pattern Documentation
Variable $(user.loginId) does not get the agent’s username in scenarios. We are currently calling it after the Connect Call block in order to build the path for the call recordings. How is this fixed?
In your scenario, the variable needs to be set between the Find Agent block and the Connect Call block. In order to get the agent’s name, the variable has to be set after the agent is found. If you do not initiate the variable after the Find Agent block and before the Connect Call block, you will not know who the agent is.