Get your embed code
- Go to your Replyful dashboard
- Open Channels → Chat and pick your chatbot
- Open the Embed tab and copy the code snippet
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
- In Google Tag Manager, create a tag of type Custom HTML
- Paste the Google Tag Manager snippet from the Embed tab
- Trigger it on All Pages (or the pages that should show the chat) and publish
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: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: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.