Skip to content

How to Embed AI Chat in Shopify, WordPress, Webflow, and Framer

CMS & Embeds·Beginner·4 min read

Complete copy-paste recipes for embedding the SiteMind AI assistant in Shopify, WordPress, Webflow, Framer, Wix, Squarespace, React, and Next.js in 2 minutes.

What you will achieve

  • Live AI assistant widget running on your website in under 2 minutes
  • Zero style conflicts thanks to Shadow DOM encapsulation
  • Fully responsive chat on mobile and desktop devices

Prerequisites

  • Your SiteMind Widget ID from Dashboard > Install
  • Admin access to your CMS or website template
01

Shopify Installation (Theme Liquid or App Embed)

In Shopify Admin, go to Online Store > Themes > Edit Code. Open `layout/theme.liquid`, scroll to the bottom, and paste the SiteMind script snippet right before the `</body>` tag. Click Save.

layout/theme.liquidliquid
<!-- SiteMind Shopify Embed -->
<script
  src="https://sitemind.tech/widget.js"
  data-widget-key="YOUR_WIDGET_KEY"
  async
></script>
02

WordPress Installation (Header & Footer Scripts / Elementor)

In WordPress Admin, install any header/footer plugin (e.g. WPCode) or open Theme File Editor > `footer.php`. Paste the SiteMind snippet before `</body>` and save. Alternatively, add an HTML block in Elementor or Divi global footer templates.

WordPress WPCode / footer.phphtml
<script
  src="https://sitemind.tech/widget.js"
  data-widget-key="YOUR_WIDGET_KEY"
  async
></script>
03

Webflow Installation (Project Custom Code)

In Webflow, open Project Settings > Custom Code. In the "Footer Code" (Before </body>) text area, paste the SiteMind snippet. Click Save Changes and Publish your site.

04

Framer / Next.js / React Installation

For Framer, open Site Settings > General > Custom Code > End of <body>. For Next.js App Router, add the script to your root `layout.tsx` using `next/script`.

app/layout.tsxtsx
import Script from 'next/script';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script
          src="https://sitemind.tech/widget.js"
          data-widget-key="YOUR_WIDGET_KEY"
          strategy="lazyOnload"
        />
      </body>
    </html>
  );
}

Frequently asked questions

Test it on your own website in under 2 minutes.

Enter your domain to index your pages and preview live answers.

https://
No credit card required2-minute automated setupEmbed with one line