Skip to main content

Dobrik points to practical support knowledge Support operations · · 4 min read · By DobroDesk · Updated

How to add live chat to your website

Add the DobroDesk chat widget to your published site, choose the Inbox for conversations and test a message followed by a reply in the same chat.

How to add live chat to your website

To add live chat to your website with DobroDesk, create a website widget, copy its embed code and publish it on your site. You can start with chat alone. Connect a mailbox to continue replies by email. Visitors must verify their email address before you can send replies to it.

Before you change the website

You will need access to publish website changes. In a site builder, look for a site-wide custom code setting. If a developer maintains your site, give them the generated widget code and the pages where chat should appear.

Create the widget in DobroDesk

In DobroDesk settings, open Channels, then Website widgets and Add widget. Enter the name visitors should see and the website addresses allowed to load the widget. Use an origin such as https://example.com, without a page path or trailing slash. Add https://www.example.com separately if visitors also use that address.

Choose the Inbox that will receive website conversations. Activate and create the widget, then open its settings to find Widget embed code.

Add the code and publish the site

Choose Copy widget code. Paste the complete block once into the site-wide Custom code, Footer code or Body end field provided by your website editor. Keep every line and do not wrap the block in another script tag. Publish the website changes and clear its cache if it still serves the previous version.

For an application whose code you maintain, follow the programmatic installation guide. It explains initialization and the public Integration ID. Keep private credentials out of website code. If your browser reports that a Content Security Policy blocked DobroDesk, use the separate CSP instructions for your site administrator.

Send a message and reply from the Inbox

Open the published site in a private browser window. Find the support button, open the widget and send a test message. Use a distinctive message so you can find it among other conversations.

The chat shows when the team is available and where to write a message.
The chat shows when the team is available and where to write a message.

In DobroDesk, open the Inbox you selected and reply to that conversation. Return to the visitor browser and check that the reply appears in the same chat. Reload the page and confirm that you can open the same conversation again, then repeat the test on a phone. The editor preview does not check the published site.

If the widget does not work

If the support button is missing on every page, check that the widget is active, the code was published and the allowed address matches the one in the browser. If it appears on the homepage only, check which page templates load the code. When the chat appears in a private window but not in your usual browser, check that browser's cache and extensions.

If a test message went through but your team cannot find it, open the Inbox selected in the widget settings. Clear any assignee, status or channel filters and look for the exact test phrase. The troubleshooting guide covers the separate case where the chat opens but the visitor cannot send a message.

Test the website widget before launch

Check the widget's appearance, welcome message and handoff path before customers rely on it.