Quickstart – Creating a launcher for the Web Widget
This is a continuing discussion about the article Quickstart – Creating a launcher for the Web Widget in the developer documentation.
-
@... thank you, this helped a lot however am noticing some unintended behaviour.
We've followed these instructions and got our Custom launcher working as expected but we have one issue where proactive notifications or agents initiating chats on their end aren't allowing the widget to open itself.
If we don't use the custom launcher, the widget will automatically open on the user's screen without requiring the user to open the widget manually. However with our custom launcher, built exactly as above, the user has to manually open the widget to see any notifications or proactive messages. Are we missing something? -
Thank you so much for this article! We had a hard time customizing the launcher and failed, but this really helped!
-
Hi Wesley. I'll let Darren offer input as well, but this is definitely a tutorial — specific needs may vary. This is just to demonstrate some of the basic features that are available.
That said, you can add code that considers different events. For example, this code is triggered when a chat message comes in:
zE('webWidget:on', 'chat:unreadMessages', (number) => {
console.log(`You have ${number} unread messages`);
})You could use the above and then call:
zE('webWidget:on', 'open', function() {
console.log('The widget has been opened!')
})Your needs may of course be different. The above are just ideas. Hope they help!
-
Just wanted to share if we want to a Custom Button to as a toggle button we can just do it by attaching onClose and onOpen to zE and just use the toggle command from the button.
Global Scriptwindow.zE('webWidget', 'hide');
window.zE('webWidget:on', 'close', function () {
window.zE('webWidget', 'hide');
});
window.zE('webWidget:on', 'open', function () {
window.zE('webWidget', 'show');
});Button OnClick
window.zE('webWidget', 'toggle');
-
Hi!
can someone tell me how can I make coexist chat and form contact in the same web widget at the same time and allow the customer choose what to do? (or chat or contact form)
Maybe with two different custom launchers? or a link and custom launcher? Any advice will be welcome!
Thanks.
Maria
-
Hello,
Are these docs outdated? None of the customizations are working for me after following the examples.
Thanks,
Aaron
-
Hi Aaron,
The quickstart guide is up to date and the corresponding customizations should be working. Just to confirm, is this the documentation you're using?
Best,
Erica
Iniciar sesión para dejar un comentario.
7 Comentarios