How to create a History Messages of User (Sidebar)

The question is based on the title, which Widgets can I use for show an History Messages of the user on the Sidebar?

I was thinking to make a customized buttons inside a container with each of them with the name of the topic of the conversation, but also I don’t want to change all buttons of the app, just specific buttons that are inside of the container.

Hey @Angel,

You could use session state to save the message history, st.write to write the messages to the UI, and you could use st.button or something like the streamlit-option-menu component to navigate between different conversations.

Yeah, it works for my problem.

Ty so much :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.