Chat.setMessage()

This API lets you configure pre-defined default messages that are to be displayed in the chat windows. 

PARAMETERS

  • action: Visitor action that is to be tracked(SystemMessage.CHAT_COMPLETED, SystemMessage.RATING_COMPLETED, SystemMessage.FEEDBACK_COMPLETED, SystemMessage.RATING_AND_FEEDBACK_COMPLETED).
  • message: Message that is to be displayed after the visitor performs the specific action.

Syntax:

CopiedZohoSalesIQ.Chat.setMessage(SystemMessage action, String message)

Example 1:

CopiedZohoSalesIQ.Chat.setMessage(SystemMessage.RATING_COMPLETED, "Thanks for your Rating");

Example 2:

CopiedZohoSalesIQ.Chat.setMessage(SystemMessage.FEEDBACK_COMPLETED, "Thank for your valuable feedback.");

Example 3:

CopiedZohoSalesIQ.Chat.setMessage(SystemMessage.RATING_AND_FEEDBACK_COMPLETED, "Thanks for your Rating and valuable Feedback");

Example 4:

CopiedZohoSalesIQ.Chat.setMessage(SystemMessage.CHAT_COMPLETED, "It was my pleasure assisting you today. Please do take a moment to rate this session.");

CopiedZohoSalesIQ.Chat.setMessage(SystemMessage.CHAT_COMPLETED, "It was my pleasure assisting you today. Please do take a moment to rate this session.");