Troubleshooting the chat widget
This page helps you fix a chat widget that doesn't show up or doesn't work on your website: a missing install code, a domain that isn't allowed, page rules, caching plugins, a strict Content Security Policy, and cookie banners.
Start with your browser's developer console (right-click the page, Inspect, then Console). The widget writes a short warning there when it can't start, and most fixes below match one of those warnings.
Check the code is on the page
View the page's source and search for embed.js. The script tag must be there, with your agent key in data-agent-id. If the console says to add data-agent-id, the attribute is missing or was stripped by your editor.
Copy the code again from Website widget if in doubt, and paste it on every page, just before </body>. Your site builder's "footer code" or "custom code" box usually does this for every page at once.
Allow your domain
If the console says the website isn't on the agent's allowed domains, the widget is refusing to load there, so nobody can put your agent on a site you don't own.
- Go to Website widget and find the Access card.
- Add the domain under Allowed domains (a domain includes its
www.version;*.example.comcovers every subdomain), then click Save.
A staging site or a second domain needs its own entry. For testing on your own computer, leave Allow localhost on.
Check page rules and the agent
- Pages: in Appearance › Pages, make sure the page isn't hidden by an All except… or Only… rule, then click Publish changes.
- Paused agent: an agent over your plan's number of agents shows Paused: over your plan’s agents in the agent switcher, and its widget stays hidden until you upgrade or remove an agent.
- Hidden from code: if your own code calls
replybash("hide"), the button stays hidden until it callsreplybash("show").
If the hosted page from Channels answers but your site shows nothing, the problem is on your site, not in your agent.
Caching and speed plugins
Plugins that combine, minify or delay JavaScript (common on WordPress, and in tools like Cloudflare Rocket Loader) can break the script or load it so late that it seems missing.
- Exclude
embed.jsfrom combining, minifying and "delay JavaScript" settings. - Clear your site's cache and any CDN cache, then reload the page in a private window.
If the console says the page keeps removing the chat, a script or theme on your site is deleting the widget's element. The widget stops adding itself back; use replybash("hide") if you want it hidden, or find the script that removes it.
Content Security Policy
If your site sends a Content-Security-Policy header, it has to allow the widget. The widget loads its script from our domain, fetches its settings from there, and runs the chat in an iframe from there. Add our address to these directives (keep everything else you already have):
script-src https://replybash.com
connect-src https://replybash.com
frame-src https://replybash.com
style-src 'unsafe-inline'
The round button and popup are styled with a small inline style block, so style-src needs 'unsafe-inline'; most sites already allow it. Without it the button can appear unstyled.
A blocked resource shows in the console as a "Refused to load" or "Refused to frame" message naming the directive to change.
Voice and the microphone
Voice calls run inside the chat's iframe and need the microphone. If your site sends a Permissions-Policy header that turns the microphone off, such as microphone=(), visitors can't start a call. Allow it for our domain instead:
Permissions-Policy: microphone=(self "https://replybash.com")
Browsers also ask each visitor for permission the first time, and only on https pages. See Voice.
Cookie banners and consent
The widget keeps a random visitor ID in the browser's local storage, so a returning visitor's chat stays theirs, and the open conversation in session storage. It also loads product analytics. Our cookie policy lists it all; describe it in your own cookie notice and ask for consent where the law requires it.
If your consent tool blocks scripts until a visitor accepts, add embed.js to the category you want it in. The chat then appears once the visitor accepts that category.