Conversation core
Agent chat
Use when the agent lives in a side panel next to the product and people ask it questions while they work.
Chat panel with reasoning chips and a composer.
Part of Conversation core. The first thing you build: a place to ask and a place to read the answer. Every AI product ships these surfaces, so users compare yours with the best they have used. The work here is in the details: what the composer does mid-answer, how a reply arrives, what you can do with it afterwards.
Do
- Show a one-line reasoning chip above each reply: what the agent checked and how long it took.
- Scroll to the newest message when one is sent or arrives.
- Block a second send while the agent is still working on the first.
Don't
- Don't make the panel the only way to reach the agent's work. Results should also land in the product.
- Don't expand the full reasoning inside a narrow panel. A chip is enough here.
- Don't open on an empty thread. Seed it with something the agent already knows.
States
- Seeded: The panel opens with one question and one answer, the answer under a reasoning chip.
- Composing: Text in the input. Enter or the send button submits it.
- Thinking: The user's message joins the thread and a "Thinking" indicator shows under it. Sending is blocked.
- Replying: A reasoning chip appears and the reply streams in beneath it. The thread scrolls to keep it in view.
Usage
import { AgentChatPattern } from "./halaska-kit";
<AgentChatPattern />
Built from
Stack, Streaming Text, Tabs, Thinking Indicator
Related patterns
Halaska UI · Components · Patterns · Screens · Install