Examples
Customer Support Bot
Quick replies, typing indicators, escalation flows. Build production support experiences with AgentsKit's headless components.
Quick replies, typing indicators, escalation flows. Build production support experiences with AgentsKit's headless components.
Hi β I can take a reservation, look up an order, or hand you to a human. What do you need?
#With AgentsKit
import { useChat, ChatContainer, Message, InputBar, ThinkingIndicator } from '@agentskit/react'
function SupportChat() {
const chat = useChat({
adapter: myAdapter,
initialMessages: [{ id: '1', role: 'assistant', content: 'How can I help?', status: 'complete', createdAt: new Date() }],
})
return (
<ChatContainer>
{chat.messages.map(msg => <Message key={msg.id} message={msg} />)}
<ThinkingIndicator visible={chat.status === 'streaming'} label="Typing..." />
<InputBar chat={chat} />
</ChatContainer>
)
}Explore nearby
- PeerExamples
Interactive demos. For copy-paste code, see Recipes.
- PeerBasic Chat
The simplest use case β streaming AI conversation with auto-scroll, stop button, and keyboard handling. All in 10 lines with AgentsKit.
- PeerTool Use
AI assistants that call functions β weather, search, DB queries. Tool calls render as expandable cards.