Skip to main content

Step 1: Install the SDK

1

Install the package

2

Embed the widget in your React app

Then embed the component anywhere in your project. A common pattern is to mount it in your main app layout so it appears across your site.
3

Connect widget to agent

The url prop should point to the chat endpoint that powers your agent. We’ll cover how to create a basic agent and expose a streaming endpoint in the next section.

Create a basic agent

Build a minimal Vercel AI SDK agent and expose the endpoint that the widget calls.