TAU Widget

Configuration Parameters

Complete reference for all parameters of the window.taubotConfig object.

Configuration Parameters

All parameters are defined in the window.taubotConfig object before the widget loads.


Required

appIdstring required

Your assistant's unique identifier, provided by TAU.

appId: 'mysite.com'

Button appearance

chatbotButtonBackgroundstring

Button background color. Accepts any valid CSS value.

chatbotButtonBackground: '#4834D4' // Default: '#009588'

chatbotButtonForegroundstring

Button icon/text color.

chatbotButtonForeground: '#FFFFFF' // Default: '#FFFFFF'

chatbotButtonSizenumber

Button size in pixels.

chatbotButtonSize: 60 // Default: 62

showChatbotButtonboolean

Shows or hides the chat button.

showChatbotButton: true // Default: true

chatbotButtonOpenStateSVG / chatbotButtonClosedStateSVGstring

Custom SVG code for the button icon in open and closed states.

chatbotButtonClosedStateSVG: '<svg>...</svg>'

Positioning

chatbotButtonBottomnumber

Distance in pixels from the bottom edge of the screen.

chatbotButtonBottom: 20 // Default: 20

chatbotButtonRightnumber

Distance in pixels from the right edge of the screen.

chatbotButtonRight: 20 // Default: 20

chatbotSpaceFromButtonnumber

Space in pixels between the button and the chat window.

chatbotSpaceFromButton: 72 // Default: 72

Window dimensions

chatWidthnumber

Width in pixels (default mode).

chatWidth: 400 // Default: 400

chatWidthCoolnumber

Width in pixels (cool mode).

chatWidthCool: 700 // Default: 700

maxChatHeightnumber

Maximum window height in pixels.

maxChatHeight: 700 // Default: 700

percentChatHeightnumber

Percentage of screen height occupied by the chat.

percentChatHeight: 80 // Default: 80

mobileWidthThresholdnumber

Width in pixels that defines when to use the mobile layout.

mobileWidthThreshold: 500 // Default: 500

Behavior

modestring

Display mode. Options: 'default' or 'cool'.

mode: 'cool' // Default: 'default'
default modecool mode
PositionNear the buttonCentered on screen
Width400px (chatWidth)700px (chatWidthCool)
OverlayNo overlayDark overlay
StyleSubtle, corporateModern, eye-catching

defaultRoutestring

Initial chat route. Options: 'home' or 'chat'.

defaultRoute: 'chat' // Default: 'home'

defaultMessagestring

Pre-filled message in the input box.

defaultMessage: 'Hi! I need help.'

autoOpenboolean

Opens the chat automatically when the page loads.

autoOpen: true // Default: false

alwaysOpenOnMobileboolean

Forces automatic opening on mobile devices.

alwaysOpenOnMobile: true // Default: false

closeChatOnOutsideClickboolean

Closes the chat when clicking outside the window.

closeChatOnOutsideClick: true // Default: false

WhatsApp integration

enableWhatsAppboolean

Enables WhatsApp mode (redirects to WhatsApp instead of opening the chat).

enableWhatsApp: true // Default: false

whatsAppNumberstring

Phone number in international format.

whatsAppNumber: '+15551234567'

whatsAppMessagestring

Pre-filled message when opening WhatsApp.

whatsAppMessage: 'Hi! I came from your website and need help.'

Advanced visual customization

calloutBorder / calloutBackgroundColor / calloutFontColorstring

Colors for the callout/bubble element near the button.

calloutBorder: '#A8A8A8',
calloutBackgroundColor: '#FFFFFF',
calloutFontColor: '#333333'

Authenticated user

See the full documentation at Authenticated Area.

user: {
  id: 'user123',
  hash: 'SERVER_GENERATED_HMAC',
  name: 'John Smith',
  email: 'john@example.com',
  phone: '+15551234567',
  profile_picture_url: 'https://...',
  created_at: 1701967378
}

On this page