1. Product
AI Agent Customer Support Docs
  • Default module
    • Product
      • Changelog
      • Agent Widget JavaScript SDK
      • Chat Widget Custom CSS Classes
    • AI Agents
      • Create AI Agent
      • Edit AI Agent
      • Delete Agent
    • Leads
      • Lead Settings
      • Lead Report
    • AI Agent Installation & Integration
      • Overview
      • Custom Website
      • WordPress
      • Link WhatsApp with AI Agent
      • Setup New WhatsApp Account
      • Google Tag Manager
      • Shopify
      • Squarespace
      • Wix
      • Webflow
      • Bubble
      • PrestaShop
      • GoDaddy
      • Function Tool Call
    • Billing & Pricing
    • Partner
      • Partner Management
    • Roadmap
      • Upcoming Features
    • Intelligence Settings
      • Intelligence Settings
    • Advance Settings
      • Overview
      • Header & Labels
      • Widget Tabs
      • Lead Capture Form
      • Quick Questions
      • Custom CSS and JS
      • Branding & Tracking
      • Behaviour Settings
      • Consent & Overlay
    • Partner Dashboard
      • How to Create White-Label
      • License Management
    • Message Credits
      • Message Credits
  1. Product

Chat Widget Custom CSS Classes

Custom CSS is injected inside the widget iframe. Prefer these hooks over fragile Tailwind utility selectors.
AudienceDifficulty
Integrators / brand designersIntermediate

How Custom CSS is applied#

