`}

2. Configure with data attributes

3. Identify users (optional)

If you know who's logged in, tell Praatbox — replies get personalized and analytics get richer.

{`Praatbox.identify({
  id: "u_482",
  email: "anouk@glodinas.nl",
  plan: "professional"
});`}

4. Listen for events

The widget fires events for opens, messages, and handoffs. Wire them into your analytics.

{`Praatbox.on("handoff", (conv) => {
  analytics.track("chat_handoff", conv);
});`}

5. Style it

The widget renders in a shadow DOM — your site's CSS can't accidentally bleed in. Use the dashboard to change color, position, greeting, and avatar.

Frameworks

Drop-in guides for popular setups:

) });