langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
42.81k stars 5.93k forks source link

User Input - Display Buttons / Textfields within chat #5694

Open digitaldesaster opened 1 month ago

digitaldesaster commented 1 month ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

please consider adding a block that supports buttons and text fields for the user to click / fill in. similar to the start of the flow this should be supported during the chat flow. its just way simpler and faster then make unecessary llm calls. not sure if this could be achieved if we would be able to add buttons / fields into the jinja templates and register ids to react if a button is clicked. if someone could point me to the part of the code i would like to take a look into it. i am good at python but unfortunately not good at react / js. but i would even consider hiring someone on fivver to implement this. my point is, that i think we will have a much better, cleaner and faster user experience for usecases where the user needs to make a choice or needs to put in some data.

2. Additional context or comments

I am aware that someone has asked for user input and i understand that follow up questions are an option. anyway i think that we are overcomplicating things here and buttons just work better / faster. https://github.com/langgenius/dify/discussions/5021

3. Can you help us with this feature?

jeanffee commented 1 month ago

I need same ability, that be able to get user input during the chat flow, without have to start from beginning as a new round of conversation

crazywoola commented 1 month ago

Duplicated https://github.com/langgenius/dify/issues/4947