Add the chat widget

The chat widget is the button visitors use to message your team. After you add one line to your website, a palm-tree button sits at the bottom right of every page. Visitors click it to start a chat.

1. Create an inbox

In Beachdesk, open Inboxes and choose New inbox. Give it a name, such as Website chat, and tick the people who should see those conversations. Then choose Create inbox.

2. Add your website

On the inbox page, find Website. In Allowed domains, type the address of your website, one address per line:

example.com
www.example.com

Use the address people type into the browser. If your site opens with www and also without it, list both. They count as two different addresses. If you leave this box empty, the chat cannot open on your site.

Choose Add website channel.

3. Copy the install script

Beachdesk then shows an Install script. It looks like this. Yours will have your own token in place of SecretTokenGoesHere. Copy the whole line.

<script src="https://app.beachdesk.app/widget.js" data-token="SecretTokenGoesHere" async></script>

The inbox also shows an HMAC secret. Leave that where it is. Only the install script belongs on your website.

4. Paste it at the bottom of your website

Paste the line once, just before the closing </body> tag. That tag is the last part of each page. In the page it looks like this:

<script src="https://app.beachdesk.app/widget.js" data-token="SecretTokenGoesHere" async></script>
</body>

If your site has a shared footer, theme, or layout, paste it there. Then every page gets the button, and you do not have to edit each page by hand.

Put it at the bottom of the page, not in the header. The button is drawn onto the page itself. The bottom of the page is ready when the browser reaches that line. The header can run too early, before the page exists, and then the button never shows up.

Leave the line as Beachdesk gave it to you, including the word async. Do not add type="module". That change hides the token from the widget, and the button does not appear.

If someone else looks after your website, send them the line and ask them to place it just before </body> in the site template.

5. Check that it works

Save and publish the site. Open it in your browser. You should see a round teal button with a palm tree at the bottom right. Click it and a chat window opens.

If something looks wrong

The button is missing

The button opens a blank chat