Hi! conversationEnded is triggered when the conversation with the bot ends. Can you please confirm that the chat really ended (meaning that the window is not just closed in the middle of interaction)?
If you’re still having difficulties with it, can you please record a similar video showing your code and console output? You can also contact Pipedrive customer support who can escalate the issue, if needed.
Thanks for your patience. I’ve gotten information from the owners of this feature that it indeed looks like a bug: The event was not implemented for live chat and works only for a chatbot - it is not triggered in case when live chat is closed from Pipedrive side.
The team is working on a fix and I will post an update here when it’s done.