Hi Everyone,
How can I determine if an agent in Queue1 is available to handle the current messaging interaction before transferring it to Queue1? I've used /api/v2/routing/queues/${input.Queue_Id}/members?expand=presence&routingStatus=idle to identify idle agents. However, this approach doesn't meet our requirements since an agent can handle two messaging interactions concurrently. Once an agent is engaged in the first interaction, they are no longer in an IDLE state. I would greatly appreciate any suggestions or ideas on how to check if any agent is available to take on this interaction
The reason I want to determine agent availability is to provide a better customer experience. If an agent is available, we would inform the customer that an agent is available and will respond to the chat shortly. Otherwise, we would send a hold or wait message to the customer
Thanks,