AI-Powered Conversational Assistant
Cloudflare Pages CDNTry the SMI Chat web component below. This is a fully functional AI chat interface powered by the SMI agent, deployed via Cloudflare Pages CDN.
Add the SMI Chat component to your website in three simple steps:
<script src="https://smi-chat.pages.dev/smi-chat.umd.js"></script>
<smi-chat chat-url="https://your-smi-agent.com/chat" intro="How can I help you today?"> </smi-chat>
<style>
smi-chat {
--bg-primary: #ffffff;
--btn-bg-primary: #667eea;
width: 100%;
max-width: 600px;
height: 600px;
}
</style>
Complete style isolation - won't interfere with your existing CSS
SSE-powered streaming for instant AI responses
XSS protection with DOMPurify and HTTPS enforcement
Deployed on Cloudflare's network for sub-100ms latency
Works perfectly on desktop, tablet, and mobile devices
Just drop in - no React, Vue, or framework required
Available attributes for the <smi-chat> element:
| Attribute | Required | Description |
|---|---|---|
chat-url |
✅ Yes | URL of your SMI agent chat endpoint |
intro |
❌ No | Welcome message shown to users |
pre-prompt |
❌ No | System context for the AI assistant |