---
schema_version: "1"
id: 74a11c9b657031a848422905dd53c161c5bb85dfc192e5da508afd3ec4ed98bc
title: Conversation Chat Ended
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/lightning/conversationChatEnded/aura-conversation-chat-ended.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/aura-conversation-chat-ended.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2d562e574f6c61b54f914848f72341077112823cd30d36d4a1350f61171666db
products:
  - Lightning Component Reference
---
# Conversation Chat Ended

**`lightning:conversationChatEnded`**

Indicates a conversation has ended.

**For Use In**

Lightning Experience

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

The `lightning:conversationChatEnded` event is triggered when an active chat ends or an agent leaves a chat conference. This event is also triggered when using Enhanced Messaging channels. To work with Enhanced Messaging channels, the session must be active and the Enhanced Conversation Component must be visible on the page.

For more information, see [Events for Chat](https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_liveagent_events.htm) in the Salesforce Console Developer Guide.


:::::

:::::tab
## Attributes

| Name       | Description                    | Type   | Default | Required                                     |
| ---------- | ------------------------------ | ------ | ------- | -------------------------------------------- |
| `recordId` | Record ID of the conversation. | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |

:::::

::::::
