# I have problem with st.button and and st.chat\_input while using it both together like chatgpt chatbar and questions that showing above on search bar

**URL:** <https://discuss.streamlit.io/t/i-have-problem-with-st-button-and-and-st-chat-input-while-using-it-both-together-like-chatgpt-chatbar-and-questions-that-showing-above-on-search-bar/64934>\
**Category:** Using Streamlit\
**Tags:** chatgpt, discussion\
**Created:** [March 17, 2024, 4:35pm UTC](https://discuss.streamlit.io/t/i-have-problem-with-st-button-and-and-st-chat-input-while-using-it-both-together-like-chatgpt-chatbar-and-questions-that-showing-above-on-search-bar/64934 "2024-03-17T16:35:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanveer\_Bashir](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/tanveer_bashir/32/30515_2.png) [@Tanveer\_Bashir](https://discuss.streamlit.io/u/Tanveer_Bashir)\
**Post date:** [March 17, 2024, 4:35pm UTC](https://discuss.streamlit.io/t/i-have-problem-with-st-button-and-and-st-chat-input-while-using-it-both-together-like-chatgpt-chatbar-and-questions-that-showing-above-on-search-bar/64934/1 "2024-03-17T16:35:12Z")

</div>

Hi  
i am using my app locally. Can anyone please tell me that i want to built a conversational chatbot like chatgpt where chatgpt has one chat box and four question which is showing on above of chat box and in bottom side of entire page. i using this streamlit code :  
with st.container():  
st.chat\_input(“Say something”)  
st.button(“Please tell your query”)  
st.button(“Would you like to retrive data”) So what i want these two buttons should show along with chat bar The chat bar showing in bottom and buttons are showing at above of page.but i need that the buttons a should show at below So please tell me how i do this. I am begginer in streamlit. So i am looking for expert that answer me about it.

---

<div class="post-metadata">

**Author:** ![dataprofessor](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/dataprofessor/32/44163_2.png) [@dataprofessor](https://discuss.streamlit.io/u/dataprofessor)\
**Post date:** [March 18, 2024, 12:48am UTC](https://discuss.streamlit.io/t/i-have-problem-with-st-button-and-and-st-chat-input-while-using-it-both-together-like-chatgpt-chatbar-and-questions-that-showing-above-on-search-bar/64934/2 "2024-03-18T00:48:43Z")

</div>

Hi @Tanveer_Bashir

You could probably achieve this via CSS customization.

Please see this related thread with example code snippet:

> [@How to add st.button next to st.chat\_input](https://discuss.streamlit.io/t/how-to-add-st-button-next-to-st-chat-input/55563/4):
>
> Hi @w490846804 It does seem that the current implementation of st.chat\_input does not support the insert of prompt text value while st.text\_input does. There’s a discussion about this in the following GitHub issue and there’s actually a hacky solution mentioned, please see if that would work for you:

Also see the FAQ article on visual customization of a Streamlit app:

[https://discuss.streamlit.io/t/faq-how-to-customize-the-style-or-appearance-of-your-streamlit-app/63878/2](https://discuss.streamlit.io/t/faq-how-to-customize-the-style-or-appearance-of-your-streamlit-app/63878/2)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [September 14, 2024, 12:49am UTC](https://discuss.streamlit.io/t/i-have-problem-with-st-button-and-and-st-chat-input-while-using-it-both-together-like-chatgpt-chatbar-and-questions-that-showing-above-on-search-bar/64934/3 "2024-09-14T00:49:15Z")

</div>

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