Join us as we make chatbots truly conversational

Documentation

Everything you need to integrate KeyAI into your website

Last updated: Jan 25, 2026

Quick Start

Get KeyAI up and running on your website in less than 2 minutes. Simply copy the script code and paste it into your website's HTML.

Installation Script
<script type="text/javascript">
(function(){
  d=document;
  s=d.createElement("script");
  s.src="https://keyai.net/api/chatbots/YOUR_ACCOUNT_ID";
  s.async=1;
  d.getElementsByTagName("head")[0].appendChild(s);
})();
</script>
Replace YOUR_ACCOUNT_ID

You can find your unique Account ID in the KeyAI Dashboard under Settings → Script Code.

WordPress Integration

Add KeyAI to your WordPress site using the Custom HTML widget.

Step 1: Copy Your Script Code

KeyAI Dashboard

Navigate to your KeyAI Dashboard and copy the script code.

Step 2: Add Custom HTML Widget

WordPress Custom HTML

In WordPress, add a Custom HTML block and paste your script code. The chatbot will appear in the bottom right corner.

Shopify Integration

Integrate KeyAI into your Shopify store using Custom Liquid.

Step 1: Copy Script Code

Copy Script Code

Get your script code from KeyAI Dashboard

Step 2: Open Theme Customizer

Open Theme Customizer

Go to Online Store → Themes → Customize

Step 3: Add Custom Liquid

Add Custom Liquid

Click Add Section → Custom Liquid under Footer

Step 4: Paste Script Code

Paste Script Code

Insert your script in the Custom Liquid box and Save

Step 5: Done!

Done!

Your chatbot is now live on your Shopify store

Next.js Integration

Add KeyAI to your Next.js application using the Script component.

// app/layout.tsx or pages/_app.tsx
import Script from 'next/script'

export default function Layout({ children }) {
  return (
    <>
      <Script
        src="https://keyai.net/api/chatbots/YOUR_ACCOUNT_ID"
        strategy="afterInteractive"
      />
      {children}
    </>
  )
}

React Integration

Add KeyAI to your React application using useEffect hook.

// App.js
import { useEffect } from 'react';

function App() {
  useEffect(() => {
    const script = document.createElement('script');
    script.src = 'https://keyai.net/api/chatbots/YOUR_ACCOUNT_ID';
    script.async = true;
    document.head.appendChild(script);

    return () => {
      document.head.removeChild(script);
    };
  }, []);

  return (
    // Your app content
  );
}

Webflow Integration

Add KeyAI to your Webflow site using Custom Code.

  1. Go to your Webflow Project Settings
  2. Navigate to Custom Code tab
  3. Paste the script code in the Footer Code section
  4. Publish your site

Need Help?

Our support team is here to help you get started

Contact Support