Home/AI Assistant Deployment/Widget Customization

Widget Customization Reference

This is the full reference for the ZipTier embed widget's optional attributes. Every attribute below is optional — omit any to use the default. For the basic install and required attributes, see the Website Embed guide.


Button Style & Appearance

AttributeDefaultDescriptionValues
data-button-stylepillVisual style of the launcher buttonpill, fab, avatar, textbox
data-button-textAsk AILabel on pill/avatar, placeholder on textbox, tooltip on FABAny string, e.g. Get Help
data-button-color#4F46E5Background color of the buttonHex color, e.g. #667eea
data-button-text-color#ffffffText / icon color on the buttonHex color, e.g. #000000
data-button-sizemediumSize of the launcher buttonsmall, medium, large
data-button-fontSystem font stackFont family for button textInter, Roboto, Poppins, etc.
data-button-cornerroundedCorner style for pill, avatar, and textbox launchersrounded, sharp
data-button-animationbounceEngagement animation played when the button first appearsnone, bounce, pulse, teaser, auto-open
data-greeting-text👋 Have a question? Ask me anything — I reply instantly.Message shown in the teaser bubble, or as the opening AI message when the chat auto-opens. Only used when data-button-animation is teaser or auto-open.Any string

Launcher Button Styles

StyleDescriptionBest for
pillRounded button with chat icon and label text (default)Most websites — visible and descriptive
fabRound floating action button with chat icon only, no labelMinimal footprint; the icon is universally recognized
avatarWhite card with an agent avatar circle and name — conveys a human presenceHigh-touch sales or support experiences
textboxSearch-bar style with a text input. Users can type a question before opening the chat; the message is auto-sent as the first message.Product pages where users arrive with a specific question

Style Previews

Pill — rounded button with a chat icon and label text. The default; the widest option and the most self-explanatory.

Pill launcher style

FAB — a floating action button showing only the chat icon. The smallest launcher; use it when you want the assistant present but visually quiet.

FAB launcher style

Avatar — a white card with an agent avatar circle and name label. Signals a human-like presence and reads as more high-touch than a plain button.

Avatar launcher style

Textbox — a search-bar shaped input with a placeholder. Visitors can type their question directly; the message is auto-sent as the opening line when the chat opens.

Textbox launcher style

Avatar Style (data-button-style="avatar" only)

AttributeDefaultDescription
data-button-avtr-initialsFirst letter of button textInitials shown inside the avatar circle (up to 3 characters)
data-button-avtr-initials-color#ffffffColor of the initials text inside the avatar circle

Search-Bar Style (data-button-style="textbox" only)

AttributeDefaultDescriptionValues
data-button-opacity0.4Background opacity of the search-bar launcher0.41

Note: the pulse and auto-open animations aren't available for the textbox style — use bounce, teaser, or none instead. On mobile viewports, auto-open automatically falls back to bounce to preserve screen space.


Button Position & Widget Size

AttributeDefaultDescriptionValues
data-button-positionbottom-rightFixed position of the launcher button on screenbottom-right, bottom-left, bottom-center
data-widget-width400pxWidth of the chat widget panel400px600px
data-widget-height800pxHeight of the chat widget panel400px800px

Complete Customization Example

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-style="pill"
  data-button-text="Ask AI"
  data-button-color="#667eea"
  data-button-text-color="#ffffff"
  data-button-size="large"
  data-button-font="Inter"
  data-button-corner="rounded"
  data-button-position="bottom-right"
  data-widget-width="400px"
  data-widget-height="800px"
></script>

Ready-to-Use Examples

Search-bar launcher with pre-filled message:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-style="textbox"
  data-button-text="What would you like to know?"
></script>

Agent avatar launcher:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-style="avatar"
  data-button-text="Ask Alex"
  data-button-avtr-initials="AL"
  data-button-color="#667eea"
></script>

Custom button text for a product page:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-text="Ask Our AI About This Product"
></script>

Left-side positioning with bounce animation:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-position="bottom-left"
  data-button-animation="bounce"
></script>

Teaser bubble with a custom greeting:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-animation="teaser"
  data-greeting-text="Questions about pricing? Ask me anything."
></script>

Auto-open the chat with a greeting after visitors arrive:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-animation="auto-open"
  data-greeting-text="Hi there! Ask me anything about this page."
></script>

Translucent search-bar launcher:

<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=1234567890"
  data-button-style="textbox"
  data-button-opacity="0.6"
></script>

Prefer a visual, no-code way to configure all of the above? Use the Widget Builder Playground — every attribute on this page maps to a form control, with a live device preview and one-click copy of the generated embed code.