INFO
Paste CSS in the agent Custom CSS setting. It is injected as a <style> tag inside the widget (for example #new-widget-custom-css / style[data-new-widget="custom-css"]). It does not style the host page bubble.
Related global selectors:
SelectorPurpose
.darkDark mode on document.documentElement
#new-widget-custom-cssInjected custom CSS <style> tag
style[data-new-widget="custom-css"]Attribute on that style tag
link[data-new-widget="preload-avatar"]Avatar preload link
Example:

Root and states#

ClassElement
.agent-widget-rootOutermost widget container
.agent-widget-mainMain scrolling content panel
.agent-widget-scrollbarScrollbar styling hook
.agent-widget-loadingFull-widget loading state
.agent-widget-errorFull-widget error state

Header#

ClassElement
.agent-widget-headerHeader root
.agent-widget-header-gradientDecorative gradient layer
.agent-widget-header-innerInner layout wrapper
.agent-widget-header-textTitle / subtitle block
.agent-widget-header-titleTitle text
.agent-widget-header-subtitleSubtitle text
.agent-widget-header-controlsMenu / minimize group
.agent-widget-header-minimize-btnMinimize / close button

Header menu#

ClassElement
.agent-widget-header-menu-triggerMenu trigger button
.agent-widget-header-menu-popoverMenu popover content
.agent-widget-header-menu-theme-colorsTheme color grid (if enabled)
.agent-widget-header-menu-theme-color-btnIndividual theme color button
.agent-widget-header-menu-theme-mode-btnLight / dark toggle
.agent-widget-header-menu-download-btnDownload transcript item
.agent-widget-header-menu-end-session-btnEnd / reset session item

Bottom navigation#

ClassElement
.agent-widget-bottom-navBottom nav root
.agent-widget-bottom-nav-chat-tabChat / home tab
.agent-widget-bottom-nav-integration-tabIntegration tab (calendar / link / social / WhatsApp)
.agent-widget-bottom-nav-news-tabNews tab
Data attributes on integration tabs:
AttributeValues / notes
data-tab-typeiframe | whatsapp | link | social
data-tab-providerProvider slug when set (e.g. calendly, whatsapp, youtube, facebook)
data-tab-idFallback when provider is missing or other

Agent selection / home#

ClassElement
.agent-widget-agent-selectionAgent selection view root
.agent-widget-agent-selection-cardList card container
.agent-widget-agent-listList wrapper
.agent-widget-agent-itemSingle agent row
.agent-widget-agent-avatarAvatar container
.agent-widget-agent-infoName / info next to avatar
.agent-widget-agent-select-btnSelect chevron / button
.agent-widget-recent-messagesRecent messages section (if enabled)
.agent-widget-recent-message-cardRecent message card (if enabled)
Data attributes on agent items:
AttributeNotes
data-agent-idChatbot id
data-agent-index0-based index

Pre-chat form#

ClassElement
.agent-widget-prechatPrechat view root
.agent-widget-prechat-headerPrechat header bar
.agent-widget-prechat-back-btnBack button
.agent-widget-prechat-formScrolling form container
.agent-widget-prechat-titleForm title
.agent-widget-prechat-subtitleForm subtitle
.agent-widget-prechat-form-element<form> element
.agent-widget-prechat-submit-btnSubmit button

Pre-chat overlay#

ClassElement
.agent-widget-overlayOverlay root
.agent-widget-overlay-backdropDimmed backdrop
.agent-widget-overlay-cardBottom sheet card
.agent-widget-overlay-close-xClose control
.agent-widget-overlay-iconIcon / emoji
.agent-widget-overlay-subtitleSmall uppercase label
.agent-widget-overlay-titleOverlay title
.agent-widget-overlay-bodyBody copy
.agent-widget-overlay-buttonsPrimary button row
.agent-widget-overlay-btnOverlay button
.agent-widget-overlay-btn-0First button (index suffix)
.agent-widget-overlay-linksLink row
.agent-widget-overlay-link-0First link (index suffix)

Chat shell#

ClassElement
.agent-widget-chatChat view root
.agent-widget-chat-headerChat header bar
.agent-widget-chat-back-btnBack button
.agent-widget-chat-agent-badgeActive agent badge
.agent-widget-chat-messagesMessages area wrapper
.agent-widget-chat-conversationConversation scroller
.agent-widget-chat-input-areaBottom input area
.agent-widget-chat-prompt-inputPrompt input wrapper
.agent-widget-chat-powered-byPowered-by footer

Chat messages#

ClassElement
.agent-widget-message-rowWrapper around a message
.agent-widget-messageMessage flex row
.agent-widget-message-userUser message
.agent-widget-message-assistantAssistant message
.agent-widget-message-bubbleBubble (background / radius)
.agent-widget-message-textPlain user text
.agent-widget-message-markdownAssistant markdown body
.agent-widget-typingTyping / pending assistant row
.agent-widget-typing-bubbleTyping bubble
.agent-widget-typing-loaderLoader inside typing bubble
Data attributes:
AttributeNotes
data-message-roleuser | assistant
data-message-idMessage id

Composer (message input)#

ClassElement
.agent-widget-composerComposer section
.agent-widget-composer-inputPrompt input shell
.agent-widget-composer-textareaTextarea
.agent-widget-composer-actionsAction buttons column
.agent-widget-composer-micOptional voice / mic button
.agent-widget-composer-sendSend / stop button

Welcome panel (promo cards)#

ClassElement
.agent-widget-welcomePanel root
.agent-widget-welcome-headerHeader block
.agent-widget-welcome-logoOptional logo
.agent-widget-welcome-titlePanel title
.agent-widget-welcome-descriptionPanel description
.agent-widget-welcome-tabsTab list
.agent-widget-welcome-tabTab trigger
.agent-widget-welcome-tab-contentTab body
.agent-widget-welcome-carouselCarousel layout
.agent-widget-welcome-gridGrid layout
.agent-widget-welcome-cardCard root
.agent-widget-welcome-card-imageCard image
.agent-widget-welcome-card-image-fallbackImage fallback
.agent-widget-welcome-card-scrimGradient overlay
.agent-widget-welcome-card-bodyText + buttons
.agent-widget-welcome-card-titleCard title
.agent-widget-welcome-card-descriptionCard description
.agent-widget-welcome-card-buttonsButton row
.agent-widget-welcome-card-btnAny card button
.agent-widget-welcome-card-btn-primaryPrimary button
.agent-widget-welcome-card-btn-secondarySecondary buttons
Data attributes:
AttributeNotes
data-tab-idOn tabs / tab content
data-card-idOn cards

Function Tool Call approval card#

ClassElement
.agent-widget-tool-approvalCard root
.agent-widget-tool-approval-headerIcon + title row
.agent-widget-tool-approval-iconIcon wrap
.agent-widget-tool-approval-titleTitle label
.agent-widget-tool-approval-messageApproval message text
.agent-widget-tool-approval-argsArgs list
.agent-widget-tool-approval-argOne arg row
.agent-widget-tool-approval-arg-keyArg name
.agent-widget-tool-approval-arg-valueArg value
.agent-widget-tool-approval-actionsApprove / Decline row
.agent-widget-tool-approval-approveApprove button
.agent-widget-tool-approval-declineDecline button
.agent-widget-tool-approval-statusAfter-response chip
.agent-widget-tool-approval-status-approvedApproved chip
.agent-widget-tool-approval-status-declinedDeclined chip

Live chat (voice)#

ClassElement
.agent-widget-live-chatLive chat view (with .agent-widget-chat)
.agent-widget-live-voice-areaVoice controls area
.agent-widget-live-text-inputOptional text input under voice UI

Calendar / iframe integrations#

ClassElement
.agent-widget-calendarCalendar view root
.agent-widget-calendar-iframe-wrapIframe wrapper
.agent-widget-calendar-iframeIframe element
.agent-widget-calendar-emptyEmpty state

WhatsApp integration#

ClassElement
.agent-widget-whatsappWhatsApp view root
.agent-widget-whatsapp-logoLogo wrapper
.agent-widget-whatsapp-titleTitle
.agent-widget-whatsapp-subtitleSubtitle
.agent-widget-whatsapp-btnPrimary CTA

Link / social integration#

ClassElement
.agent-widget-linkLink view root
.agent-widget-link-logoLogo wrapper
.agent-widget-link-titleTitle
.agent-widget-link-subtitleSubtitle
.agent-widget-link-btnOpen-link CTA

News#

ClassElement
.agent-widget-newsNews view root
.agent-widget-news-back-btnBack button (detail)
.agent-widget-news-detailDetail article container
.agent-widget-news-detail-imageDetail hero image
.agent-widget-news-detail-titleDetail title
.agent-widget-news-detail-summaryDetail summary
.agent-widget-news-headingList heading
.agent-widget-news-itemList item
.agent-widget-news-item-imageList item image
.agent-widget-news-item-titleList item title
.agent-widget-news-item-summaryList item summary
Data attribute:
AttributeNotes
data-news-index0-based index on list items

Quick recipes#

Hide powered-by footer
Brand header title
Brand welcome primary button
Style approval card border
Style a specific integration tab
Modified at 2026-08-13 08:14:15
Previous
Agent Widget JavaScript SDK
Next
Create AI Agent
Built with