Is it possible to trigger a chat invitation based on user action, for example if there are products in the shopping cart?
To display a custom message you will need to call the following command. There are 3 params needed in the call. The first is the message you would like to send, the second is the delay before showing and the third is if it should play a sound.
lhnJsSdk.showInvite("invitation message", 3, true);