> For the complete documentation index, see [llms.txt](https://docs.taptalk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taptalk.io/onetalk-omnichannel-documentation/onetalk-channel-integration/live-chat/onetalk-web/callback.md).

# Callback

<pre><code><strong>// Called when there is a case created
</strong><strong>tapliveCallback.tapliveOnCreateCase = (caseModel, fullname, email, url) => {
</strong>    // action here
}

// Called when user send a message
tapliveCallback.tapliveOnSendMessage = (message, fullname, email, url) => {
    // action here
}

// Called when LiveChat launcher is opened
tapliveCallback.tapliveOnOpen = () => {
    // action here
}

// Called when LiveChat launcher is closed
tapliveCallback.tapliveOnClose = () => {
    // action here
}
</code></pre>
