How to change the bot name on chat window

NOTE - This will not change the bot name. It will only show the bot name differently in Web channel which uses Kore’s web-sdk. This will not change the bot name in any other channel. In iOS and Android SDK also, this needs to be handled sepratey.

When using the latest web-sdk master branch
You can change the following:

  1. First introduce a new configuration for overriding the chat window title
    kore-config.js
    >under chatConfig add chatTitleOverride and set it to desired title

var chatConfig={
chatTitleOverride: "New Custom Chat Title",
botOptions:botOptions,
...
...
minimizeMode:false // set true, to show chatwindow in minized mode
};

  1. The use this to override the title:
    chatWindow.js
    > line 1328
    replace

_chatContainer.find('.kore-chat-header .header-title').html(me.config.chatTitle).attr('title', me.config.chatTitle);

with

_chatContainer.find('.kore-chat-header .header-title').html(me.config.chatTitleOverride || me.config.chatTitle).attr('title', me.config.chatTitleOverride || me.config.chatTitle);

If required, re-start server.

Output: