---
schema_version: "1"
id: 0d0da3d4275e393b8969a531b50e9e274f10f2eaed340b631d224ef33069cef5
title: Conversation New Message
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/conversationNewMessage/aura-conversation-new-message.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/aura-conversation-new-message.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: db119bcf30705fdd4cff14f5b73cf5def0a8cad2af3f928fe2236f280b81dfe9
products:
  - Lightning Component Reference
---
# Conversation New Message

**`lightning:conversationNewMessage`**

Indicates that a new message was sent by the customer.

**For Use In**

Lightning Experience

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

The `lightning:conversationNewMessage` event is triggered when the customer sends a new message. 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                                     |
| ----------- | ------------------------------------------------------------------------------------------------------------ | ------ | ------- | -------------------------------------------- |
| `content`   | The message that was sent by the customer.                                                                   | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |
| `name`      | The name of the user who sent the message. This name matches the username displayed in the conversation log. | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |
| `recordId`  | Record ID of the conversation.                                                                               | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |
| `timestamp` | The date and time that the message was received.                                                             | date   |         | ![Yes](https://developer.salesforce.com/media/check.png) |
| `type`      | The type of message that was received—for example, agent.                                                    | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |

:::::

::::::
