I have created the bot already with some name. How can change it now?
Hi @mathi.lavanya ,
Please refer to the steps mentioned in the below knowledge content document to change the Bot Name.
After you create a bot using Bot Builder, you may need to change or define advanced and optional settings, for example, to update or add a bot icon, or description.
Thank you,
Srujan Madderla
Kore.ai Community Team
Hi Srujan
From that documentation I found that we cannot change bot name once it’s published. Is there any other way to change the name.
Thanks
Hi @mathi.lavanya ,
From UI as it is mentioned in the document, it will not be possible to change the bot name once the bot is published.
Please follow the below steps in the webSDK to change the bot name on the chat window, this might be helpful for you.
In webSDK >> chatWindow.js >> at line number 1169, you need to assign the bot name manually to the variable “tempTitle”. Ideally, tempTitle is assigned with the bot name form the botInfo.
var me = this;
me.initi18n();
me.seti18n((me.config && me.config.i18n && me.config.i18n.defaultLanguage) || 'en');
if(me.config && me.config.sendFailedMessage && me.config.sendFailedMessage.hasOwnProperty('MAX_RETRIES')){
sendFailedMessage.MAX_RETRIES=me.config.sendFailedMessage.MAX_RETRIES
}
window.chatContainerConfig = me;
me.config.botOptions.botInfo.name = this.escapeHTML(me.config.botOptions.botInfo.name);
me._botInfo = me.config.botOptions.botInfo;
me.config.botOptions.botInfo = { chatBot: me._botInfo.name, taskBotId: me._botInfo._id, customData: me._botInfo.customData, metaTags: me._botInfo.metaTags, tenanturl: me._botInfo.tenanturl };
var tempTitle = me._botInfo.name;
me.config.chatTitle = me.config.botMessages.connecting;
if(me.config.multiPageApp && me.config.multiPageApp.enable){
var cwState=me.getLocalStoreItem('kr-cw-state');
var maintainContext=cwState?true:false;
if(maintainContext && me.getLocalStoreItem('kr-cw-uid')){
me.config.botOptions.userIdentity=userIdentity =me.getLocalStoreItem('kr-cw-uid');
}
me.config.botOptions.maintainContext = maintainContext;
}
me.config.userAgentIE = navigator.userAgent.indexOf('Trident/') !== -1;
var tempTitle = me._botInfo.name;
However, we can assign it manually at this line.
Replace “me._botInfo.name” with the bot name that you want to display on the chat window.
Example:
var tempTitle = “supportBot”;
Thank you,
Srujan Madderla
Kore.ai Community Team
Hi @mathi.lavanya & @srujan.madderla i have gone through and last conclusion is that we cannot change bot name after Published/Named.