Event properties
string
required
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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
'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')
}
]);
});
