Tutorial · 5 min read

How to add a chat room to your website.

A step-by-step guide. No backend, no database, no coding — just one script tag and a few minutes.

A chat room — a real-time space where your visitors talk to each other — used to mean running a server, a database and a moderation team. It doesn't anymore. Here's how to add one to any website in about five minutes.

What you'll need

  • A website you can paste a line of HTML into (any platform).
  • A free Embedded Chat account (15-day trial, no credit card).
  • About five minutes.

Step 1 — Sign up and create a project

Create an account and a project. A "project" is your chat install — it holds your settings, your theme and your rooms. You'll get a project token; keep it handy for step 3.

Step 2 — Copy your embed code

From the panel's Install tab, copy your snippet. It's a single script tag that loads the chat asynchronously, so it never blocks your page:

<script>
  (function() {
    var s = document.createElement('script'); s.async = true;
    s.src = '//d2yy16lkdmfg04.cloudfront.net/resource/chat.js';
    var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
  })();
  window.embeddedChatAsyncInit = function() { embeddedChat.init("YOUR_PROJECT_TOKEN"); };
</script>

Step 3 — Paste it into your site

Drop the snippet into your page's <head> or footer. Where, by platform:

Step 4 — Choose one room or one per page

By default, every visitor on your domain joins one shared room. If you'd rather each page (product, article, event) have its own conversation, flip "separate room per page URL" in the Behavior panel.

Step 5 — Theme it and set moderation

Match the room to your brand with a preset, color pickers or custom CSS. Then set your moderation basics: banned words, slow mode, and (on Pro) AI moderation. Add sub-admins if you want help moderating.

That's it

Reload your page and the chat room is live for every visitor. For the concepts behind rooms, see chat room for website; for the install details, how to embed chat.

Add a chat room — free trial
No credit card. No backend to run.
Try the chat — it's right here 👇