Aura Methods for Enhanced Messaging in Lightning Experience
Enable your developers to customize the agent experience by allowing custom components to interact with the Enhanced Conversation Component. These methods apply to Aura components in Lightning Experience only.
Use Enhanced Messaging methods when:
- The methods are invoked within the page context of the Enhanced Messaging session.
- The Enhanced Messaging session is active.
- The Enhanced Conversation Component is visible on the page.
These methods apply to Aura components in Lightning Experience only.
-
endChat() for Lightning Experience
Ends a chat in which an agent is currently engaged. This method works only in Lightning console apps.
-
getChatLog() for Lightning Experience
Returns the chat log of an Enhanced Messaging chat associated with a specific recordId. This method works only in Lightning console apps.
-
sendMessage() for Lightning Experience
Sends a new chat message from the agent to a chat with a specific chat key. This method works only in Lightning console apps.
-
setAgentInput() for Lightning Experience
Sets the text in the agent’s text box while showing typing indicators. This method works only in Lightning console apps.