Conversy by Bookboost
Setup
All you have to do is include this single line of code on your site, replacing the {your-website-id} with your website id. All other configuration is done via the Bookboost application.
<script src="http://app.bookboost.io/{your-website-id}/conversation.js"></script>The Conversy API
We provide the following api to help you integrate the web messenger with your websites existing functionality.
Open the conversation
conversy('open');Close the conversation
conversy('close');Subscribing to events
conversy('on', 'EVENT_NAME', handlerFn);The following events are available:
| Event Name | Handler Arguments | Triggered when |
|---|---|---|
| PM_FIRED | messageId | An "interact" message was presented to the user. |
| PM_CLICKED | messageId | An "interact" message was clicked by the user. |
| PM_COUPON_CLICKED | messageId | An "interact" message coupon was redeemed by the user. |
| CONVERSATION_OPENED | None | The conversation was opened. Either by the user clicking the bubble or a call to conversy('open'). |
| CONVERSATION_CLOSED | None | The conversation was closed. Either by the user clicking the bubble or a call to conversy('close'). |
Unsubscribing to events
conversy('off', 'EVENT_NAME', handlerFn);