Skip to main content
POST
Create a new chat widget that can be embedded on your website. Visitors can chat with your AI agent in real-time through the widget.

Request Body

string
required
UUID of the agent to handle chat conversations.
string
Display name for the widget (internal use).Default: Website Chat
string
Hex color code for the widget theme.Default: #6366f1
string
Widget position on the page: bottom-right or bottom-left.Default: bottom-right
string
Message shown when visitor opens the chat.Default: Hi! How can I help you today?
string
Message shown when no agent is available.Default: Leave a message and we'll get back to you.
boolean
Whether to ask for visitor’s name.Default: true
boolean
Whether to ask for visitor’s email.Default: false
array
List of domains where the widget can be embedded. Empty means all domains allowed.Example: ["example.com", "www.example.com"]

Response

string
Unique widget identifier.
string
Public key for embedding the widget.
string
Ready-to-use HTML embed code.

Embed Code

Add the widget to your website by pasting this code before the closing </body> tag: