Install the plugin
Add the Element "Product Fruits" to your page.
On the plugin tab put in your Product Fruit workspace id
(find this in you Product Fruits Editor)
Within you page workflows implement the Plugin events
"launch custom chat" - ie implement whatever workflow you have to start your custom chat
Within your worklfow implement whatever makes sense when your custom chat is closed.
eg in "popup is closed"
View in the Editor here
https://bubble.io/page?name=index&id=product-fruits-plugin&test_plugin=1689763971082x624985764423270400_current&tab=tabs-2Purchase of the plugin comes with reasonable support to get you up and running.
Contact me in the forum @lindsay_knowcode