Chatoshi SDK Examples

Interactive examples showing different ways to implement the Chatoshi SDK in your applications.

SDK Status: Loading...

Choose an Example

Live Demo

This example shows how to embed the chat widget directly into a container on your page.

Event Logs

No events logged yet...

Code Example

// Default Container Mode
<script src="/chatoshi-sdk.js"></script>
<script>
const chat = new Chatoshi({
partnerKey: 'demo-partner-key',
container: '#chat-container',
mode: 'default',
theme: 'light'
});
chat.on('app:ready', () => {
console.log('Chat widget is ready!');
});
chat.on('message:sent', (data) => {
console.log('Message sent:', data);
});
</script>