CMS & EmbedsBeginner4 min read

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

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

Will the widget slow down my website page speed score?

No. SiteMind is an ultra-lightweight ~24kb vanilla TypeScript bundle that loads asynchronously (`async` / `lazyOnload`) and never blocks page rendering.

Can I customize the colors, logo, and launcher position?

Yes! Everything can be styled in Dashboard > Widget Settings: colors, launcher icon, custom avatar, welcome pills, and lead capture forms.

Live in 2 minutes

Ready to put this recipe to work?

Start your 3-day free trial on SiteMind. Connect your website URL, test grounded answers in our interactive playground, and deploy on your site with zero coding.

3-day full-access trialNo credit card required1:1 transparent credits