Conversation Toolkit API

lightning:conversationToolkitAPI

Work with Live Agent in a Lightning console app.

For Use In

Lightning Experience

The lightning:conversationToolkitAPI component provides methods to interact with a chat visitor.

Methods 

This component supports the methods for Chat for the Salesforce Console.

Attributes 

NameDescriptionTypeDefaultRequired
bodyThe body of the component. In markup, this is everything in the body of the tag.Aura.Component[]

Methods 

NameDescriptionArgument NameArgument TypeArgument Description
cancelFileTransferCancels a file transfer request has been sent to the customerargumentsObjectArgument object with values for [recordId]
endChatEnds a chat in which an agent is currently engaged.argumentsObjectArgument object with value for [recordId]
getChatLogGets the chat log.argumentsObjectArgument object with values for [recordId]
getDetailsByRecordIdGets the details regarding the chasitor engaged in the given recordIdargumentsObjectArgument object with values for [recordId]
initFileTransferInitiates the process of transferring a file from a customer to an agentargumentsObjectArgument object with values for [recordId] and [attachmentRecordId]
sendCustomEventSends a custom event to the client-side chat windowargumentsObjectArgument object with values for [recordId], [type], and [data]
sendMessageSends a new chat message from the agentargumentsObjectArgument object with values for [recordId] and [message]
setAgentInputSets the text in the agent's text boxargumentsObjectArgument object with values for [recordId] and [message]