Event properties
Always
'chat:ready'.Example
Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.
'chat:ready'.instance.on('chat:ready', (event, instance) => {
console.log('Chat is ready for interaction');
// Send a welcome message
instance.send('Hello! How can I help you today?');
// Initialize custom header items
instance.updateCustomHeaderItems([
{
id: 'help',
text: 'Help',
type: 'menu-item',
onClick: () => window.open('/help', '_blank')
}
]);
});