Newer Version Available
lightning:conversationAgentSend
Messaging event triggered when an agent
sends a message through the Salesforce console. This method intercepts the message
before it’s sent to the chat visitor.
Response
| Name | Type | Description |
|---|---|---|
| recordId | String | The ID of the work record that’s associated with the current conversation. |
| content | String | The text of the message in the conversation log. |
| name | String | The name of the agent who is attempting to send the message. This name matches the agent name displayed in the conversation log. |
| type | String | The type of message that was received, such as an Agent or EndUser message. |
| timestamp | Date/Time | The date and time that the agent attempted to send the message. |
Example
Component code:
Controller code: