Methods
Coming Soon
This documentation is currently being written. Check back soon!
Overview
Complete reference for all ChatBox SDK methods.
Core Methods
open()
Opens the chat widget.
close()
Closes the chat widget.
toggle()
Toggles widget visibility.
setContext(context)
Updates context variables.
getContext()
Returns current context.
destroy()
Removes the widget completely.
Quick Example
const chatbox = new ChatBoxSDK({
apiKey: 'YOUR_API_KEY'
});
chatbox.open();
chatbox.setContext({ userId: '12345' });