Onsites AI is 100% free forever — 3 seats and 100 MB included. Start free →
Learning Center

How to add a live chat widget to any website

By the Onsites AI team · Last updated · 8-minute read

Your website — one snippet before </body> SHARED INBOX chat · email · WhatsApp · LINE · WeChat notes · tags · drafts · SLAs customer context panel every message, one queue

A live chat widget is the highest-conversion support channel you can add to a website, and it is also the one most teams postpone because they assume it needs a developer. It does not. The whole installation is one script tag, and the receiving end — the part that actually matters — is a shared inbox your team can answer from. This guide covers the install on every common platform, then the two customizations that separate a widget people use from a widget people ignore.

Step 1 · Create the desk behind the widget

Register a free workspace from the start page — work email, password, verification click. The workspace includes the website channel by default, so there is nothing to enable before you get your snippet. If you are new to the desk, the fifteen-minute setup guide covers this first step in a little more depth; you will be back here in two minutes.

Step 2 · Copy the snippet from Settings → Website

In your workspace open Settings → Website. You will find a preconfigured snippet containing your website token — copy it as-is. The shape of it looks like this, with YOUR_DESK_URL and YOUR_WEBSITE_TOKEN already filled in for your workspace:

<script>
 (function(d,t){
   var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
   g.src='YOUR_DESK_URL/js/sdk.js';
   g.async=true;g.onload=function(){
     window.ChatwootLite.run({
       baseUrl: 'YOUR_DESK_URL',
       websiteToken: 'YOUR_WEBSITE_TOKEN'
     });
   };
   s.parentNode.insertBefore(g,s);
 })(document,"script");
</script>

The async attribute matters: the script downloads in parallel with the rest of the page and never blocks rendering. That is why a live chat widget built this way does not affect your page speed scores in any meaningful way.

Step 3 · Paste it into your site

The paste location is the same everywhere: just before the closing </body> tag of the pages where the bubble should appear.

Refresh your site. A chat bubble appears in the bottom-right corner. Open it, send yourself a test message, and watch it land in the workspace inbox.

Step 4 · The two customizations that matter

Brand it. In the same settings screen set the bubble color to your primary brand color and upload a favicon-friendly avatar. A default blue bubble on a beige site reads as abandoned software; a matched one reads as a feature. This takes one minute.

Write a real greeting. The pre-chat message is the highest-leverage sentence on your support page. Name the response expectation and the scope: "We reply within the hour, weekdays 9–18 CET — ask us anything about setup." Vague invitations ("How can we help?") get ignored; specific ones get answered and, more importantly, keep expectations honest while your team is asleep.

Step 5 · Answer from the shared inbox

Every conversation — chat, email, Telegram, WeChat, LINE, WhatsApp, Messenger — arrives in one queue. The visitor's context panel shows the page they came from, and as your CRM fills up, their account and contact record attach automatically. While answering you can leave private notes for teammates, save a draft reply to finish later, and tag conversations for reporting. If AI is enabled, Copilot can draft the first reply for you (3 credits), and you edit rather than type.

Housekeeping: storage and branding

Chats count toward storage, but text is tiny — the 100 MB free tier holds countless conversations, and only attachments add up meaningfully beyond that. The free tier shows a small Powered by Onsites AI badge in the widget; your first payment of any kind — a fourth seat or an AI credit pack — removes it permanently. And if you sell into networks where a cloud embed is a compliance problem, the same widget runs in front of a self-hosted desk on your own infrastructure.

Five mistakes worth skipping

Frequently asked questions

Will it slow down my site?
No — the snippet is async and loads after your content, so rendering is never blocked.

Can I run it on several domains?
Yes. Any page with the snippet and your token reports into the same inbox.

Do visitors need an account?
No. They open the bubble and type; no registration step exists.

Can I remove the branding?
The free tier shows the badge; any first payment removes it permanently.

Add chat to your site — free →  Read the setup doc