building-streamlit-chat-ui

Build Streamlit chat interfaces with st.chat_message and st.chat_input.

224|23|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/streamlit/agent-skills --skill building-streamlit-chat-ui-streamlit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-streamlit-chat-ui
Source: https://github.com/streamlit/agent-skills/tree/main/developing-with-streamlit/skills/building-streamlit-chat-ui
Command: npx skills add https://github.com/streamlit/agent-skills --skill building-streamlit-chat-ui-streamlit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables developers to rapidly implement and customize Streamlit chat interfaces, including message history, streaming responses, avatars, and quick-user prompts, reducing boilerplate and setup time.

Core Features & Use Cases

  • Chat UI primitives: use st.chat_message and st.chat_input to build conversational interfaces with minimal boilerplate.
  • Streaming responses: update the assistant message in real time as tokens arrive.
  • UI niceties: avatars, suggestion chips, and file uploads to enhance user experience.
  • Use Case: Deploy a customer support chatbot or internal AI assistant within a Streamlit app.

Quick Start

Create a Streamlit app that displays a chat interface using st.chat_message and st.chat_input, handles user prompts, and streams assistant replies.

Frequently Asked Questions about building-streamlit-chat-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a chat interface in Streamlit with message history?

To build a Streamlit chat interface, use st.chat_message to render conversation history and st.chat_input to capture user prompts, creating an interactive conversational UI with minimal boilerplate.

How do I display streaming responses in a Streamlit chat UI?

Streamlit chat interfaces support streaming responses by updating the assistant message in real time as tokens arrive, leveraging streaming write streams to render interactive conversations dynamically.

Can I add avatars and suggestion chips to a Streamlit conversational UI?

Yes, Streamlit conversational UIs support UI niceties including avatars, suggestion chips, and file uploads to enhance the user experience within your chat application.

What is the best way to create a customer support chatbot using Streamlit?

The best way to create a customer support chatbot in Streamlit is applying st.chat_message and st.chat_input primitives to handle user prompts and stream assistant replies for an internal AI assistant.

Do I need external UI components to handle file attachments in Streamlit chat?

No external UI components are required, as Streamlit chat interfaces natively support file uploads and attachments alongside avatars and suggestion chips to enhance conversational user experiences.