iAdvize
Back

Send a first message the moment a shopper clicks your button

Added

Any data-iadvize-open button or link on your storefront can now do more than open the panel: it can send a first message in the same click, so a shopper lands straight into an answer instead of a blank composer.

It's opt-in. Add data-iadvize-message="…" to send exact text you choose, or add data-iadvize-auto-send to send the element's own visible text instead. Neither attribute is required: a plain data-iadvize-open button keeps behaving exactly as it does today, open only, nothing sent, so nothing changes for anything you've already installed.

A few things worth knowing: text longer than about 200 characters is trimmed at a word boundary, not mid-word; if the resolved text turns out empty, the panel still opens and nothing is sent; and every click sends, even into a conversation that's already open. If a shopper clicks again while the assistant is still replying to the previous message, the new one waits and sends right after.

A new message:sent event lets you hook into it from your own code, alongside the existing conversation:opened/conversation:closed events.

Resources