[](https://www.npmjs.com/package/@kapaai/react-sdk) [](https://opensource.org/licenses/MIT)
npm install @kapaai/react-sdk

> Build AI-powered chat interfaces that answer questions from your knowledge base.
kapa.ai is a platform that turns your documentation, knowledge base, and support content into an AI assistant. It enables your users to get instant, accurate answers drawn directly from your own content.
This React SDK allows you to easily integrate Kapa-powered chat functionality into your React applications. Add a few components to your app and give your users the ability to chat with an AI that knows your product.
- 📚 Official Documentation
- 💻 Demo Repository
``bash`
npm install @kapaai/react-sdk
`jsx
import { KapaProvider, useChat } from "@kapaai/react-sdk";
// Wrap your app with the provider
function App() {
return (
);
}
// Use the hook in your components
function YourChatInterface() {
const { conversation, submitQuery, isGeneratingAnswer } = useChat();
// Build your chat UI...
}
``
For detailed usage instructions and API reference, see the official documentation.