ZohoSalesIQ.Chat.start()

Note: This API is supported from version 9.1.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 (closed or missed).
  • departmentName (Optional) - Department to which the chat should be routed.
  • completion (Optional) - The callback to get the result.

Syntax

Copied@objc static public func start(question: String, chatID: String? = nil, department: String? = nil, completion: ZSIQResultCompletionBlock? = nil)

Example

CopiedZohoSalesIQ.Chat.start(question: "Happy to assist you", chatID: "001", department: "salesiqdepartmentname") { error, success in
                
}