Initializing a message from a client and widget methods

Initializing a message from a client

Method for sending messages to the widget with its opening-creating a chat: window.usedeskMessenger.sendMessage

Widget methods

messageThe text that will be sent to the widget on behalf of the current client

If you require to fill email before opening chat, the system will wait until the chat window opens and immediately send a message.

Request example
window.usedeskMessenger.sendMessage({message:"Any text"})