How to send message to live chat agent when user clicks on custom end chat button from chat window?

I want a message to be sent to the live agent after the user closes the chat window or clicks on end chat button which we are displaying to the user on chat window.

Hello @nishtha.goel :smiley:,

Welcome to Kore Community :clap:

You are likely using a function to trigger the end of conversation. If so, then you should be able to use the relevant Live agent API’s within that function to trigger the message to Agent.

You can refer Live Agent documentation for the APIs and events available for use.

If you are looking for a solution using our web channel, here are some topics that may help you.

You can extend the logic to suit your requirements.
Whatever payload is sent by the custom end-chat button, the BotKit can tap into that and send a relevant message to the agent.