Load it with the command queue
If your code callswiredesk(…), use this version of the snippet. The stub queues any call made before the script has loaded and the script replays them, so a button wired to wiredesk("open") works on the first click.
Commands
Events
message never fires for the visitor’s own messages, the greeting, or earlier messages shown again after a page load. See Events for when each event fires and more recipes.
Signing out
reset makes the widget anonymous again and clears the conversation, the list of recent chats and the anonymous visitor id stored in this browser. If the panel is on the page it reloads straight away. If it is not, the next panel to load clears them first, even on a later page, so it is safe to call reset and redirect immediately. The conversation itself is kept, and you can still find it in the dashboard.
The object form
Once the script has loaded,window.WireDesk exposes the same methods directly, plus a few getters:
wiredesk(…) form for anything that might run before the script arrives.
Without JavaScript
Any element with one of these attributes controls the widget on click:data-wiredesk-open opens the panel with that question already typed in. A link to #wiredesk (<a href="#wiredesk">) opens the panel too.