Production-ready embeddable chat widget for your conversational flows
Get your chat widget up and running in minutes
Add this script tag before the closing </body> tag
Configure your chat widget with your API key
<script> const chatbox = new ChatBoxSDK({ apiKey: 'your-api-key-here' }); </script>
Add custom theming and configuration
<script> const chatbox = new ChatBoxSDK({ apiKey: 'your-api-key-here', theme: { primaryColor: '#000000', darkMode: false }, layout: { position: 'bottom-right' } }); </script>
Explore different integration patterns
Complete API reference for all configuration options
| Property | Type | Default | Description |
|---|---|---|---|
apiKey |
required | - | Your API key from DialogKit dashboard |
theme.primaryColor |
optional | #007bff |
Primary color for the chat widget |
theme.darkMode |
optional | false |
Enable dark mode theme |
layout.position |
optional | bottom-right |
Widget position on screen |
layout.width |
optional | 380px |
Widget width |
layout.height |
optional | 600px |
Widget height |
behavior.autoOpen |
optional | false |
Automatically open widget on page load |
ui.title |
optional | Chat Support |
Widget header title |
<script> const chatbox = new ChatBoxSDK({ // Required apiKey: 'your-api-key-here', // Theme customization theme: { primaryColor: '#000000', secondaryColor: '#666666', darkMode: false }, // Layout options layout: { type: 'popup', position: 'bottom-right', width: '380px', height: '600px' }, // Behavior settings behavior: { autoOpen: false, rememberState: true } }); </script>