Specific chat tab

Parameter used to display the shopper tab or the support tab in the chat.

Implementation



Available parameters

Parameter LibParameter Webdescription
chatChannelschatsThe value that is sent indicates which chat group should be shown only (optional)
Values: support || shoppers

Code

<!DOCTYPE html>
<head>
    <title>LSW v3 Embed</title>
</head>
<body>
    <div id="instaleap-lsw-v3"></div>
</body>

<script src="https://xandar-lsw-v3.instaleap.io/lib/chat.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",                  
        chatChannels: "support" 
    }
    window.instaleap.chat.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/chat?job=myJoB&token=myToken&chats=support
<!DOCTYPE html>
<head>
    <title>LSW v3 Embed</title>
</head>
<body>
    <div id="instaleap-lsw-v3"></div>
</body>

<script src="https://xandar-lsw-v3.instaleap.io/lib/chat.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",                  
        chatChannels: "shoppers" 
    }
    window.instaleap.chat.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/chat?job=myJoB&token=myToken&chats=shoppers

Demo


🤓

NOTE: Please do not modify the Demo, this is a visual aid.


Support

Shopper