1. Open the webChat.js file.
2. Find notifyNewMessage and change function's body from following:
        'use strict';
        var date = new Date(body.timestamp);
        var senderType = body.senderType.toLowerCase();
        var dateMessage = body.displayName + ' (' + date.toLocaleTimeString() + ')';

        if (senderType === "customer") {
            // this is likely to be caused by customer refreshing page
            webChat.writeResponse(dateMessage, chatConfig.writeResponseClassDate);
            webChat.writeResponse(body.message, chatConfig.writeResponseClassSent);
        } else {
            webChat.writeResponse(dateMessage, chatConfig.writeResponseClassAgentDate);
            var chatMessageClass = (senderType === "bot" ? chatConfig.writeResponseClassChatbot : chatConfig.writeResponseClassResponse);
            if (body.type === "widget") {
                webChat.writeResponse(body.data.text, chatMessageClass);
                webChat.createWidgets(body.data);
            }
            else {
                webChat.writeResponse(body.message, chatMessageClass);
            }
        }

    to following:

            'use strict';
            var date = new Date(body.timestamp);
            var senderType = body.senderType.toLowerCase();
            var dateMessage = body.displayName + ' (' + date.toLocaleTimeString() + ')';

            if (senderType === "customer") {
                // this is likely to be caused by customer refreshing page
                webChat.writeResponse(dateMessage, chatConfig.writeResponseClassDate);
                webChat.writeResponse(body.message, chatConfig.writeResponseClassSent);
            } else {
                webChat.writeResponse(dateMessage, chatConfig.writeResponseClassAgentDate);
                var isBot = senderType === "bot";
                var chatMessageClass = (isBot ? chatConfig.writeResponseClassChatbot : chatConfig.writeResponseClassResponse);
                if ((body.type !== "widget")) {
                    webChat.writeResponse(body.message, chatMessageClass);
                } else {
                    webChat.createWidgets(body);
                }
            }
3. Replace the createWidgets function with that from the SDK.
4. Open the webChatConfig.js file and insert the following line inside the chatConfig object:
    unknownWidgetText: "That widget type is not available",

