Last updated:
Your own welcome message per button
The JavaScript SDK can now open the chat with a welcome message you pass in. A “Book a free inspection” button and a “Chat now” button can share one agent and still open with different messages.
- NewIntoChat.open({ welcome: "…" }) opens the chat with your text. Before the visitor writes, it takes the place of the agent’s welcome messages; in a chat already under way, it is added after the last message.
- NewThe agent sees the message like its own welcome, so it understands the visitor’s answer, and the message is saved with the conversation, so your dashboard shows what the visitor saw.
- ImprovedIt works with IntoChatQueue too, also when a button loads the chat script only on the first click.
A welcome is a text, or up to three for several bubbles, each up to 500 characters of plain text. It is shown exactly as written, so write it in your page’s language.
To have the agent follow up, for example ask for the address or offer times from your booking calendar, say so in its instructions. The JavaScript SDK docs have a ready-made two-button example.