Integration Guide

WordPress & Shopify Embed Guide

Add HoverBot to your WordPress site or Shopify store with a single snippet or native plugin in under 10 minutes.

What You Need

  • HoverBot workspace ID (found in your dashboard under Settings → Embed)
  • Admin access to your WordPress or Shopify store
  • 5-10 minutes for setup and verification

Universal Snippet Method

The fastest way to deploy HoverBot on any platform. Copy the embed snippet from your dashboard and paste it before the closing </body> tag.

<!-- HoverBot Widget -->
<script
  src="https://widget.hoverbot.ai/loader.js"
  data-workspace-id="YOUR_WORKSPACE_ID"
  async
></script>

The script is async and weighs under 15 KB gzipped. It does not block page rendering.

WordPress Setup

Option A: Plugin (recommended)

  1. Go to Plugins → Add New in your WordPress admin
  2. Search for "HoverBot" and install the official plugin
  3. Activate the plugin and enter your Workspace ID in Settings → HoverBot
  4. Save and verify the widget appears on your site

Option B: Manual snippet

  1. Go to Appearance → Theme File Editor (or use a header/footer plugin)
  2. Open footer.php or your theme's footer template
  3. Paste the embed snippet before </body>
  4. Save and verify

Theme compatibility

The widget works with all major WordPress themes including Astra, GeneratePress, Divi, Elementor, and block themes. It positions itself as a fixed overlay and does not interfere with theme layouts.

Shopify Setup

Method: Theme snippet

  1. Go to Online Store → Themes in your Shopify admin
  2. Click "Edit code" on your active theme
  3. Open theme.liquid (or your layout file)
  4. Paste the embed snippet before </body>
  5. Save and preview your store to verify the widget loads

Shopify-specific features

  • The widget automatically detects Shopify product pages and can provide product-specific answers when connected to your knowledge base
  • Cart context can be passed via data attributes for conversational commerce flows
  • Works with Shopify Online Store 2.0 themes and classic themes

Customization Options

<script
  src="https://widget.hoverbot.ai/loader.js"
  data-workspace-id="YOUR_WORKSPACE_ID"
  data-position="bottom-right"
  data-primary-color="#7C3AED"
  data-greeting="Hi! How can I help you today?"
  data-language="en"
  async
></script>
AttributeOptionsDefault
data-positionbottom-right, bottom-leftbottom-right
data-primary-colorAny hex color#7C3AED
data-greetingCustom greeting textHi! How can I help?
data-languageISO 639-1 codeen

Verification Checklist

  • Widget bubble appears on all pages (or only specified pages if configured)
  • Opening the widget shows your configured greeting message
  • Typing a question returns a knowledge-base-grounded response
  • Widget does not block page content or interfere with navigation
  • Mobile viewport shows the widget correctly positioned and responsive