Conversation New Message
lightning:conversationNewMessage
Indicates that a new message was sent by the customer.
For Use In
Lightning Experience
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 in the Salesforce Console Developer Guide.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
content | The message that was sent by the customer. | string | ![]() | |
name | The name of the user who sent the message. This name matches the username displayed in the conversation log. | string | ![]() | |
recordId | Record ID of the conversation. | string | ![]() | |
timestamp | The date and time that the message was received. | date | ![]() | |
type | The type of message that was received—for example, agent. | string | ![]() |
