.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.
MessageType | Description |
chatWaiting | Message displayed as the title when a chat is in waiting state |
chatCompleted | Message displayed when a chat is completed |
chatMissed | Message displayed when a chat is missed |
ratingCompleted | Message displayed after the user rates the chat |
feedbackCompleted | Message displayed after the user provides feedback after a chat |
ratingAndFeedbackCompleted | Message displayed after a user provides both feedback and rating |
inputQuestionPlaceholder | Placeholder message displayed in the input field while creating a new chat |
inputMessagePlaceholder | Placeholder message displayed in the input field for open chats |
typingIndicatorMessage | Message displayed within the bot typing indicator |
networkWaitingMessage | Waiting 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")