Syntax
Parameters
The name of the writeable element location. Must be one of the available writeable element names.
Available writeable element locations
chatWelcomeComponent
The chatWelcomeComponent location overlays the main chat area. When content is added to this element:
- A CSS class
has-center-chat-componentis automatically added to the document body. - The class is removed when the element is empty.
- Use this location sparingly as it obscures the main chat interface.
- Use for loading screens, full-screen notifications, or modal-like content.
aiTooltipAfterDescription
This location appears within the AI disclaimer tooltip and has limited space. Keep content minimal and relevant to AI usage disclaimers.
Returns
HTMLDivElement
Returns an
HTMLDivElement reference that can be used to inject custom HTML content.Examples
The following example shows how to add a notification banner below the header:Considerations
Required CSS classes for styling
Layout support
Writeable elements are available for the following layout forms:- Floating (
float) - Custom (
custom) - Fullscreen (
fullscreen-overlay)
Content size and layout
The chat does not impose specific size limits on writeable element content. However, large amounts of content might create undesirable layouts. Consider the following practices:- Use
max-heightwithoverflow: autofor scrollable content. - Test your content across different screen sizes.
- Avoid content that significantly increases the chat height.
- Consider using responsive design techniques.
Timing and initialization
Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.

