You need to sign in to do that
Don't have an account?
How to initialize Embedded Service Web Chat with a separate clickable button on web page?
I have an interesting use case. We are using Salesforce's Embedded Chat service, but it needs to also be able to open by the click of a button located somewhere on the page.
This means it opens in two ways:
1. The standard way (clicking the embedded chat in the bottom right of the screen)
2. A separate button on the page that should open that same embedded chat
I already know that using Chat Buttons and Embedded Chat on the same page is not compatible with Salesforce. However, is it possible to lauch the Embedded Chat with a button click? Essentially, we just need two ways to launch the embedded chat: button click on page, and standard way
Otherwise; it is just a click for the element read by a querySelector like below (simple if you don't test the correct message, "Agent Offline" will do nothing and not tested here)
<span class="message">Agent Online</span>
This code is register for the event "message" ( you open a chat window (minimized js) and not really usefull but there is embedded_svc.isMessageFromSalesforceDomain(c) ).
All Answers
Otherwise; it is just a click for the element read by a querySelector like below (simple if you don't test the correct message, "Agent Offline" will do nothing and not tested here)
<span class="message">Agent Online</span>
This code is register for the event "message" ( you open a chat window (minimized js) and not really usefull but there is embedded_svc.isMessageFromSalesforceDomain(c) ).
Hi - I would like to invoke the chatbot with a text link rather than a buton
Also - is it possible to show an alernate massage when chatbot is out of ours/off?
Thanks
can the following scenario possible with LWC or Aura
A separate button on the page that should open that same embedded chat