|
/ Documentation /Getting Started/ Installing the Chat Widget on Your Website

Installing the Chat Widget on Your Website

Add your bot to any website: WordPress, Shopify, Webflow, Wix, Squarespace or a custom site.

Before you start

  1. Open your bot and click Install at the top right, or open the Chat Bot tab and scroll to Widget Embed.
  2. Make sure Enable Widget is on. When it’s off, the widget doesn’t appear on any site.

Any website (standard code)

  1. Under Embed Code, keep Standard selected and click Copy. The code already includes your bot ID.
  2. Paste it just before the closing </body> tag, or into your site builder’s footer or custom code setting so it loads on every page. In Shopify, paste it into theme.liquid just before </body>.
Embed code

The code looks like this. Always copy it from your dashboard so the bot ID is correct:

<script src="https://app.surereplies.com/js/embed.js" data-bot-id="YOUR_BOT_ID" defer></script>

WordPress

Under Embed Code, click WordPress and copy the snippet. Paste it into your active theme’s functions.php, or into a custom site plugin or code snippets plugin. It loads the widget in the footer of every page.

A dedicated SureReplies WordPress plugin is coming soon. Until then, use the snippet above.

Advanced: raw iframe

Need the chat inside a page rather than as a floating button? Copy the Widget URL (advanced, raw iframe) and use it as an iframe source.

Check that it’s working

  • Open your website. The chat button appears in the corner you chose.
  • Connected Sites on the Chat Bot tab lists every domain the bot is installed on, through the embed script or the WordPress plugin. A site appears automatically on its first visit.
  • Use Check installation to test a page address.
Widget URL and Connected Sites

Hide the chat on some pages

Use Exclude widget on specific pages in Widget Embed to hide the chat button on pages such as checkout. Install the widget first: it connects on the first visit, and then you can pick pages here.

Share a chat link

Click the share icon (Copy bot link) at the top of your bot’s page to copy a direct link to the chat. Use it in emails, your help center or social posts.

Troubleshooting

  • The button doesn’t appear: check that Enable Widget is on, that the page isn’t excluded, and that the code is on the page (view the page source and search for embed.js). Clear your site’s cache.
  • The chat doesn’t load: if your site has a cookie banner, accept all cookies and refresh. Declined cookies can stop the chat from loading.
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top