API Endpoints

Specific chat tab

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

chatChannelsthe value that is sent indicates which chat group should be shown only (optional)

Values: support || shoppers

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/lsw.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",                  
        chatChannels: "support" 
    }
    window.instaleap.lsw.render(params)
</script>
</html>

you will see the following content:

<!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/lsw.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",                  
        chatChannels: "shoppers" 
    }
    window.instaleap.lsw.render(params)
</script>
</html>

you will see the following content: