EMBED
type Environment.
Navigate to Environments -> [Your Embed Environment] -> Settings in Chatmode to configure:
initBubble
OptionsChatmode.initBubble
function, used in the standard Bubble Code snippet copied from the Chatmode UI, accepts a few client-side options to control the theme and custom icon:
environmentId
(Required): Your specific Environment ID, obtained from the snippet copied in the Chatmode UI.theme
(Optional): Controls the color scheme (light
, dark
, or automatic
based on user’s system preference). Defaults to automatic
.iconKey
(Optional): The identifier for your custom icon uploaded in the Environment settings. This is usually pre-filled in the copied snippet if you uploaded an icon.updatedAt
(Optional): A timestamp used to prevent incorrect browser caching of the icon image. This is usually pre-filled along with iconKey
.environmentId
and potentially pre-filled iconKey
and updatedAt
.
<iframe>
tag directly) rather than the standard floating bubble.
<iframe>
code snippet (copied from the Environment settings as an alternative to the Bubble Code), apply standard CSS to the <iframe>
tag itself to control its width
, height
, border
, margin
, position
, etc., to integrate it seamlessly into your page layout.
!important
, manually overriding the styles of the floating bubble (#chatmode-bubble-button
) or its modal window (.chatmode-modal-container
, etc.) is not recommended or supported. These internal structures may change without notice, breaking your custom styles.
Stick to the customization options provided in the Environment settings (Display Name, Picture, Icon, Color, Initial Message) and the theme
option in the initBubble
script for the standard floating bubble.