<iframe> served from Layerup’s infrastructure. You embed it with a script tag and it self-renders a floating bubble in the bottom-right corner. No build step, no npm package — it works on any page.
Prerequisites
Before embedding, go to your company’s Integrations page in the Layerup dashboard and create or open your Chat Widget integration. Inside that integration you manage your widget instances (one per brand, product, or colour scheme). Each instance has its own embed key — a UUID that you pass to the script tag.Basic embed
Copy the snippet from the dashboard for the widget instance you want to embed, and paste it before the closing</body> tag on any page.
Replace
YOUR_WIDGET_ID with the UUID shown in the dashboard for the specific widget instance. Each widget instance has a different ID — don’t mix them up.Multiple widget instances
If you have more than one product or brand, create a separate widget instance for each in the dashboard. Each gets its own ID and colour scheme. Embed them on different pages using the corresponding ID — there’s no other configuration required.Triggering the widget from your own code
After the script loads it exposeswindow.__layerupWidget with two methods: open() and close(). This lets you trigger the widget from any button or workflow in your own code instead of using the default floating bubble.
Mobile webview
On mobile apps, instead of embedding the script, load the widget URL directly in a nativeWebView:
- iOS (Swift)
- Android (Kotlin)
- React Native

