Site navigation and cart
The chat can move around your site and use it for the visitor. A shopper can go from “show me a black t-shirt” to the product page, have a size picked, the product put in the cart and the cart or checkout opened, all from the chat. It works on any site and platform and needs no setup. Signing in, addresses and payment stay with the visitor.
What happens without any code
Section titled “What happens without any code”- Links to your own site open in the same tab. That covers product cards, link buttons and links in answers. Links to other sites, clicks with ⌘ / Ctrl / Shift or the middle button, and downloads still open the way the browser normally does.
- The chat stays open across pages. The panel reopens with the same conversation on the next page. On phones and in full-screen mode it closes after a clicked link so the page is visible; the chat button brings it back.
- The assistant can open a page of your site, read what is on the page it is on, choose an option (size, colour, quantity) and press a button.
What it will and will not do
Section titled “What it will and will not do”| The assistant | |
|---|---|
| Opens pages on your own domain | Yes. Other sites are refused. |
| Chooses an option in a picker | Yes, without asking. |
| Presses Add to cart | Yes, without asking. |
| Presses any other button (checkout, remove, cancel, …) | Only after the visitor approves it in the chat. |
| Types into your page | No. Text fields are never read or filled. |
| Uses a sign-in or payment form | No. Forms with a password or card field are refused. |
Add to cart is recognised by the button’s label (“Add to cart”, “Add to bag”, “Sepete ekle”, “In den Warenkorb”, …), by an add-to-cart class, id or data attribute, or by a form that posts to /cart/add. If your button matches none of these the visitor is asked to approve the press like any other button.
Single-page apps
Section titled “Single-page apps”By default a page is opened with a full page load. If your site has its own router, take over and route yourself. Return true from onNavigate:
window.HelpvaneWidget.mount({ // … onNavigate: ({ url, source }) => { router.push(new URL(url).pathname); return true; },});or, independent of load order, cancel the window event:
window.addEventListener('helpvane:navigate', (event) => { event.preventDefault(); router.push(new URL(event.detail.url).pathname);});source is link when the visitor clicked a link in the chat and assistant when the assistant opened the page. window.Helpvane.on('navigate', handler) only listens; it cannot cancel.
Your own cart or navigation code
Section titled “Your own cart or navigation code”Anything you register takes priority over the built-in behaviour:
- An
addToCarthandler (Host callbacks) adds to your cart directly instead of pressing the page’s button. - A client tool or
registerToolhandler namedopenPage,readPageorusePageControlreplaces the built-in tool of that name.
Turning it off
Section titled “Turning it off”- One capability: add
openPage,readPageorusePageControlto Settings → Classification → Tools to disable. - Everything, in the React component:
<ChatWidget navigation={false} />. - Native apps and app mode do not have it.
Good to know
Section titled “Good to know”- The assistant sees the first part of the page’s main text, its menus and links, and up to 40 buttons and pickers. Very long pages are cut short.
- A disabled button (for example Add to cart before a size is chosen) is not pressed; the assistant asks the visitor for the missing choice first.
- The
capabilitiesfield on the chat request is how the chat tells the service it can do this. API callers that do not send it never get these tools.