ZohoSalesIQ.Chat.start()
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.
- callback (Optional) - The callback to get the result.
Example
CopiedZohoSalesIQ.Chat.start("Hi there, I have a query with your product!", "custom_chat_id", "department_name", function (chat) {
}, function (error) {
});