Search docs

Find a docs page

DeployInstall the widget

Deploy

Install the chat widget on your website

This page shows you how to install the chat widget on your website with one line of code, check it's working, and choose which sites may load it. You can also share a hosted chat page that needs no code at all.

You need an agent that has read your website (the Quickstart takes a few minutes) and a way to edit your site's HTML or theme. Only owners and admins can change the allowed domains; members can view them.

Add the script

  1. Open your agent and go to Website widget (under Install in the sidebar).
  2. In Install on your website, pick how you build your site: Script tag, iframe, React, Next.js or WordPress.
  3. Copy the code. Your agent key is already in it.
  4. Paste it on every page, just before the closing </body> tag. Most site builders have a "custom code" or "footer code" box for this.
  5. Publish your site.
The script tag looks like this
<script src="https://replybash.com/embed.js" data-agent-id="your-agent-key" defer></script>

You only paste it once. Changes you make in the dashboard later reach your site by themselves.

The iframe option puts the chat inside a page, such as your contact page, instead of a floating button. For WordPress, the WordPress plugin adds the widget without code. Step-by-step guides for Shopify, Wix, Webflow, Squarespace and more are on the install guides page.

Check it is detected

Open any page of your site that has the script, then reload Website widget. The badge at the top of the install card changes from Not detected yet to Detected on your domain, with the time it was last seen.

The Chat bubble row on Channels shows the same thing. Only your own domains count: a visit from your computer's localhost or from the dashboard doesn't.

Customize how it looks

Colours, logo, greeting, starter questions, the round button or ask bar, auto-open and which pages show the chat are all set on the Appearance page (under Configure), next to a live preview. Customize your chat widget walks through every option.

Allowed domains

The widget only loads on the sites you allow, so nobody can put your agent on their own site and use your credits.

  1. Go to Website widget and find the Access card.
  2. Under Allowed domains, type a domain such as shop.example.com and press Enter. Your agent's own website is always allowed. Each domain includes its www. version, and *.example.com covers every subdomain.
  3. Leave Allow localhost on if a developer tests the site on their own computer first. Chats there use your credits.
  4. Click Save.

The hosted chat page

Every agent also has its own chat page, with no code to install. Share its link in emails, social bios and on printed QR codes.

  1. Go to Channels and find Hosted page under On your website.
  2. Check the switch is on. It is unless you turned it off; when it's off, the address doesn't open and its chats are refused.
  3. Click Edit to change the address, then Save address. Use 3 to 40 lowercase letters, numbers and hyphens. The old address stops working at once.
  4. Use the buttons beside the address to copy the link, show its QR code (Download PNG for print) or Open it.

The page uses the same title, logo and colours as your widget.

If the widget doesn't appear

Check that the code is on the page, that your domain is under Allowed domains, and that Appearance › Pages doesn't hide the page. Troubleshooting has the full checklist, including caching plugins and Content Security Policy.

Still stuck? Try the hosted page from Channels: if the agent answers there, the problem is on your site, not in your agent.