Developers
Control it from your UI
Your own keys in every sample. Sign in and the code on this page uses your web agent's publishable key.
Sign inPut the agent behind your own Help button, or next to the thing a visitor is looking at. Calls made before the messenger has loaded wait for it.
// Your own button instead of the bar or the bubble.
BindKit.messenger({ publishableKey: 'pk_...', launcher: false })
document.querySelector('#help').addEventListener('click', () => BindKit.toggle())
// Or inside your page, as on a help page: it fills the element and stays open.
BindKit.messenger({ publishableKey: 'pk_...', element: '#chat' })
// An "Ask about this" button: opens a new conversation with the question.
BindKit.ask('Why did this invoice fail?')
// In a single-page app, what a new conversation offers on the page the visitor moved to.
BindKit.configure({ suggestions: ['How do I export this report?'] })
const stop = BindKit.on(BindKit.Event.OPEN, () => analytics.track('Help opened'))