🤖 QIXS Agent - Embed Example

This page demonstrates how to embed the QIXS AI Agent widget on any website.

Quick Start

Add this single line to your website's HTML, just before the closing </body> tag:

<script src="https://your-cdn.com/qixs-embed.js?token=YOUR_ENCODED_TOKEN"></script>

Example with Token

<!-- Example: Embed QIXS Agent with agent configuration --> <script src="https://your-cdn.com/qixs-embed.js?token=eyJhZ2VudF9pZCI6IjY4ZDc5YTBkZTU4YmZjZWFmOGY0ODIyOCJ9"></script>
📝 Note: Replace YOUR_ENCODED_TOKEN with the actual token provided by your QIXS admin panel.

What Happens?

  1. The embed script extracts your token from the URL
  2. Loads React and ReactDOM from CDN (if not already present)
  3. Loads the QIXS Agent widget with your configuration
  4. Automatically mounts the widget on your page

Features

✅ Success! If you see the QIXS Agent widget (usually in the bottom-right corner), the integration is working correctly.

Testing Locally

For local development, update the CDN URL in qixs-embed.js to point to your local server:

WIDGET_CDN: 'http://localhost:5173/qixs-agent.iife.js'

Production Deployment

  1. Build the widget: npm run build
  2. Upload dist/qixs-embed.js and dist/qixs-agent.iife.js to your CDN
  3. Update the WIDGET_CDN URL in qixs-embed.js to point to your CDN
  4. Share the embed script with your users

Need Help?

Check the browser console for initialization logs and any error messages.