​.Chat.setMessage()

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

Note:
The messages set using this API would override the messages set in portal settings allowing you to localise the content to be displayed.

MessageTypeDescription
chatWaitingMessage displayed as the title when a chat is in waiting state
chatCompletedMessage displayed when a chat is completed
chatMissedMessage displayed when a chat is missed
ratingCompletedMessage displayed after the user rates the chat
feedbackCompletedMessage displayed after the user provides feedback after a chat
ratingAndFeedbackCompletedMessage displayed after a user provides both feedback and rating
inputQuestionPlaceholderPlaceholder message displayed in the input field while creating a new chat
inputMessagePlaceholderPlaceholder message displayed in the input field for open chats
typingIndicatorMessageMessage displayed within the bot typing indicator
networkWaitingMessageWaiting for network connection

Syntax:

CopiedZohoSalesIQ.Chat.setMessage(type: SystemMessage, message: String)

Example

CopiedZohoSalesIQ.Chat.setMessage(.chatWaiting, message: "Waiting")

ZohoSalesIQ.Chat.setMessage(.chatCompleted, message: "Thanks for your valuable feedback and rating")

ZohoSalesIQ.Chat.setMessage(.chatMissed, message: "Sorry we missed you. We will get back to you shortly")

ZohoSalesIQ.Chat.setMessage(.ratingCompleted, message: "Thanks for your rating")

ZohoSalesIQ.Chat.setMessage(.feedbackCompleted, message: "Thanks for your valuable feedback")

ZohoSalesIQ.Chat.setMessage(.ratingAndFeedbackCompleted, message: "Thanks for your valuable feedback and rating")

ZohoSalesIQ.Chat.setMessage(.inputQuestionPlaceholder, message: "Enter your question here...")

ZohoSalesIQ.Chat.setMessage(.inputMessagePlaceholder, message: "Enter your message here...")

ZohoSalesIQ.Chat.setMessage(.typingIndicatorMessage, message: "Typing")

ZohoSalesIQ.Chat.setMessage(.networkWaitingMessage, message: "Waiting for network connection")