Connect Web Embed with Verabase

Generate a custom chat widget code snippet to deploy Verabase agents on any website with whitelists and branding.

What it does

The Web Embed channel provides a lightweight, highly customisable HTML/JavaScript chat widget. Once deployed on your website, it allows visitors to interface directly with your Verabase AI agents, resolving queries using your self-healing knowledge base RAG index.

Data Flow & Security

Widget client communications utilize secure WebSocket channels to stream replies:

Scope & Limits

Setup guide

Estimated setup time: ~5 minutes. Authentication type: Secure client token key and domain whitelist constraints. Developer level access to target web server required.
1

Access Deployed Channels

Navigate to AI Agents, click your agent, go to Deploy, and select Web Embed.

2

Design Widget Appearance

Modify colors, sizing dimensions, welcome messages, trigger offsets, and profile pictures. Changes are previewed live in the settings window.

3

Whitelist Target Domains

Input your site's domains (e.g. https://example.com) under the Whitelist inputs. Click save to store CORS boundaries.

4

Inject the script

Copy the generated code snippet and paste it right before the closing </body> tag on your target HTML pages. The widget will display instantly on page load.

Where it shows up

Troubleshooting & Common Issues

Frequently asked questions

Can I customize the design of the chat widget?
Yes, you can customize colors, fonts, avatar images, and launch button positions directly from the dashboard or via CSS variables.
Does the web embed support localization/multiple languages?
Yes, the widget automatically detects the user's browser language and displays the appropriate translated interface.
Is the web embed accessible (WCAG compliant)?
Yes, the Verabase chat widget is fully keyboard-navigable and supports screen readers in compliance with WCAG 2.1 AA guidelines.

Related integrations

Ready to deploy your widget?

Join the waitlist for early access to the self-healing knowledge platform.

Get early access to Web Embed deployment