How to make suggestions clickable as input to chat_input?

I am using the chat_input and chat_message functionality to create a chatbot. I have some suggestions in the sidebar as markdown. I was wondering, how I could make the suggestions clickable, so that they would populate the chat_input on click, and it wouldn’t look weird having each text wrapped as a button or something.


Hi @Tomaz_Bratanic

For each of the suggestion, you may assign it to the widget if you want only 1 to be selected or to st.checkbox in order to allow multiple selections. You could also look into using the component streamlit-pills as well.

Links to these as follows:

Hope this is helpful!