Guide · Chat button

How to add a chat button
to any website

You add the chat button by pasting one script line into your website's footer code. It takes a few minutes on WordPress, Wix, Squarespace, Shopify or a plain HTML page, and you do it once: later changes to the button, such as its text or its channels, need no new code.

Step by step

1. Turn the button on

In the Minerva app, tell your assistant you want chat on your website. It switches the button on, asks what the button should say, and gives you your script line.

2. Copy your script line

It looks like this, with your own business id in it: <script src="https://chat.mnrv.ai/fab.js?b=YOUR_BUSINESS_ID" async></script>

3. WordPress

Use a header and footer code plugin and paste the line into the footer section, or paste it into your theme's footer just before the closing </body> tag.

4. Wix

Open Settings, then Custom code. Add the line, apply it to all pages, and place it in Body - end.

5. Squarespace

Open Settings, then Advanced, then Code injection, and paste the line into the Footer box.

6. Shopify

Open Online Store, then Themes, then Edit code. In theme.liquid, paste the line just before the closing </body> tag.

7. Plain HTML

Paste the line just before the closing </body> tag of every page, or of the shared footer file if your site has one.

8. Check it

Open your site in a private window. The button appears in the bottom corner. If you have web chat on, write a test message and look for it in your Minerva inbox.

Good to know

On a Minerva website there is nothing to paste

Ask your assistant to put the button on the site. It adds the code and the privacy text and shows you a preview.

The button stays hidden until it has something to offer

It shows once web chat is on or at least one of Messenger, Instagram or WhatsApp is connected.

Add the privacy paragraph

Minerva gives you a short paragraph for your privacy policy that says what the button does. Paste it into your privacy page.

It follows the page language

On a page marked as Hungarian the button speaks Hungarian. You can set your own text for each language.

Frequently asked questions

Will it slow my site down?

The script loads after your page, so it does not hold up anything the visitor is waiting for.

Does it set cookies?

No. The web chat keeps a random conversation key in the browser's local storage so a returning visitor continues the same conversation.

Can I change the button's text later?

Yes, in the chat with your assistant. The site picks the new text up by itself within about ten minutes.

Do I need Messenger, Instagram or WhatsApp?

No. With web chat on, visitors write on the page and your AI assistant answers.

How do I remove it?

Switch the button off in Minerva and it disappears from the site within about ten minutes. Delete the script line whenever you like.

Want this done for you?

Set up your business in Minerva and your assistant walks you through it in a chat.