How do I add the web chat widget?

Scan to open on your phone

1. Overview

Web Chat is a live-chat widget you install on your own website. Add a site in the admin console, paste the one-line embed snippet it generates into your website, and a chat button appears in the corner of your pages. Messages from visitors arrive in the Agent Workspace and are answered alongside conversations from other channels.

The owner and administrators with the Web Chat permission can add and set up sites under Web Chat in the left-hand menu.

2. Steps

1. How do I add a site?

① Log in to the admin console, then click Web Chat in the left-hand menu > Add Site.

② Fill in the Site name, for example "Official site." This is a name for your own reference, and it appears in the conversation titles in the Agent Workspace.

③ Under Allowed domains, enter your website's domains, one per line, for example shop.example.com.

④ Click Create and set up to open this site's settings page.

The Web Chat page, the Add Site dialog with a site name and allowed domains filled in

Caution: Allowed domains is required. A site with no domain handles no visitors and shows Not configured; the widget won't work in the list.

2. How do I fill in the domains?

FormWhich URLs it matches
example.comMatches only example.com, not www.example.com
www.example.comMatches only www.example.com
*.example.comMatches every subdomain of example.com, but not example.com itself
  • Enter the domain only, with no https:// or path; if you add them, they're stripped automatically.
  • With www and without www count as two domains; if you use both, enter both.

3. How do I install the chat widget on my website?

① At the top of the site settings page, click Copy embed code; you can also click Copy for this site in the Web Chat list.

② Paste the code into the HTML of the pages where you want the chat button (usually just before </body>), then publish your site. The code is a single line, like:

<script src="https://widget.xiongmaoscrm.com/widget.js" data-site="wc_…" async></script>

③ Open your website (ideally in an incognito window); when a chat button appears in the corner, it's installed. Send yourself a message, and once it arrives in the Agent Workspace, you're connected.

Note: If you use a store builder such as Shopify, SHOPLINE, or WordPress, follow the steps for your platform in Installing the chat widget on a store-builder site.

4. How do I style the chat widget?

On the site settings page, the settings are on the left and the Chat widget preview is on the right, where you can switch between Desktop / Mobile and Agent online / Agent offline to see the effect. After making changes, click Save in the top-right; visitors see the change when they refresh the page, with no need to paste the code again.

The Web Chat site settings page, the basic settings on the Chat widget tab on the left, with the live preview on the right

The settings are split across three tabs:

4.1 Chat widget

SettingWhat it does
Chat widget nameSame as the site name; shown in the conversation titles in the Agent Workspace
Allowed domainsThe domain allowlist; see the rules above
Brand nameShown at the top of the chat window, up to 30 characters; leave it blank to show a default line in the visitor's language
Brand logo / AI agent avatarRecommended size 100×100; supports PNG / JPG / GIF / WebP; the AI agent avatar is shown when an AI employee replies, falling back to the brand logo if none is uploaded
LanguageThe language of the widget's built-in text (input hints, buttons, error messages), defaulting to Follow the visitor's browser (recommended); the brand name and welcome message you enter are shown as-is
Theme colorThe main color of the button and window
Home modeWhen on, opening the widget first shows a home screen that brings live chat and other channel links together; you can set a Home welcome message
SubtitleThe small line under the brand name; you can set Agent online — subtitle and Agent offline — subtitle separately
Welcome messageThe first line a visitor sees when they first open the chat window, up to 200 characters

4.2 Launcher settings

SettingWhat it does
Collapse the launcherWhen on, the launcher tucks against the edge of the page showing only half of itself, and only fully appears on hover or when there's a new message
Launcher positionRight side of the site or Left side of the site
Launcher styleSystem default, or Custom with an uploaded Launcher icon (use a PNG with a transparent background)
Mobile / DesktopSet the Launcher icon size, Launcher bottom spacing, and Launcher side spacing separately; Desktop can Follow the mobile settings
Channel links in the launcherClick Manage to add WhatsApp, Telegram, Messenger, Instagram, LINE, email, phone, links, and more, so visitors can jump to these channels to reach you in one click, up to 10

4.3 Other settings

SettingWhat it does
Unread previewWhen the chat window is collapsed and an agent sends a new message, a preview pops up above the launcher: Don't show, First unread message, or Latest unread message
Recall noticeWhen on, a visitor sees "The other party recalled a message" when an agent recalls one; when off, that message simply disappears
Queue infoWhen on, a visitor who has sent a message but isn't answered yet can see how many visitors are waiting ahead of them
Handling-agent infoWhen on, for conversations an agent has replied to, the chat window header switches to the handling agent's name (assign an agent to the site first)
New-message alerts for visitorsBrowser tab alert (the tab flashes) and Browser alert sound
Collapse historyWhen on, when a visitor opens the window again, the previous conversation from more than half an hour ago is collapsed
Show on specific pagesSet Show on all pages, Show only on these pages, or Don't show on these pages, one page address per line, with * wildcards supported
Fill the phone screen with the mobile chat pageOn mobile, the chat window fills the whole screen
Auto-expandWhen on, the widget expands automatically when a new visitor opens the site (once per visitor); you can set How long after the page opens to expand
Window stateWhen on, the window keeps its previous state as the visitor moves between pages
Access restrictionsIP region restriction hides the widget based on the country/region of the visitor's IP; IP address restriction hides the widget from visitors on specific IPs or ranges

5. How do I assign a site to an agent?

① In the Web Chat list, click Assign agent for this site and pick an agent.

② Once assigned, this site's visitor conversations are visible only to that agent and to the owner and administrators. For an unassigned site, the conversations sit under Unassigned in the agent rail of the Agent Workspace.

③ To cancel, choose Unassign under Assign agent.

The Web Chat list page, with the Assign agent dropdown for a site expanded

6. How do I disable or delete a site?

  • Disable: turn off this site's Enabled switch in the list, and visitors won't be able to open the chat window. Turn it back on to restore it.
  • Delete: click Delete and confirm. Once deleted, this site's embed code stops working immediately, visitors can't open the chat window, and the conversations already created are removed from the Agent Workspace.

Caution: Deleting a site can't be undone; if you only want to stop handling visitors for a while, use Disable.

FAQ

1. I pasted the code but don't see the chat button on my site?

Check these in order: whether the code is saved and published; whether the current site's domain is in Allowed domains (with www and without www count as two); whether the site is disabled; whether Show on specific pages or Access restrictions is set; and, if the site or CDN caches, wait a few minutes and refresh.

2. I changed a setting but nothing changed on the site?

Confirm you clicked Save, then refresh the site page. After you change the allowlist or disable a site, it takes up to about 1 minute to take full effect.

3. What if I have several websites?

Create a site for each website and paste each one's code separately. The conversation title carries the site name, so you can tell at a glance which website a visitor came from, and you can assign different sites to different agents. Several websites can also share one site — just add all the domains to its allowlist.

Was this helpful?

Last updated: