Skip to main content

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:
That’s it. The widget loads asynchronously — zero impact on your page performance.

Get your bot ID

  1. Open your bot in the Bothive dashboard
  2. Go to ChannelsWeb Widget
  3. Copy your Bot ID
  4. 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

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.
Add analytics: false to BothiveConfig. This disables all usage tracking and event logging.
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.

Next reads

Deploy to Channels

Telegram Bots

API Reference