1
votes

How can I disable the input field of Watson assistant after giving closing statement?

Ex: If the bot shows thank you for using our services, then the Input field should be grayed out and should not let user to type, user has to restart the bot to chat.

2
Do you mean in the web chat, in any other integration or where? What is with follow-up questions?data_henrik
In any integration, if the bot displays closing statement, then it should disable the input field. But primarily, I want to know in web chat integration.Bharath

2 Answers

1
votes

There is a method in watson :instance.updateAssistantInputFieldVisibility(false) it disables the input field, so you can customize the way you want to use.

0
votes

I see the following options for you to "disable" the chat in Watson Assistant.

  • You could respond with a pause.
  • Set an internal variable that from your point of view the dialog is done and should not be resumed again. React to any input by not answering.
  • Consider a special version of anything_else.
  • Build your own interface that can disable the input.

IMHO disabling input should not be done, it is against best practices. You want the user to interact. Reloading the web page with the chat typically reenables input anyway. So what is the use case...?