Add a live chat widget to your website

Updated Nov 28, 20266 min read
English
On this page

This guide puts a chat button on your website: you create a live chat inbox, paste its snippet into your pages and decide when visitors leave their email address. Their messages arrive in Deskwoot as conversations, next to your other channels.

Step 1: Create the chat inbox

The channel list for a new inbox: Live Chat, Email, WhatsApp, Telegram, LINE, X, Instagram and Messenger
  1. Go to Settings > Inboxes > Add Inbox.
  2. Pick Live Chat.
  3. Under Where does your chat run?, pick Website Live Chat.
  4. Click Create Inbox. Deskwoot creates the inbox and opens its settings.
  5. Click Rename next to the inbox name and give it a clear name, for example "Main Site Chat". Your team sees it in the inbox switcher.

Step 2: Set the look and the welcome

On the inbox's page, change these rows and save each row you changed:

  • Look:
    • The color under Which color does your chat have?, so the chat matches your website
    • Bottom left or Bottom right under Where is the chat button?
    • A light or dark theme
    • The text on the chat button
    • Your own picture
  • Welcome and language:
    • A Heading and a Line below it that greet visitors when they open the chat
    • The first message
    • How fast you usually reply

Keep the welcome short: one or two friendly sentences work better than a long paragraph. The chat adapts to phone screens by itself, so phones need no setup of their own. Saved changes reach the chat on your website within a few minutes, without a new snippet.

Step 3: Install the widget

The On your website panel of the chat inbox with the install code and its Copy button

The inbox's row On your website shows a JavaScript snippet with your widget token. You paste it as it is, with no build step.

  1. Copy the snippet.
  2. Paste it into the <head> section or just before the closing </body> tag of every page that should show the chat.
  3. If you use a tag manager such as Google Tag Manager, add the snippet as a Custom HTML tag instead.
  4. Open your site in an incognito window, on a computer and on a phone, and check that the chat loads.
The chat open on a phone: Fynn greets the visitor and offers 3 topics to start with

The visitor's email address

A new website live chat asks nothing before the chat: visitors write right away. An address a visitor writes in the chat is saved on their contact, also when a teammate asked for it.

  • When Fynn answers the chat, he asks for an email address only when the chat goes to your team outside your business hours, so your team can write back.
  • Without an AI bot on the inbox, nobody asks in the chat, so visitors stay anonymous unless you turn on the email step.

To get the address before the first message, pick Only the email address under Before the chat in the inbox. Do this when no AI bot answers the chat and your team cannot reply right away, so you can follow up by email.

To ask for a name, a phone number or your own questions first, pick A short form there (Startup plan and up). While it is on, it replaces the email step. Live chats you created before keep their setting.

Missed replies by email

A visitor may leave before your reply arrives. With this switch on, a visitor who does not read your reply for 20 minutes gets it by email, as long as you have their email address.

  1. Go to Settings > Inboxes and open your live chat inbox.
  2. Under After the chat, click Emails to visitors.
  3. Turn on Send missed replies by email.
  4. Under Send these emails from, choose who sends these emails.
  • Deskwoot (no reply address): nobody can reply to these emails. To answer, the visitor opens the chat on your website again.
  • One of your email inboxes: a visitor who confirmed their email address gets the emails from that inbox and can simply reply. The reply lands in their chat.

A visitor who has not confirmed their address yet gets the emails from Deskwoot's no reply address, with a Continue by email button. It opens a page where the visitor confirms with Yes, continue by email. From then on their missed replies come from your inbox, also in later chats, as long as they keep that address.

A visitor who already confirmed the address in that chat, for example with a link your team sent through Send confirmation link, gets them from your inbox right away. An address a visitor only typed in, for example before the chat or when asked in the chat, does not count as confirmed.

Continue a chat by email

When you have the visitor's email address, you can move a live chat to email yourself:

  1. Click Via email in the row with Reply.
  2. Pick an email inbox. Your next reply goes from that inbox to the visitor's address.

If the visitor has not confirmed that address, Deskwoot says so in the same place: their answers by email reach your team, but they do not show in the visitor's chat. Send a confirmation link first if the visitor should see them there.

Frequently asked questions

Does the widget work on every website builder?

Yes. WordPress, WooCommerce, Webflow, Shopify, Wix, Squarespace, plain HTML, Next.js, React, Vue: anything that lets you paste a script tag. Google Tag Manager works too.

Where the snippet goes:

  • Shopify: into theme.liquid, before </body>
  • WordPress: into your theme's footer.php or a plugin for header and footer scripts
  • Webflow: into the footer code under Custom code in the site settings
Can an AI bot answer the chat?
Yes. With an AI bot such as Fynn on the inbox, common questions get an answer right away, also when your team is offline. When the bot hands a chat over, it lands in your team's inbox with the whole conversation, so nobody has to ask the visitor again.
Does the widget use cookies?

No. For a new visitor it stores nothing until they open the chat or send a message. Once they open the chat, it notes that in localStorage (the Returning visitor condition under Messages that pop up reads it). Once they write, it keeps an anonymous visitor ID there, so they keep their history.

With Work without cookies under Cookies (Startup plan and up), the widget also leaves out localStorage and sessionStorage. The visitor is then recognized only for the current page session, and the history is not kept when the page reloads. The chat data is stored on servers in the EU (Netherlands).

Can I show the chat on some pages only?

Yes. Load the snippet only on the pages that should show the chat, or let your tag manager fire it only on those addresses.

You can also switch off Show the round chat button under Look and open the chat from your own button with window.deskwoot.open(). Under Messages that pop up you greet visitors by page address, time on the page or whether they come back.

The chat does not show. What can I check?
Check that the snippet sits in your pages as described in Step 3, and that no browser extension or ad blocker stops it from loading. Clear your cache and try an incognito window. If the chat shows but looks wrong, look for global styles on your site that change iframe or button elements.
Does the widget slow down my website?
Hardly. The loader script is about 11 KB gzipped and loads asynchronously, so it does not block your page. The chat itself runs in frames served from deskwoot.com. Placed just before the closing </body> tag, the widget loads after your main content.

Was this guide helpful?

Keep reading

Still need help?

Fynn answers from these guides in the chat, and you can reach the team there too.