AI Assistant Demo

Embed a floating AI chat assistant on any website with just two script tags.

How it works

The client pastes two script tags on their website. The first sets the configuration (clientId, mode, styling options). The second loads the widget script. That's it — a floating chat icon appears and users can interact with the AI assistant.

Embed code

Copy and paste this snippet into your website. Customize the clientId, icon color, position, and behavior to match your brand.

<script> window.ZendyConfig = { clientId: "zendy", mode: "assistant", // apiBaseUrl: "https://api.b2b.zendy.io", // optional, override API // iframeBaseUrl: "https://admin.b2b.zendy.io/iframe", // optional, override iframe assistant: { position: "bottom-right", // "bottom-right" | "bottom-left" iconColor: "#F4B223", // hex color for the floating icon showOnLoad: false, // false | "desktop" | "all" showFullscreenButton: true // floating expand button }, // iframe: { // optional dimension overrides // maxWidth: 500, // panel width (number or string) // maxHeight: 600 // panel height (number or string) // } }; </script> <script src="https://admin.b2b.zendy.io/zendy-loader.js" async></script>

Configuration Reference

All available ZendyConfig options for assistant mode:

OptionTypeDescription
clientIdstringRequired. Your client identifier.
mode"assistant"Required. Set to "assistant" for floating chat.
apiBaseUrlstringOptional. Override the API base URL.
iframeBaseUrlstringOptional. Override the iframe base URL.
assistant.positionstringOptional. "bottom-right" or "bottom-left" (default: "bottom-right").
assistant.iconColorstringOptional. Hex color for the floating chat icon (default: "#3b82f6").
assistant.showOnLoadfalse | "desktop" | "all"Optional. Auto-open the chat panel on page load. "desktop" opens only on screens ≥ 768px. "all" opens on any device. (default: false).
assistant.showFullscreenButtonbooleanOptional. Show fullscreen toggle inside the panel.
iframe.maxWidthnumber | stringOptional. Max width of the assistant panel.
iframe.maxHeightnumber | stringOptional. Max height of the assistant panel.

Sample page content

This area represents the client's actual website content. The floating chat icon in the bottom-right corner is injected by the embed script above. Click it to open the Zendy AI assistant.