react-chatbot-kit icon indicating copy to clipboard operation
react-chatbot-kit copied to clipboard

How to remove widget once we clicked on any of the value from widget?

Open VeenaMalali13 opened this issue 3 years ago • 1 comments

I have widget displaying main menu at the start of conversation(e.g. Live demo, Request for trial version, Sales team etc). When I click any of these, it should appear as user input message and that widget should disappear. So that user can not click any of those again in between the flow of conversation. Is it possible?

VeenaMalali13 avatar May 28 '21 10:05 VeenaMalali13

I have widget displaying main menu at the start of conversation(e.g. Live demo, Request for trial version, Sales team etc). When I click any of these, it should appear as user input message and that widget should disappear. So that user can not click any of those again in between the flow of conversation. Is it possible?

As demonstrated in the other issue, you may change the structure of the message in the internal array and remove the widget from the message object.

FredrikOseberg avatar Jun 16 '21 08:06 FredrikOseberg