How to hide sound and attachment actions from chatbot window?

Hey,

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.

Thanks,
Neha Sheikh

Hi @nehamsheikh,

We will post the implementation steps shortly.

Regards,
Yoga Ramya.

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.
    soundIcon

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

attachment

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

hide

Regards,
Yoga Ramya.

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 ?

Thanks
Sharvari Dongre

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.

Regards,
Yoga Ramya.