ZohoSalesIQ.Chat.start()

Note: This API is supported from version 8.0.0.

The ZohoSalesIQ.Chat.start() API allows initiating a new chat or reopening an existing one (closed or missed) using the specified chat ID.

Parameters

  • question * - User input or question of the conversation.
  • customChatId (Optional) - To open a chat with a custom chat ID or reopen an existing chat one (closed or missed).
  • departmentName (Optional) - Department to which the chat should be routed.
  • callback (Optional) - The callback to get the result.

Syntax

CopiedZohoSalesIQ.Chat.start(String question, String customChatId, String departmentName, ZohoSalesIQResultCallback<VisitorChat> resultCallback)

Example

CopiedZohoSalesIQ.Chat.start("Hi there, I have a query with your product!", "custom_chat_id", "department_name", result -> {
      if (result.isSuccess()) {
           // Handle success
      } else {
          // Handle error
      }
});
CopiedZohoSalesIQ.Chat.start("Hi there, I have a query with your product!", "custom_chat_id", "department_name") { result ->
      if (result.isSuccess) {
          // Handle success
      } else {
          // Handle error
      }
}