How to disable Chat input field on particular message - SDK( XO 11 V3)

Description:
To disable the chat input field in the Web SDK(XO 11 v3) when the list of entities is displayed while talking to the bot or for a particular bot message/template

Please follow the steps below:

STEPS:

  • Listen to the Events using below snippet

  • Now add the following condition as shown below. Please modify the template type according to your use case.

  • Now we can see chat input field got disabled

  • Chat input field will be enabled again once the button is clicked or when a new message is arrived from the bot

  • We can use the same event for any other message related customizations

Content by @venkateswara.velidi