Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons as an input format for the chatbot widget #2250

Closed
abaraldo opened this issue Jan 31, 2024 · 5 comments · Fixed by #2265
Closed

Buttons as an input format for the chatbot widget #2250

abaraldo opened this issue Jan 31, 2024 · 5 comments · Fixed by #2265
Assignees
Labels
feature Feature request ui Related to UI

Comments

@abaraldo
Copy link

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

  • Allow users to define the structure of the form and the labels on the buttons.
  • Whenever the form is display as input option, the regular text input would de disabled

Potential Benefits

  • Enhances user engagement with a more interactive interface.
  • Simplifies user interaction, especially for complex queries or multiple-choice questions.
  • Makes the chatbot more accessible, particularly for users who prefer a guided interaction.
@abaraldo abaraldo added the feature Feature request label Jan 31, 2024
@mturoci mturoci added the ui Related to UI label Jan 31, 2024
@mturoci
Copy link
Collaborator

mturoci commented Feb 8, 2024

@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
Copy link
Author

abaraldo commented Feb 8, 2024

@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
Copy link
Collaborator

mturoci commented Feb 9, 2024

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

Yes, it's going to be a list.

@marek-mihok
Copy link
Contributor

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?

marek-mihok added a commit that referenced this issue Feb 12, 2024
@mturoci
Copy link
Collaborator

mturoci commented Feb 12, 2024

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.

marek-mihok added a commit that referenced this issue Feb 12, 2024
marek-mihok added a commit that referenced this issue Feb 12, 2024
marek-mihok added a commit that referenced this issue Feb 12, 2024
marek-mihok added a commit that referenced this issue Feb 12, 2024
marek-mihok added a commit that referenced this issue Feb 13, 2024
marek-mihok added a commit that referenced this issue Feb 13, 2024
marek-mihok added a commit that referenced this issue Feb 14, 2024
marek-mihok added a commit that referenced this issue Feb 14, 2024
marek-mihok added a commit that referenced this issue Feb 14, 2024
marek-mihok added a commit that referenced this issue Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request ui Related to UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants