h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

Buttons as an input format for the chatbot widget #2250

Closed abaraldo closed 4 months ago

abaraldo commented 5 months ago

Buttons as an input format for the chatbot widget

I propose adding a feature that allows users to customize the output of the ui.chatbot widget into a form with interactive buttons. This would enhance the user experience by providing a more interactive and accessible way to navigate the chatbot's responses.

image

Problem it Solves

Currently, the chatbot widget allows a feedback interaction, but this new feature would be a generalization by having a customizable form with any buttons and options. Sometimes, I would like the input from the user to be a closed answer within limited possibilities.

Suggested Implementation

Potential Benefits

mturoci commented 4 months ago

@abaraldo would you be ok if we added a new list of ui.chat_prompt_suggestion in which each would accept a string value (displayed under the last response) and upon clicking would fire an event for you to consume, append to the chat messages and start generating the answer?

abaraldo commented 4 months ago

@abaraldo would you be ok if we added a new list of ui.chat_prompt_suggestion in which each would accept a string value (displayed under the last response) and upon clicking would fire an event for you to consume, append to the chat messages and start generating the answer?

I think that would be great! I could use that to bring suggestions or options for the user. Will it be possible to have multiple options at the same time?

mturoci commented 4 months ago

Will it be possible to have multiple options at the same time

Yes, it's going to be a list.

marek-mihok commented 4 months ago

and upon clicking would fire an event for you to consume, append to the chat messages and start generating the answer

@mturoci just an implementation detail - should appending to messages be done by user after obtaining the event or should it be done automatically with firing the event?

mturoci commented 4 months ago

should appending to messages be done by user after obtaining the event or should it be done automatically with firing the event?

Manually by the user.