Install the widget

One line of HTML, pasted once, before the closing body tag on every page. It takes about two minutes.

1. Get your snippet

Your dashboard's install page shows the exact line with your bot's own key already filled in. It looks like this, where the key identifies your bot:

Paste before </body>
<script src="https://helpbrain.net/w/YOUR_BOT_KEY.js" async></script>

Replace YOUR_BOT_KEY with your own key, or copy the ready-made line from the install page in your dashboard.

Open your install page

Note

The script is under 3 KB gzipped and loads asynchronously, so it never blocks your page from rendering. The chat itself is only fetched when a visitor actually opens it.

2. Paste it into your site

Pick your platform. Wherever you paste it, the snippet has to end up on every page you want the chat to appear on — which almost always means a shared footer or layout template, not one page's content.

  1. Install the free WPCode plugin

    In your WordPress admin, go to Plugins → Add New, search for WPCode, then install and activate it. This is the no-code route, and it survives theme updates — which editing a theme file does not.

  2. Add a new snippet

    Go to Code Snippets → + Add Snippet → Add Your Custom Code (New Snippet). Give it a name like HelpBrain, and set Code Type to HTML Snippet.

  3. Paste and place it

    Paste the snippet into the code box. Under Insertion, choose Auto Insert and set Location to Site Wide Footer.

  4. Save and activate

    Toggle the snippet Active and press Save Snippet. Load your site in a new tab — the bubble should be there.

Prefer to edit the theme?

Appearance → Theme File Editor → footer.php, paste just before </body>, then Update File. Use a child theme if you can: a parent-theme update will overwrite footer.php and silently remove your chat.

3. Check it worked

Two ways, depending on whether you have a dashboard open.

  1. Look at your own site

    Open your site in a private window and look at the corner you chose. The bubble appears on its own; the conversation itself is only loaded once someone clicks it, which is why the page stays fast.

  2. Use the installation check

    The install page in your dashboard has a Check installation button. It fetches your homepage from our side and looks for your bot's key.

Note

If your site is behind a firewall that blocks us, the check says it could not reach the page rather than claiming the snippet is missing — those are different problems and we do not conflate them.

Content security policy

If your site sends a Content-Security-Policy header, allow our origin in two directives. The script loads the bubble; the frame is the conversation itself, which runs on our origin so nothing about it can touch your page.

Content-Security-Policy:
  script-src 'self' https://helpbrain.net;
  frame-src  'self' https://helpbrain.net;

You do not need a connect-src entry. The chat makes its network calls from inside the frame, under its own origin, not from your page.

If it does not appear

The usual causes are a page cache that has not expired yet, a snippet that landed in one page's content rather than the shared template, or a policy blocking our origin. Each of those, and the rest, has a fix here:

Troubleshooting