Chat Widget
Create Chat Widget
Create an embeddable chat widget for your website
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
UUID of the agent to handle chat conversations.
Display name for the widget (internal use).Default:
Website ChatHex color code for the widget theme.Default:
#6366f1Widget position on the page:
bottom-right or bottom-left.Default: bottom-rightMessage shown when visitor opens the chat.Default:
Hi! How can I help you today?Message shown when no agent is available.Default:
Leave a message and we'll get back to you.Whether to ask for visitor’s name.Default:
trueWhether to ask for visitor’s email.Default:
falseList of domains where the widget can be embedded. Empty means all domains allowed.Example:
["example.com", "www.example.com"]Response
Unique widget identifier.
Public key for embedding the widget.
Ready-to-use HTML embed code.
Embed Code
Add the widget to your website by pasting this code before the closing</body> tag: