Skip to content

Widget Customization

OmniBots provides extensive customization options to match the widget appearance and behavior to your brand. Some options are set in the embed code on your website, while others are configured in the Operations Portal.

Init Options (Embed Code)

These options are passed to window.omnibot.init() in your website's embed code. They control the widget's position, behavior, and page context.

html
<link rel="stylesheet" href="https://omnibots-widget.web.app/widget.css">
<script src="https://omnibots-widget.web.app/widget.iife.js"></script>
<script>
  window.omnibot.init({
    deploymentKey: 'your-deployment-key',
    position: 'bottom-right',
    autoOpen: false,
    offset: { x: 20, y: 20 },
    zIndex: 9999,
    metadata: {
      page_label: 'pricing',
      user_id: 'user_123'
    }
  });
</script>
OptionTypeDefaultDescription
deploymentKeystringRequired. The deployment key from Deploying > Publishing
positionstring'bottom-right'Launcher position: 'bottom-right' or 'bottom-left'
autoOpenbooleanfalseOpen the chat window automatically on page load
offsetobject{ x: 20, y: 20 }Pixel offset from screen edge (x = horizontal, y = vertical)
zIndexnumber9999CSS z-index for the widget container
metadataobject{}Page context passed to the bot flow as variables. See Page Context

For the full JavaScript API (open(), close(), sendMessage(), setContext(), events, etc.), see Installation > JavaScript API.

imageOperations Portal theme customization panel showing color pickers for primary color, header, bubbles, and font settings with a live widget preview
Theme customization panel in the Operations Portal

Theme Configuration (Operations Portal)

Visual styling is configured in the Operations Portal under Bot Settings > Widget > Theme. These settings are delivered to the widget automatically from the server — you do not need to set them in the embed code.

Appearance Options

OptionDefaultDescription
Primary Color#6366F1Accent color for buttons, links, and header
Header Text"Chat with us"Title displayed in the widget header
Welcome Message"Hello! How can I help?"First message shown when the widget opens
Bot AvatarPlatform defaultBot avatar image URL
Launcher IconChat bubbleCustom icon for the launcher button
Border Radius16pxCorner rounding for the chat window
Font FamilyinheritFont family (inherits from your site by default)
Font Size14pxBase font size for messages

Message Bubble Styling

OptionDefaultDescription
User Bubble ColorPrimary colorBackground color for user messages
User Text Color#FFFFFFText color for user messages
Bot Bubble Color#FFFFFFBackground color for bot messages
Bot Text Color#1F2937Text color for bot messages
Bubble Border Radius16pxCorner rounding for message bubbles

Widget Size

OptionDefaultDescription
Width380pxChat window width
Height600pxChat window height
Max Height90%Maximum height as a percentage of the viewport

Launcher Button

OptionDefaultDescription
Size60pxLauncher button diameter
Icon Typedefault'default', 'custom', or 'text'
Custom Icon URLImage URL when using custom icon type
Text IconEmoji or character when using text icon type
Border Radius30pxCorner rounding (30px = circle)
ShadowtrueWhether to show a drop shadow

Feature Toggles

OptionDefaultDescription
Enable LaunchertrueWhether to show the floating launcher button
Enable AttachmentstrueWhether to show the file attachment button
Enable EmojifalseWhether to show the emoji picker button
Enable EscalationtrueWhether live agent escalation is allowed
Enable Notification SoundfalseWhether to play a sound on new messages
Enable Popup MenufalseWhether to show the hamburger menu in the header
Show AI DisclaimerfalseWhether to show an AI disclaimer below the input field

Branding

Remove OmniBots branding and replace it with your own under the White Label plan:

Configure in Bot Settings > Widget > Branding:

  • Powered By — Show or hide the "Powered by OmniBots" footer
  • Logo URL — Your company logo
  • Company Name — Displayed in the footer

TIP

White-label branding is available on the Business and Enterprise plans. Contact your account manager to enable it.

CSS Overrides

The widget exposes CSS custom properties that you can override on your page:

css
:root {
  --ob-primary: #7C3AED;
  --ob-widget-bg: #FFFFFF;
  --ob-bot-bubble-text: #1F2937;
  --ob-user-bubble-bg: #7C3AED;
  --ob-user-bubble-text: #FFFFFF;
  --ob-bot-bubble-bg: #FFFFFF;
  --ob-header-bg: #7C3AED;
  --ob-header-text: #FFFFFF;
  --ob-bubble-radius: 16px;
  --ob-font-family: 'Inter', sans-serif;
  --ob-message-area-bg: #F9FAFB;
}

The full list of CSS custom properties uses the --ob- prefix. See the Embedding & JavaScript API page for a complete reference of all theme properties.

TIP

CSS overrides take precedence over the Operations Portal theme settings. Use them when you need pixel-perfect control that the portal options don't cover.

Dark Mode

Enable dark mode in the Operations Portal under Bot Settings > Widget > Theme:

  • Light — Always light theme
  • Dark — Always dark theme
  • Auto — Follow the user's system preference (prefers-color-scheme)
imageSide-by-side comparison of the widget in light mode (white background, dark text) and dark mode (dark background, light text)
Widget light vs dark mode

WARNING

When using Auto mode, the widget respects the prefers-color-scheme media query. Ensure your CSS overrides cover both light and dark values if you use custom properties.

Info Message (Teaser Bubble)

Show a teaser bubble above the launcher button to prompt engagement:

Configure in Bot Settings > Widget > Info Message:

OptionDefaultDescription
EnabledfalseWhether to show the teaser bubble
MessageThe text to display (e.g., "Need help? Chat with us!")
Delay3 secondsHow long to wait before showing
Show Once Per SessiontrueOnly display once per browser session
imageThree launcher button variations: default chat bubble icon, custom logo icon, and text emoji icon, each with a teaser bubble message above
Launcher button styles and teaser bubble

OmniBots AI Bot Platform