Explore comprehensive examples demonstrating various integration patterns and features of the ChatBox SDK
The ChatBox SDK is a lightweight, embeddable chat widget that can be integrated into any website or web application. Choose an example below to see different integration patterns and use cases.
<script>
window.ChatBoxConfig = {
apiKey: 'your-api-key',
theme: { primaryColor: '#007bff' }
};
</script>
<script src="http://localhost:3003/chatbox-sdk.js"></script>
The simplest way to get started with ChatBox SDK. Perfect for quick integration and testing.
Embed the chat widget directly into your page layout instead of a floating popup.
Interactive demo showcasing dynamic theming, real-time customization, and all SDK features.
Complete example with programmatic messaging, API integration, event handling, and statistics.
Complete React integration using custom hooks and proper component lifecycle management.
Learn how to pass user context, metadata, and session data to personalize conversations.
Comprehensive testing environment for SDK development with debugging tools and live monitoring.
We're working on additional examples including:
To run these examples locally, make sure you have:
npm install in the
chatbox-sdk directorynpm run dev
Note: All examples use http://localhost:3003 as
the SDK URL. Make sure the development server is running.
For more detailed information about the ChatBox SDK API, configuration options, and advanced features, check out the documentation: