Connect External Chat
When a shopper drops in to a queue in the Calls Widget they are provided with three alternatives for how they want to connect to the call.
You have three choices regarding what happens when shopper has selected I prefer to chat
option:
- Continue the call without video nor audio (default behaviour)
- Completely remove that button (Reach out to your Bambuser Contact person)
- Open a chat service of your choice (Requires implementation)
This guide explains how you handle the third option in order to open your own chat service.
Handle Chat Event
Event name: goto-chat
The goto-chat
event is automatically detected by the Calls Widget if implemented and if the Prefer to chat
option is selected by the shopper, the Calls Widget will automatically close.
trigger
- When the shopper clicks the
Prefer to chat
button after dropping in to a call.
// Inside onBambuserOneToOneReady method!
oneToOneEmbed.on('goto-chat', () => {
// Open the chat solution of choice here
});