Widget
Installation

Widget Installation

A single JavaScript file (~20KB) that loads asynchronously on any website.

Basic Installation

<script src="https://app.resolvebot.io/widget.js" data-org-id="YOUR_ORG_SLUG" async></script>

Platform-Specific Instructions

Paste the script tag before the closing body tag.

Data Attributes

AttributeDefaultDescription
data-org-idRequiredYour organization slug
data-color#2563EBPrimary color (hex)
data-positionbottom-rightWidget position
data-langfrLanguage: fr or en

JavaScript API

ResolveBot.open()     // Open the widget
ResolveBot.close()    // Close the widget
ResolveBot.identify({ email: 'john@example.com', name: 'John' })

ResolveBot.identify() pre-fills the customer's info and skips the pre-chat form. Use it for logged-in users.