You can find all the related configurations in the resources ID table, under Survey Screen.

Show CSAT if:

  • CSAT configured to appear according to:
    LPConfig.defaultConfiguration.csatShowSurveyView
  • Conversation has an assigned agent.
  • Conversation’s CSAT wasn’t previously submitted.

Dismiss CSAT if:

  • User presses the submit button (answers get sent to the survey).
  • User chooses to skip the CSAT (skipped button pressed).
  • User fills in the CSAT details on another device.
  • If the CSAT is visible and the agent resumed the conversation.
 

The CSAT screen includes several content containers:

Custom View Controller Mode requirements

When using Custom View Controller Mode, the Conversation view must be removed when leaving the App. To avoid dismissing the View when CSAT/SecureForms/PhotoSharing View is presented, you should only dismiss the Conversation view if Moving From ParentView, as demonstrated below.

if (self.conversationQuery != nil && self.isMovingToParentViewController){
    LPMessagingSDK.instance.removeConversation(self.conversationQuery!)
}

Note: When ViewController Mode is used, on the Navigation Bar Back Button, you can simply call LPMessagingSDK.instance.removeConversation(self.conversationQuery!).

csatAgentViewHidden (avatar and agent name)

You can either hide or show the agent avatar.

LPConfig.defaultConfiguration.csatAgentViewHidden
  • If the conversation has an assigned agent and its image was downloaded previously using profileUrl, this image shows in the view.

  • If no image available, default avatar displays. Its background and tint color can be set accordingly to agent bubble using:

LPConfig.defaultConfiguration.csatAgentAvatarBackgroundColor
LPConfig.defaultConfiguration.csatAgentAvatarIconColor
  • Contains agent name:
    • By default it’s an empty label.
    • If conversation has assigned agent, the agent’s nickName will be used.

csatRatingButtonSelectedColor (stars)

  • Always visible - can’t configure its visibility.
  • Stars color is defined by:
LPConfig.defaultConfiguration.csatRatingButtonSelectedColor
  • Rating question includes 'Agent’ by default in the text. If conversation has assigned agent and the agent’s nickName is not empty, this nickName will be used instead.

csatResolutionHidden (yes/no)

  • Could be hidden or not using:
LPConfig.defaultConfiguration.csatResolutionHidden
  • If agentView is shown ("csatAgentViewHidden"), this view will be always hidden (even if "csatResolutionHidden" is set to true)
  • All titles colors defined with:
LPConfig.defaultConfiguration.csatAllTitlesTextColor