The website widget
A chat bubble for your site, answered by your assistant. Make a Website key (the assistant's
Connect tab → New key → Website) and list the sites it may answer on — shop.example.com,
www.shop.example.com. Every other site is refused.
Paste this before </body>:
<script src="https://cloud.vexyline.com/v1/widget.js"
data-key="vxw_…" data-title="Help" data-color="#7B6EF6" async></script>
| Attribute | What it does |
|---|---|
data-key |
Your Website key (required). |
data-title |
The name on the bubble's window. |
data-color |
The bubble's colour. |
Each visitor gets a private conversation of their own; it continues when they come back on the same browser. The conversations are rooms on your host — read along and answer as a person when you want.
Your own interface
The widget's calls are open to your pages too (from the key's sites only, with CORS):
POST /v1/widget/{key}/conversations→{ conversation, token }POST /v1/widget/{key}/conversations/{id}/messageswithX-Visitor-Token: tokenand{ "text" }GET /v1/widget/{key}/conversations/{id}/messages?after=SEQ
The visitor token is the visitor's alone — keep it in the browser.