Widget Installation

Add the SiteAnswerAI chatbot to your website with a single line of code. The widget works on any website - HTML, React, Vue, Shopify, Webflow, and more.

Step 1: Find Your Embed Code

  1. Log in to your SiteAnswerAI dashboard
  2. Go to Settings in the sidebar
  3. Scroll down to the Embed Code section
  4. Click Copy to copy your unique embed code

Step 2: Add to Your Website

Paste the embed code just before the closing </body> tag on every page where you want the chatbot to appear.

HTML
<!DOCTYPE html>
<html>
<head>
  <title>Your Website</title>
</head>
<body>
  <!-- Your website content -->

  <!-- Add SiteAnswerAI widget before </body> -->
  <script src="https://siteanswerai.com/widget/YOUR_BOT_ID/embed.js"></script>
</body>
</html>
Tip: Replace YOUR_BOT_ID with your actual bot ID from the dashboard. It looks like cmkms0wt5000...

Platform-Specific Instructions

Shopify

  1. Go to Online Store → Themes
  2. Click Actions → Edit code
  3. Find theme.liquid in the Layout folder
  4. Paste the embed code just before </body>
  5. Click Save

Webflow

  1. Go to Project Settings
  2. Click the Custom Code tab
  3. Paste the embed code in the Footer Code section
  4. Click Save Changes
  5. Publish your site

Squarespace

  1. Go to Settings → Advanced → Code Injection
  2. Paste the embed code in the Footer section
  3. Click Save

Wix

  1. Go to Settings → Custom Code
  2. Click + Add Custom Code
  3. Paste the embed code
  4. Set placement to Body - end
  5. Choose which pages to apply it to
  6. Click Apply

WordPress

For WordPress, we recommend using our dedicated plugin for easier management.

Customization Options

You can customize the widget appearance by adding data attributes to the script tag:

HTML with options
<script
  src="https://siteanswerai.com/widget/YOUR_BOT_ID/embed.js"
  data-position="bottom-right"
  data-primary-color="#6366f1"
></script>
AttributeValuesDescription
data-positionbottom-right, bottom-leftWidget position on the page
data-primary-colorAny hex colorMain color for the widget

Step 3: Verify Installation

  1. Visit your website in a new browser tab
  2. Look for the chat icon in the bottom-right corner
  3. Click it to open the chat window
  4. Send a test message to make sure it works
Success! If you see the chat widget and can send messages, your installation is complete.

Next Steps