The Web Chat Widget

The Web Chat Widget

The web chat widget is a chat bubble you drop onto any web page with a single <script> tag. Visitors chat with your AI; when a person takes over, their replies appear in the same bubble — live.

Adding it to your site

Paste the snippet just before your closing </body> tag:

<script src="https://blz.actionbridge.io/support/widget.js" data-key="wk_your_key_here"></script>

The widget loads in its own frame, so it won’t clash with your site’s styles or scripts.

Options

Attribute What it does
data-key Required. Your desk’s widget key, from Settings.
data-position right (default) or left — which corner the bubble sits in.
data-offset Pixels from the corner (default 20).
data-lang Pins the widget’s language, e.g. ja or th. Leave it off — or leave it empty — and each visitor sees their own browser language. The exact codes are in What language the widget speaks.

If your page shows a reCAPTCHA badge in the same corner, the widget automatically lifts above it so the two don’t overlap.

What language the widget speaks

Left alone, the widget follows each visitor’s own browser language. A Japanese visitor to an English site gets the Japanese bubble; nothing to configure, and different visitors to the same page can see different languages.

To pin one language instead — a site that serves one market regardless of who is reading — add data-lang:

<script src="https://blz.actionbridge.io/support/widget.js" data-key="wk_your_key_here" data-lang="ja"></script>

Translated into 12 languages: English, Japanese, Korean, Chinese (Simplified and Traditional), Spanish, French, German, Portuguese, Arabic, Russian and Thai. Arabic is laid out right to left. A visitor whose browser is set to any other language sees English rather than a half-translated bubble.

Language Write Also accepted
Englishenen-US, en-GB…
Japanesejaja-JP
Koreankoko-KR
Simplified Chinesezh-CNzh, zh-Hans, zh-Hans-CN, zh-SG
Traditional Chinesezh-TWzh-Hant, zh-Hant-TW, zh-HK, zh-MO
Spanisheses-ES, es-MX…
Frenchfrfr-FR…
Germandede-DE…
Portugueseptpt-BR, pt-PT
Arabicarar-SA…
Russianruru-RU
Thaithth-TH
  • Case doesn’t matter, and a region is accepted and dropped — ja-JP is the same as ja. The exception is Chinese, where the region picks the script: Traditional when the code contains Hant, TW, HK or MO (and not Hans), Simplified otherwise.
  • A value the widget doesn’t know shows English, so data-lang="it" gives you English. It does not fall back to the visitor’s browser language: a site that pinned a language asked for that one.
  • An empty data-lang="", or one of only spaces, is the same as leaving it out — the visitor’s browser language decides. That helps when your site’s template writes the attribute even when it has no value to put in it.

The same applies to the hosted web form: add ?lang=ja to its address to pin it, or leave it off to follow the visitor.

Your title

Until you set one, the top of the chat reads AB Support, with We typically reply in a few moments under it, in the visitor’s language. Set your own Title and Subtitle and that is what customers see at the top of the chat and of your hosted web form. In the chat, the title is also the name on the AI’s messages.

  1. Open your desk’s Settings. In the Web chat section, find Title, just below Brand color.
  2. Type a title and, if you like, a subtitle. For example, “ReceiptRoller Support” with “We reply on weekdays, 10:00–18:00” under it.
  3. Give a language its own title (optional). Pick it from Add a language… and click Add, then type that language’s title and subtitle — for Japanese, say, “レシートローラー サポート”. Any language without its own uses the title above. To remove one, click its ✕ button.
  4. Click Save title.
Field Limit Left blank
Title60 characters, one lineAB Support
Subtitle100 characters, one lineWe typically reply in a few moments, translated

You can set a title for any of the 12 languages the widget speaks. On the hosted web form the title becomes the heading; the form’s own “We’ll reply to your email” line stays as it is. Nothing changes for your customers until you save a title.

Your title reaches your website within about 5 minutes, and there is nothing to re-paste. Like the icon and the color, only desk admins and the owner can change it.

Your brand color

Until you pick one, the chat is our teal. Choose your own color and it is used for the chat’s header, its buttons and your customer’s own messages, for the close (✕) button on the launcher while the chat is open, and for your hosted web form.

  1. Open your desk’s Settings. In the Web chat section, find Brand color, just below Chat bubble icon.
  2. Pick a color and click Save color.
  3. Changed your mind? Reset to default puts our teal back.

Your color reaches your website within about 5 minutes, and there is nothing to re-paste. Like the icon, only desk admins and the owner can change it.

Using your own bubble icon

By default the launcher on your website is our teal bubble with a speech-balloon icon (💬). You can replace it with your own PNG so the widget looks like it belongs to your site. The image you upload becomes the whole button: it fills the entire 56-pixel launcher, and we no longer draw our teal circle behind it.

  1. Open your desk’s Settings. Go to the Web chat section and find Chat bubble icon.
  2. Click Upload PNG and choose your file. The preview bubble beside the button shows exactly how the launcher will look.
  3. Changed your mind? Reset to default puts our speech-balloon icon back.
Image What works
Format PNG
Recommended size Square, at least 112×112 pixels
Displayed size Fills the whole launcher, 56×56 pixels
Shape Set by the image itself — a transparent background is strongly recommended
File size 256 KB maximum

The launcher is drawn at 56×56 pixels, so a 112×112 (or larger) source keeps your mark sharp on high-resolution screens. A subtle shadow is added for you and follows the outline of your artwork, so there is no need to bake one into the PNG.

The launcher icon is an image, so your brand color doesn’t repaint it — the icon you upload is what visitors see. Because our circle is no longer drawn behind your image, a transparent PNG means the color visitors see is the color of your own artwork.

What the visitor sees

  1. They open the bubble and leave a name, email, and first message.
  2. The AI answers from your knowledge, with sources, right in the chat — without waiting for anyone on your team.
  3. A person can take over — their reply appears in the same chat within a few seconds. If the visitor has already closed the chat, the reply is emailed to them as well (see below). When the AI hands the chat to your team, it still answers any follow-up it can from your sources until someone is assigned or replies — see where an escalated ticket goes.
  4. Once the ticket is resolved and a satisfaction survey has been sent, a visitor who still has the chat open sees it as a card in the conversation and can answer there.

When the visitor has left

Visitors often close the tab before your team gets to them. So when a person on your team replies to a web chat whose visitor hasn’t had it open for more than 2 minutes, the reply is also emailed — from your support address to the email the visitor gave when the chat started. If they still have the chat open, they just see it there and get no email.

The email they leave is also how they’re recognised next time — see your customer store.

Web chat is one of five ways in — see how customers reach you, and how a ticket works once a chat starts.

Published on 2026-07-13
Last updated on 2026-11-24
Version 15