I have a question regarding embedded service as below
Background : We have a default chat button associated with embedded service deployment. We also have another chat button with a separate queue. We've added the embedded service component on community and utilized the snippet setting file wit Prechat.js and made some changes to directToButtonRouting.
Now the scenario is like an agent is available with chat button 1(queue) and chat bubble is visible and with directToButtonRouting it is routing it to the other button for which agent is not available then the chat window waits & then shows not agents are available.
I don't want this to happen, rather if this is the case then it should not show the chat bubble itself. So is there a way from which we can query agents availability before initiating chat so we can stop this to happen, or any other solutions are also welcome.
Hello can someone advise me on where to get the code to add a chat bubble to my own website to communicate to Salesforce?