Web Widget
A floating chat widget powered by your Bothive agent — drop one script tag onto any page and you’re live.
Quick embed
Add your agent to any website in 30 seconds:Get your bot ID
- Open your bot in the Bothive dashboard
- Go to Channels → Web Widget
- Copy your Bot ID
- Toggle the widget to Active
Customization options
Full configuration example
Passing user identity
If you’re logged-in users interacting with the widget, pass their identity so the agent has scoped memory:When
userId is provided, the widget uses it as the session ID — so the agent remembers each user’s conversation history and persistent memory across visits.React / Next.js integration
Widget events (JavaScript API)
Control the widget programmatically:Privacy and GDPR
What data does the widget store?
What data does the widget store?
The widget stores a session ID in
localStorage to maintain conversation continuity. If userId is not provided, a random anonymous ID is generated. No cookies are set by default.How to disable analytics
How to disable analytics
Add
analytics: false to BothiveConfig. This disables all usage tracking and event logging.GDPR compliance
GDPR compliance
Bothive is GDPR-compliant. Data is stored in EU data centers by default. You can request data deletion via the API or dashboard for any user session.