function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dzianis PuchkoDzianis Puchko 

How to get livechat agent working hours

Hello,

is it somehow possible to retrieve the live chat agent working hours using livechat API?So that if there are no agents available i can get the time range when they will be available!

Best Answer chosen by Dzianis Puchko
SwethaSwetha (Salesforce Developers) 
HI Dzianis,
Unfortunately, we don't have a concept of working hours for Live Chat. Please provide the business impact of this functionality so that I can reach out to Salesforce product development team regarding this functionality?

You can only get availability - true or false. This could be false because nobody is online/available, or because everybody is busy.

Note: We also have an idea on Salesforce idea Exchange for the same. Please consider upvoting this so that our product team can consider implementing this functionality in upcoming releases based on number of votes.
https://success.salesforce.com/ideaView?id=08730000000Dk59AAC

 
Workarounds are to implement the logic on the website side, and only check for availability within certain hours: https://salesforce.stackexchange.com/questions/54381/configure-live-agent-business-hours
 
Hope this helps you. Please mark this answer as best so that others facing
the same issue will find this information useful.

 
Thank you
Salesforce Support