agentskit.js
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.

A
AcmeCo Support
Typically replies in < 1 min
Online

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>
  )
}
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page