Verba LogoDocs

Quick Start

This guide walks you through adding the Verba AI chat widget to your website using the official SDK.

1. Installation

Install the package from npm to use it inside your application.

bash
npm install @verba-ai/chat-sdk

2. Initialize the widget

To render the default floating widget, import VerbaChat and pass your tagId.

javascript
import { VerbaChat } from '@verba-ai/chat-sdk'

// 1. Create a new instance
const chat = new VerbaChat({
    tagId: 'YOUR_TAG_ID',
    theme: 'light',
})

// 2. Inject it into the DOM
chat.init()

3. Verify it works

Once init() is called, the widget is injected into the bottom-right corner of the viewport. Click the bubble button to open the chat interface.

Next steps