I have a similar need. I wanted an openai chat or Whatsapp style UI. Iโll be inserting dataframes into the conversation but not buttons. Seems programmatically similar to me. My buttons are on the sidebar. The example demonstrates how to programmatically append user input prompts into the conversation. ChatGPT Style Example SOTA.