Skip to main content

Chat SDK

The Kapa Chat SDK (@kapaai/react-sdk) puts Kapa's managed chat agent behind a UI you build yourself. It is the same agent that powers the Website Widget, grounded answers with citations from your knowledge base, but instead of Kapa's interface, you build your own in React, with full control over your application's look and feel. The SDK runs fully client-side with built-in CAPTCHA bot protection, the same mechanism that protects the Website Widget, so you can ship a browser chat experience without standing up a backend or exposing your API key.

Because the agent is Kapa-operated, everything that shapes the other Prebuilt Agents applies here too: Customizations tune its behavior and tone, and conversations appear in Analytics like every other deployment.

Looking to build an in-product agent?

If you need an AI agent with custom tools, human-in-the-loop approval, and a multi-turn agent loop, see the Agent SDK instead.

Get started

For a full, working example, see the Kapa React SDK Demo repository on GitHub.

Attribution requirement

When using the Chat SDK, you must include "powered by kapa.ai" text in your chat interface unless contractually agreed otherwise with Kapa. You can style the attribution to match your design, but it must remain visible and legible to users. Contact the Kapa team if you have specific attribution requirements.

Go deeper