Title: API or actions when users srtars and ends chat
Last modified: February 18, 2020

---

# API or actions when users srtars and ends chat

 *  [Edwin Xico (XicoOfficial)](https://wordpress.org/support/users/xicoofficial/)
 * (@xicoofficial)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/api-or-actions-when-users-srtars-and-ends-chat/)
 * I would like to track the time in wich users is interacting using the chat.
 * Is there a filter or function that is triggered when users start chatting and/
   or when they closes the chat window?
 * That would be very helpfull.

Viewing 1 replies (of 1 total)

 *  Plugin Author [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * (@wp3cx)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/api-or-actions-when-users-srtars-and-ends-chat/#post-12449353)
 * Hi [@xicoofficial](https://wordpress.org/support/users/xicoofficial/)!
 * You can use our “Webhooks” feature to partially achieve that. You can create 
   a “**Chat Request**” and/or “**Agent Accept**” event and set a URL handler which
   will receive a GET/POST request once that even has fired. This way you can do
   any action you want with your handler endpoint whenever a request is received.
 * You can find “**Webhooks**” in the Live Chat menu after “Custom Fields”.
 * We will be adding an “End Chat” Webhook soon (most probably in the next release)!
   🙂

Viewing 1 replies (of 1 total)

The topic ‘API or actions when users srtars and ends chat’ is closed to new replies.

 * ![](https://ps.w.org/wp-live-chat-support/assets/icon-256x256.png?rev=2405258)
 * [3CX Free Live Chat, Calls & Messaging](https://wordpress.org/plugins/wp-live-chat-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-live-chat-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-live-chat-support/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-live-chat-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-live-chat-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-live-chat-support/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/api-or-actions-when-users-srtars-and-ends-chat/#post-12449353)
 * Status: not resolved