Links for this example
About this example
This example, from Erez P., demonstrates six usage techniques all of which are labeled in the code.
Example 1: Show or Hide the Chatbox when anchor (hidden page location marker) leaves or enters the viewing area of the page Example 2: Maximize chat box when user clicks on a button. Example 3: Show message received in header when message received from admin. Example 4: Show thank you message in header when message sent. Example 5: If an existing product is referenced in the message, navigate to it and display. Use #Tea to initiate the lookup (e.g. #Tea Chamomile as the message). Example 6: Send a message from a footer text input field.
Note: Chatbox events (e.g. onMessageReceived, onMessageSent) are not triggered in Preview.