During the course of the conversation, consumers can take several actions such as Mark as urgent to receive a faster service, or Resolve conversation to let your agents know they have received their answers.


Note: for the complete information about the methods, refer to this link

  1. This method checks for an active conversation, True - there is an active conversation. False - there is no active conversation
public func checkActiveConversation(conversationQuery: ConversationParamProtocol) -> Bool
  1. This method marks the current conversation as Urgent.
public func markAsUrgent(conversationQuery: ConversationParamProtocol)
  1. This method checks if the current conversation is marked as Urgent.
public func isUrgent(conversationQuery: ConversationParamProtocol) -> Bool
  1. This method marks an urgent conversation as normal.
public func dismissUrgent(conversationQuery: ConversationParamProtocol)
  1. This method resolves the current conversation.
public class func resolveConversation(_ conversation: Conversation, completion: (() -> Void)? = {()})
public class func resolveConversationForConversationQuery(_ conversationQuery: ConversationParamProtocol, completion: (() -> Void)? = {()})
  1. This method clears the conversation history.
public func clearHistory(conversationQuery: ConversationParamProtocol) throws

Note: clear history is allowed only if there is no open/active conversation

  1. This method will logout Current User from LPMessagingSDK
public func logout()
  1. This method is typically used to stop and clear all the metadata of the SDK
public func destruct()


  1. Will be triggered when the customer satisfaction survey is dismissed after the user has submitted the survey
<LPMessagingSDKdelegate> optional func LPMessagingSDKConversationCSATDismissedOnSubmittion(conversationID: String?)
  1. Will be triggered after the customer satisfaction page is submitted with a score.
<LPMessagingSDKdelegate> optional func LPMessagingSDKCSATScoreSubmissionDidFinish(brandID: String, rating: Int)
  1. Will be triggered when a new conversation has started, from the agent or from the consumer side.
<LPMessagingSDKdelegate> optional func LPMessagingSDKConversationStarted(conversationID: String?)
  1. Will be triggered when a conversation has ended, from the agent or from the consumer side.
<LPMessagingSDKdelegate> optional func LPMessagingSDKConversationEnded(_ conversationID: String?, closeReason: LPConversationCloseReason)
  1. Will be triggered when the conversation view controller removed from its container view controller or window.
<LPMessagingSDKdelegate> optional func LPMessagingSDKConversationViewControllerDidDismiss()
  1. Will be triggered each time the agent typing state changes.
<LPMessagingSDKdelegate> optional func LPMessagingSDKAgentIsTypingStateChanged(isTyping: Bool)