Website widgets
Widgets live in the panel under Website chat (sidebar or Products). You create the widget, copy one line of code and paste it into your website before the closing </body> tag. Anything you change later in the panel applies to the website without pasting the code again.
The three types
| Widget | What it does | Script |
|---|---|---|
| Website chat | Real-time conversation with bot and agents. Every conversation becomes a ticket. | widget-live-chat.js |
| WhatsApp button | Floating button that opens a conversation on your number, with agents, business hours and tracking. | whatsapp-floating.js |
| Lead form | A form on the website that becomes a contact and a ticket in the panel. | form-widget.js |
How to create one
- In the panel, open Website chat and click New widget.
- Pick the type.
- Enter a name and the website address (for example
https://mysite.com). Chat and form accept an incoming department; the WhatsApp button asks for the number. - Copy the code and paste it into the website. It is a single line:
<script src="https://widget.sendeasy.pro/widget-live-chat.js" data-token="YOUR_TOKEN" data-backend-url="https://backend.sendeasy.app" defer></script>
Replace widget-live-chat.js with whatsapp-floating.js or form-widget.js depending on the type. The panel already generates the right code with your token.
Allowed websites
The widget only opens on pages of the addresses listed under Allowed websites (subdomains of the first address also count). Pages outside the list get ERR_WIDGET_ORIGIN_NOT_ALLOWED and nothing shows up. To test on another address, add it to the list.
Token
The token identifies the widget. It sits in the installed code, so never publish it in open repositories. To replace it, use Generate new token in the widget detail and paste the new code into the website.
Turning it off without removing the code
The Widget active switch in the detail turns the widget off on the website immediately, without touching the installed code.
Legacy Chat Widget
The Chat Widget based on integration tokens (sendeasy-widget-chat-dev.js) was replaced by the website chat and is no longer maintained. Websites still using it keep working, but the recommendation is to migrate by creating a new website chat in the panel.