Skip to main content
Add Replyful chat to your website with one snippet. You paste it once; the layout, launcher and colours are set in the dashboard and reach your site without another code change.

Get your embed code

  1. Go to your Replyful dashboard
  2. Open Channels → Chat and pick your chatbot
  3. Open the Embed tab and copy the code snippet
The tab has two versions of the snippet: Code snippet for your website’s HTML and Google Tag Manager for a GTM tag. They do the same thing.

Add to your website

Paste the snippet before the closing </body> tag, or anywhere in <head>. It waits for the page to load before it fetches the chat, so it never slows your page down.

Add with Google Tag Manager

  1. In Google Tag Manager, create a tag of type Custom HTML
  2. Paste the Google Tag Manager snippet from the Embed tab
  3. Trigger it on All Pages (or the pages that should show the chat) and publish
The GTM snippet supports only the call form of the JavaScript API, replyful('open'), until the chat has loaded.

Choose a layout

Pick the layout on the same Embed tab. The change reaches your site within a minute, with no code change.

Content Security Policy

If your site sends a Content Security Policy, allow Replyful’s chat domain:
The snippet itself is an inline script, so also allow it with your nonce or its hash. style-src needs nothing extra: the widget works under a policy without 'unsafe-inline'. Only browsers older than Safari 16.4, Chrome 73 or Firefox 101 need 'unsafe-inline' in style-src to style the widget.

Controlling the widget

You can open, close and listen to the chat from your own code:
These calls work at any time, even before the chat has loaded. See the JavaScript API for every command and event.

Next steps

JavaScript API

Open the chat from your own buttons, react to events and identify users.

Place the chat in your layout

Show the chat as a side panel or full page inside your own product.

User identification

Link conversations to logged-in users in your system.