How to hide sound and attachment actions from chatbot window?

(Neha Sheikh) #1


I tried for looking for class/elemnts in chatbot window to hide attachment action and sound action.
How can I do this?

I do not want these actions as of now.

Neha Sheikh

(Yoga Ramya Mendu) #2

Hi @nehamsheikh,

We will post the implementation steps shortly.

Yoga Ramya.

(Yoga Ramya Mendu) #3

Hi @nehamsheikh,

Please find our response below.

1- To hide sound icon,

  • Open the index.html file in SDKApp >> sdk >> UI >> index.html.
  • Set “isTTSEnabled=false” flag in “chatconfig” options.

2- To hide attachement,

  • Go to ChatWindow.css file in SDKApp >> sdk >> UI >>chatWindow.css.
  • Set “display:none” in the class " .kore-chat-window .sdkAttachment .paperclip


If the above steps are implemented appropriately, then you can observe that these two icons are not displayed in the chat window as below:


Yoga Ramya.

How to integrate bot with any type of web application
(Sharvari Dongre) #4

can we hide the attachment and sound actions according to some config parameters as per any requirements to a specific project, when multiple projects are using the same bot if yes how ?

Sharvari Dongre

(Yoga Ramya Mendu) #5

Hi @sharvari4810c,

If javascript allows to set the style parameters conditionally, then you can set it through javascript in the chatWindow.js file. There is no direct provision to achieve this requirement. You could only do this through code.

Yoga Ramya.